diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/AudioInOut.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/AudioInOut.cpp b/src/frontend/qt_sdl/AudioInOut.cpp index 395dcf8..d44e92d 100644 --- a/src/frontend/qt_sdl/AudioInOut.cpp +++ b/src/frontend/qt_sdl/AudioInOut.cpp @@ -126,6 +126,10 @@ void MicOpen() return; } + int numMics = SDL_GetNumAudioDevices(1); + if (numMics == 0) + return; + SDL_AudioSpec whatIwant, whatIget; memset(&whatIwant, 0, sizeof(SDL_AudioSpec)); whatIwant.freq = 44100; |