I mean, to get the number of drivers on the system, i have to initialize
fmod first, right? But I can’t call FSOUND_SetOutput after it has been
initialized. I have to close, then call FSOUND_SetOutput with the driver
i want, then i re-init. This is what i meant, it is no real problem, i was
just wondering why i can’t get the number of drivers before i call
Are you trying to play a sound on one card? if so you can use
FSOUND_GetNumDrivers to get the number of drivers on your system
This will get the names of the drivers
This function must be called before initialization
FSOUND_SetDriver (DriverNum) ‘zero is default device driver
Oh, yeah, Brett, I have been meaning to ask you about that.
When i call FSOUND_GetNumDrivers and FSOUND_GetDriverName
it doesn’t work unless fmod is initialized. Then i have to close fmod
and re initialize with the driver i want to use becuase my app checks
for drivers first, then initializes FMOD with the users settings.
Is there a reason you did this, or is there no other way?
[quote="Orma674":3ah0g4yw]I have a system with two sound card and i want play one stream for one card, where i setting the output to card?[/quote:3ah0g4yw]
In Delphi ? Visual Basic ?
If it is in Visual Basic, you must make a copy of fmod.dll to fmod2.dll (for example) and rewrite a fmod.bas with different API calls (ie : FSOUND_Init become FSOUND_Init2 and so on).
Then you can simply use the second api for your 2nd soundcard.
Please login first to submit.