Browse Source

fix Audio::subscribeInput

Audio input/output device will only be opened, if not initialized already.
pull/2509/head
Nils Fenner 10 years ago
parent
commit
c5f4ceee6b
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
  1. 16
      src/audio/audio.cpp

16
src/audio/audio.cpp

@ -137,21 +137,21 @@ If the input device is not open, it will be opened before capturing. @@ -137,21 +137,21 @@ If the input device is not open, it will be opened before capturing.
void Audio::subscribeInput()
{
qDebug() << "subscribing input" << inputSubscriptions;
if (!inputSubscriptions++)
{
openInput(Settings::getInstance().getInDev());
if (!alOutDev)
openOutput(Settings::getInstance().getOutDev());
if (!alInDev) {
openInput(Settings::getInstance().getInDev());
#if (!FIX_SND_PCM_PREPARE_BUG)
if (alInDev)
{
if (alInDev) {
qDebug() << "starting capture";
alcCaptureStart(alInDev);
}
#endif
}
if (!alOutDev)
openOutput(Settings::getInstance().getOutDev());
inputSubscriptions++;
}
/**

Loading…
Cancel
Save