From: Steve K. <st...@st...> - 2003-07-21 14:11:32
|
On Mon, 2003-07-21 at 09:46, Michael Van Donselaar wrote: > Has anyone lese been messing with setting audio devices under windows? > I'm not sure if I have a cross platform issue, or if the real problem is > between the chaid and keyboard. > > I called iaxc_audio_devices_get() and find that device 4 has > capabilities for IAXC_AD_OUTPUT and IAXC_AUDIO_AD_RING. > > Then I call iaxc_audio_devices_set(0,4,4) to set input to default > (Microsoft Sound Mapper - Input) and output and ring to deviceid 4 > (Avance AC97 Audio). > > Calling iaxc_audio_devices_get() shows no change to audio device > assignment. > > Any ideas? Hmm, those calls eventually end up here, in audio_portaudio.c: 349 int pa_select_devices (struct iaxc_audio_driver *d, int input, int output, int ring) { 350 selectedInput = input; 351 selectedOutput = output; 352 selectedRing = ring; 353 if(running) { 354 pa_stop(d); 355 pa_start(d); 356 } 357 return 0; 358 } 359 360 int pa_selected_devices (struct iaxc_audio_driver *d, int *input, int *output, int *ring) { 361 *input = selectedInput; 362 *output = selectedOutput; 363 *ring = selectedRing; 364 return 0; 365 } so, I'm not sure how they could fail; we don't even check that the choices you give us are valid.. The only other place those variables are assigned to is in the initialize method, which should only get called from iaxc_initialize(). -SteveK -- Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775 HorizonLive.com - collaborate . interact . learn "The box said 'Requires Windows 95, NT, or better,' so I installed Linux." |