![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Mar 2004
Posts: 2
|
I don't know how I can choose an other output sound card than the primary sound device.
Is it possible to choose the secondary sound card with the function alcOpenDevice() or is it an other function which could allow to play a sound on the sound card of my choice either the primary sound card either the secondary sound card. Thank you for your help. |
|
|
|
|
|
#2 |
|
Valued Member
Join Date: Jan 2004
Location: England
Posts: 265
|
To be honest, from my experience, I dont think you can. I had a good look at the OpenAL spec's, and as far as I can tell, using alcOpenDevice(...) selects the device that is most suited to the method you have choosen. It doesnt specifiy wether multiple calls to alcOpenDevice(...) selects another sound device, or just uses the same one.
It might be worth looking at OpenGL (this is a total shot in the dark, so I may be totally wrong here) and seeing if you can select different display devices. If you can, you might be able to use a similar method in AL. But as I said, thats a shot in the dark... Sorry I couldnt be more help Spree |
|
|
|
|
|
#3 |
|
DevMaster Staff
Join Date: Apr 2003
Location: Germany
Posts: 2,328
|
you can't do that with opengl
___________________________________________
If Prolog is the answer, what is the question ? |
|
|
|
|
|
#4 | |
|
Valued Member
Join Date: Jan 2004
Location: England
Posts: 265
|
I did say it was a shot in the dark, oh well
![]() Just reading the OpenAL mailing lists, and the same question came up. So I guess it can be done! ![]() Here is one of the responses Quote:
Bare in mind that the DirectSound3D enumeration has a few bugs associated with it, so at the moment, out of the 3 standard devices, DirectSound is probably the best bet Hope that helps some Spree |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2004
Posts: 2
|
that was me who ask that in the openAL forum
I have tried what the guy has tell but it seems only working with nForce2 and Creative audigy sound card.... and I don't have any of these sound card.... If anyone has a solution with other type of soundcard thank you for your help. |
|
|
|
|
|
#6 |
|
Valued Member
Join Date: Jan 2004
Location: England
Posts: 265
|
Haha thought it might have been, but thought I'd post it anyway
![]() Spree |
|
|
|
|
|
#7 |
|
New Member
Join Date: Sep 2004
Posts: 15
|
Sth like this to detect all devices
Code:
and then sth like this - mind you, only tested on sb-audigy, switching sound without exiting the game also works (although old sound will be stopped so you will only hear new sounds): Code:
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|