0
0

Hello.

I am trying the linux version of FMOD, but the sound is accelerated and distorted. Incrementing the buffer size does not help. How can I solve this problem?

Thanks

  • You must to post comments
0
0

Hi,

Just made some tiny changes to the ALSA code (may possibly fix it). I added a whole bunch of printf’s in there too, to see whats going on if it still doesn’t work.

[url:xslt8393]http://www.fmod.org/files/libfmod-3.74.1.so[/url:xslt8393]

Can you give it a try and let me know what the output is?

Thanks,

  • You must to post comments
0
0

That was. Using ESD sounds perfect. Thank you.

  • You must to post comments
0
0

[quote="chenpo":1xe4mgdw]Can you give it a try and let me know what the output is?[/quote:1xe4mgdw]

Still does not work… Same error as before. Here is the output:

[code:1xe4mgdw]ALSA closed
Drivers enumerated
Opening ALSA Device...
device opened successfully, reopening
Done.
Setting up HW params
rate set to 32000
channels set to $d
periods set to 1
buffersize set to 4096
HW params set.

Press any key to quit

[/code:1xe4mgdw]

  • You must to post comments
0
0

I have the same problem with version 3.74. While it might be true that this can be solved by trying another output driver, this problem does not exist for me with the older version 3.73, so maybe a bug has been introduced in the newer version?

  • You must to post comments
0
0

Does it work if you set it to a different mixrate (ie 44100, 48000 etc) in FSOUND_Init?

  • You must to post comments
0
0

I use a Sound Blaster Live! value.

  • You must to post comments
0
0

Some modes work some modes fail (same error as always).

The following values where tested:
[code:sfm5kg7s]+ => mode works fine
– => mode does not work

4000 +
8000 +
11025 +
12000 +
16000 +
20000 +
20450 +
20500 –
22050 –
24000 –
32000 –
40000 –
40900 –
41000 +
44100 +
48000 +[/code:sfm5kg7s]

The modes that does not work with ALSA works fine with the other output methods (OSS, ESD).

  • You must to post comments
0
0

No comment? :)

  • You must to post comments
0
0

[quote="brett":1anrwn7x]Did you use 22050 or something? Most people use 44100 for everything so it probably would have worked if you did that and I can almost guarantee every soundcard would support that.[/quote:1anrwn7x]

Sure, I always use 44100 in my own code. Though the program I used to test with is your “simplest” example, which sets the mixrate to 32000…

  • You must to post comments
0
0

Are you sure that nothing has changed at your end? Everything seems to be working fine in our tests. The changes made from 3.73 to 3.74 wouldn’t have affected the default output mode (the main thing that was changed in linux was fixing issues with the ALSA output mode).

  • You must to post comments
0
0

[quote="chenpo":2x8k73dc]Are you sure that nothing has changed at your end? Everything seems to be working fine in our tests. The changes made from 3.73 to 3.74 wouldn’t have affected the default output mode (the main thing that was changed in linux was fixing issues with the ALSA output mode).[/quote:2x8k73dc]

I am sure. To be 100% sure, I even compiled the “simplest” example once for 3.74. Then I changed the includes to point to 3.73’s include files and changed the makefile to link with 3.73’s lib*.so-file. So now I have two different versions of the exact same program, a program written by you I might remind.

The 3.73 version works just fine while the 3.74 has the problems described above. Judgeing by the “row”-counter displayed, I’d say that the song plays about 2 – 4 times faster than it should. The “fastness” is caused by the buffers not being played completely and thus there are some cracking, popping and clicking in the sound also.

  • You must to post comments
0
0

I just tried it on a soundblaster live and it seems to work okay here.

Can you give more details about your setup?
What distro are u using ?
What driver module are you using for the soundcard?
Is OSS the only output mode that is causing a problem?

Thanks

  • You must to post comments
0
0

[quote="chenpo":17u8lofk]I just tried it on a soundblaster live and it seems to work okay here.

Can you give more details about your setup?
What distro are u using ?
What driver module are you using for the soundcard?
Is OSS the only output mode that is causing a problem?

Thanks[/quote:17u8lofk]

At the moment I use mandrake 10 with kernel 2.6.3-9mdk. Dmesg says:
[code:17u8lofk]Advanced Linux Sound Architecture Driver Version 1.0.2c (Thu Feb 05 15:41:49 2004 UTC).
ALSA device list:
#0: Sound Blaster Live! (rev.8) at 0xd400, irq 12[/code:17u8lofk]

3.73 Works fine with OSS and ESD-outputs but says this with ALSA:
[code:17u8lofk]ALSA lib pcm_hw.c:1142:(_snd_pcm_hw_open) Invalid value for card
Error initializing output device.[/code:17u8lofk]

3.74 Works fine with ESD, gives accelerated sound with OSS and does not display any error nor does it play any sound at all with ALSA, it just goes on as if it would have been working. Also the CPU-usage when using ALSA goes up to 100% and it goes through the song in just a couple of seconds (the order counter counts up several numbers per second).

Both mplayer and xmms works fine when choosing their oss or alsa sound drivers.

  • You must to post comments
0
0

I just uploaded a new linux version that should fix the problems with OSS (and hopefully ALSA).

Give it a try:
[url:2ey8pal3]http://www.fmod.org/files/fmodapi3741linux.tar.gz[/url:2ey8pal3]

  • You must to post comments
0
0

[quote="chenpo":upvye0a6]Give it a try:
[url:upvye0a6]http://www.fmod.org/files/fmodapi3741linux.tar.gz[/url:upvye0a6][/quote:upvye0a6]

OSS works great.
ESD works great.
ALSA still does not work. It goes on as if the init was ok but there is no sound, the order counter counts up several numbers per second and the cpu usage is 100%.

  • You must to post comments
Showing 15 results
Your Answer

Please first to submit.