0
0

HI

I have two Delta410 soundcards on my Linux. Each card has 4 stereo outputs.
When I’m trying to return number of devices useing FSOUND_GetNumDrivers I have only 4 instead 8. Is fmod see only one soundcard devices or I need to setup something else in fmod. I don’t know what to think about it … I can play music on 2nd card devices but I don’t hear any sound (fmod). I test 2nd card useing xmms and music is playing on each device (10 to 13)
– I can hear it.

1st card devices 0-3 ==> music is playing ok (fmod)
2nd card devices 10-13 ==> no muisc (fmod)

Thanks foo any help.
Igor

  • You must to post comments
0
0

I believe FMOD only supports multiple soundcards in Linux using the OSS kernel driver. Call:

[b:1esmts9o]FSOUND_SetOutput(FSOUND_OUTPUT_OSS);[/b:1esmts9o]
before calling FSOUND_SetDriver/FSOUND_Init.

  • You must to post comments
0
0

Hi

I did it. Here is src code

FSOUND_SetOutput(FSOUND_OUTPUT_OSS);

if (FSOUND_SetDriver(DEVICE))
{
qWarning(“Error! Can not set driver %d \n”,DEVICE);
qWarning(“%s\n”, FMOD_ErrorString(FSOUND_GetError()));
return -1;
}

if (!FSOUND_Init(44100, 32, 0))
{
qWarning(“Error!\n”);
qWarning(“%s\n”,FMOD_ErrorString(FSOUND_GetError()));
FSOUND_Close();

    return -1;
}

I can set up deivce to 10-13, stream is playing( curennt time is ok) but I don’t hear any sound. A peaks on ossxmixer -d1 are 0. The first soundcard (4 devices) is playing and I can hear music. What is wrong with fmod …

  • You must to post comments
0
0

Nothing’s wrong with fmod…but with your soundcards setup….how did U initialized cards modules via /etc/modules.conf ?
try with alsa oss emulation, I’ve found it as best.

  • You must to post comments
0
0

Hi

I bought oss drivers for Delta410. If nothing is worong with fmod so why fmod is showing only 4 devices instead 8 ??? Why other programs (xmms) are showing 8 devices ???

  • You must to post comments
0
0

ups..I did not understood well your first posts now I see…
fmod enumrate only 0..3 , so when you call GwtNumDrivers result is 4 ?
If it’s true then ..maybe…fmod card enumeration max is 4 (0..3)…I don’t know ….brett should know more about it…but instead of that try this :

/usr/sbin/lsof /dev/dsp
/usr/sbin/lsof /dev/dsp0
…etc for each and see who is sitting on dsp.
Maybe some other proccess taken 10..13 (esd,arts daemon etc..).

  • You must to post comments
0
0

I run my program on each device (1-4 and 11-14).I did lsof on each /dev/dsp result is:

/dev/dsp0 to /dev/dsp3 are taken by my program
/dev/dsp10 to /dev/dsp13 are free

I did other test istead seting up correct driver FSOUND_setDriver(device) (devce is 1-4 and 11-14) I set up device to 0 (default). Music is playing on 2nd card
but spdout is busy as well.

Thanks

Igor

  • You must to post comments
0
0

HI

I want to thanks everybody for help. I solved my problem today. I found that fmod see only 4 devices (instead 8) but if I want to get to other devices (on the 2nd soundcard) I need to use the same devices (1-4) or set driver to FSOUND_setDriver(0) !!!! For emp. my Delta410 has 4 analog outputs + 1 spdout so
1 device (1 soundcard)=> FSOUND_setDriver 1
2 device (1 soundcard)=> FSOUND_setDriver 2
3 device (1 soundcard)=> FSOUND_setDriver 3
4 device (1 soundcard)=> FSOUND_setDriver 4
5 device spdout (1 soundcard)=> FSOUND_setDriver 1

1 device (2 soundcard)=> FSOUND_setDriver 2
2 device (2 soundcard)=> FSOUND_setDriver 3
3 device (2 soundcard)=> FSOUND_setDriver 4
4 device (2 soundcard)=> FSOUND_setDriver 1
5 device spdout (2 soundcard)=> FSOUND_setDriver 2

OSS mapping devices to

1 device (1 soundcard)=> 0
2 device (1 soundcard)=> 1
3 device (1 soundcard)=> 2
4 device (1 soundcard)=> 3
5 device spdout (1 soundcard)=> 4

1 device (2 soundcard)=> 10
2 device (2 soundcard)=> 11
3 device (2 soundcard)=> 12
4 device (2 soundcard)=> 13
5 device spdout (2 soundcard)=> 14

Application for exp. xmms,mpg123 useing enumeration 1-4 and 10-14. I my opinion fmod needs some fixes.

  • You must to post comments
0
0

Hi

To my mind number of soundcards (for sound lib. !!)   shouldn't be limited. :cry:  Whay don't you implement findfirst/findnext for ALSA/OSS/DSound etc.?  Is it difficult to program ??

Igor

  • You must to post comments
Showing 8 results
Your Answer

Please first to submit.