Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
[Linux] Audio doesn't actually play / only

apocalyptech
Registered User
Quote
2013-03-06 16:44:30

Hello, I've been trying out the examples in irrKlang 1.4.0 on my Linux machine (Fedora 17 x86_64; I had to add "-m32" to OPTS in the Makefile in order to actually build 'em properly). None of them actually seem to produce any sound, though. I'm not running any sound servers like PulseAudio or the like - everything should just go straight to ALSA. It seems as though irrKlang correctly detects that, because I get a "Using ALSA driver" message on the console when I run them.

I added in some code to do device enumeration on the first example, and using the following printf:
printf("%d: %s (id: %s)\n", i, deviceList->getDeviceDescription(i), deviceList->getDeviceID(i));

I just end up getting the following list:
0: default device (id: )

After looking over the docs, I assume that I should probably be seeing some actual card information in there?

Anyway, let me know if I can supply any more information. Here's some specifics about my system and the hardware in question:
!!Kernel Information
!!------------------

Kernel release: 3.6.7-4.fc17.x86_64
Architecture: x86_64

!!ALSA Version
!!------------

Driver version: 1.0.25
Library version: 1.0.26
Utilities version: 1.0.26


!!Loaded ALSA modules
!!-------------------

snd_emu10k1

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
Installed - Yes (/bin/pulseaudio)
Running - No

Jack:
Installed - Yes (/bin/jackd)
Running - No

!!Soundcards recognised by ALSA
!!-----------------------------

0 [Live ]: EMU10K1 - SB PCI512 [CT4790]
SB PCI512 [CT4790] (rev.7, serial:0x80231102) at 0xe800, irq 17

!!PCI Soundcards installed in the system
!!--------------------------------------

06:01.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)

!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------

06:01.0 0401: 1102:0002 (rev 07)
Subsystem: 1102:8023

Oh, and sound for everything else on my system does appear to be working fine; it's just these irrKlang demos (and another game which happens to use irrKlang) which is having trouble.

Edit: Oh, and I should mention that even though I'm on a 64-bit kernel, I do have the necessary 32-bit ALSA drivers installed. Most of the other games I've got on the system are 32-bit and they're all working as well. The relevant packages:
alsa-lib-1.0.26-1.fc17.i686
alsa-lib-1.0.26-1.fc17.x86_64



apocalyptech
Registered User
Quote
2013-03-06 20:28:48

A few more details here; I added some more debugging to the first example, specifically this block which gets executed at every keypress:
void show_status(ISound *sound, ISoundEngine *engine, const char *filename)
{
if (engine->isCurrentlyPlaying(filename))
{
printf("File is currently playing, engine volume: %0.2f.\n", engine->getSoundVolume());
}
else
{
printf("File is not currently playing.\n");
}

if (sound->getIsPaused())
{
printf("We are paused\n");
}
else
{
printf("We are playing\n");
}

if (sound->isLooped())
{
printf("We are looped\n");
}
else
{
printf("We are not looped\n");
}

printf("Playback Speed: %0.2f\n", sound->getPlaybackSpeed());
printf("Sound volume: %0.2f\n", sound->getVolume());
printf("Position: %d/%d\n", sound->getPlayPosition(), sound->getPlayLength());
printf("\n");
}

Everything looks good on the output on that, except that the value returned by getPlayPosition() is always zero - it never increments. I can set it with setPlayPosition() and subsequent calls will reflect that update, but it appears to never actually update on its own.

Upon looking around a bit, it seems that the "MusicPlayer" example app actually has the same issue - the sound files get loaded apparently but never actually progress.


niko
Moderator
Quote
2013-03-08 10:28:20

Strange, and the other examples are not working either?


apocalyptech
Registered User
Quote
2013-03-08 17:40:37

wrote:
Strange, and the other examples are not working either?

Yeah, correct - none of the examples actually produce sound on my system. It's rather odd. :)


niko
Moderator
Quote
2013-03-08 18:11:27

There will be a small update of irrKlang within about one week (estimated) which includes some feature improvements of the Linux port. It could be that this also fixes your problem, let's see. :)


apocalyptech
Registered User
Quote
2013-03-14 18:54:01

Hello - I see that there's a 1.4.0b release out. The behavior I get is the same, btw. No sound plays, and getPlayPosition() appears to always stay at zero and never increments.


niko
Moderator
Quote
2013-03-15 06:09:19

Too bad, really strange. I'll try to get your distribution and try to reproduce your problem. This could take a but, though.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact