ALAudioOut.Device.DeviceName problem - Printable Version +- Forums (http://mitov.com/forum) +-- Forum: VCL Components (/forum-6.html) +--- Forum: AudioLab (/forum-14.html) +--- Thread: ALAudioOut.Device.DeviceName problem (/thread-3110.html) |
ALAudioOut.Device.DeviceName problem - CraigNZ - 09-21-2016 09:23 AM I am having problems routing the audio to a different sound device. Here is the code line I am using: SCInterface_Form.ALAudioOut.Device.DeviceName := 'HP w2408-8 (NVIDIA High Definition Audio)'; Using the debugger, the next line shows the devicename property in ALAudioOut has indeed been changed. But the audio is still routed to the default audio device. If I set the w2408 as the default device then sound does go out that device, so the device is okay, seems ALAudioOut does not make the change. Using Windows 10, Delphi 10 Seattle. Craig RE: ALAudioOut.Device.DeviceName problem [solved] - CraigNZ - 09-28-2016 08:29 AM After spending some test time with Boian, we resolved the problem. The ALAudioOut component will not switch to a new device until the input stream is stopped. For example, if you have the SLSigGen connected to the ALAudioOut component then you need to first stop the SLSigGen, reassign the output device (soundcard) and then restart the signal generator: ALSignalGen1.Stop(); ALAudioOut1.Device.DeviceName := 'HP w2408-8 (NVIDIA High Definit'; ALSignalGen1.Start(); If you are using some other type of input stream to ALAudioOut then you would do the same as above. When the input stream is restarted and ALAudioOut receives new samples then it will connect to the new device and output samples to it. |