openal-soft
openal-soft copied to clipboard
how many alccaptureopendevice & alcstartplay ?
hello : now I have one computer(about one mic ,and one speaker); I want open 200 capture handle . so I found when I set different samplerate to the same device on different handle,I can get the different alcopenCaptureDevice_return; I just test four handles ;
and then ,I want create 200 play handle, Actually, I only create 4 playback handles,use same context ,use same device,I can listen diff voice from diff handle;Receive voice from multiple people;
so I want to ask ,how many capture handle /play handle on the same device I can use ?Can I really create hundreds of capture or playback handles. Use the same equipment;
so I want to ask ,how many capture handle /play handle on the same device I can use ?Can I really create hundreds of capture or playback handles. Use the same equipment;
That depends on the system. Some may not allow opening the same device multiple times, some may allow it only a few times, others may allow it until it runs out of memory. And in the case where you can open the same device a lot of times, you could get performance problems from the system having to process that many devices.
Why do you need to open the same device multiple times? There's normally no reason to since it's going to play on or record from the same thing (e.g. open the same recording device multiple times to get multiple ALCdevice
handles, and start recording from them, each ALCdevice
will give you the same samples as the others).
open the same recording device multiple times is no use ,they have the same voice;
but play form multi people is used; For example, when I am in the general control room, I speak to many people; At the same time, those who listen to me may also speak, so I may need to open multiple playback handles at the same time to play different sounds; I don't want to do multi-channel mix one channel to play . I want each handle to represent each person (maybe camera ) and each handle play their own,use my computer speaker device;