Hi everyone,
My issue is that I have used AudioAppComponent to process input from microphone and everything worked well as my expectation.
And I write a timer to call a checking plugged microphone by getting current audio device:
bool isMicrophoneWorking() {
AudioIODevice* device = deviceManager.getCurrentAudioDevice();
// check device isplaying, isOpening…
}
- In window 10:
During processing input data from microphone, I unplugged microphone then deviceManager.getCurrentAudioDevice() returns null so my function works well. - But in any window 7:
When I unplugged microphone then deviceManager.getCurrentAudioDevice() still returns previous audio, then I continue calling to check device->isPlaying() and it return true. It is very strange.
Can anyone explain why this issue just happen on the window 7, and how can I fix it?
Many thanks,
