Commit 48dcc35b authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Fix DTMF at first start with Pulseaudio

parent c941734c
......@@ -195,8 +195,10 @@ void AlsaLayer::startCaptureStream (void)
void AlsaLayer::prepareCaptureStream (void)
{
if (is_capture_open() ) {
if(snd_pcm_prepare (_CaptureHandle) < 0) _debug("Error preparing the device\n");
prepare_capture ();
if(snd_pcm_prepare (_CaptureHandle) < 0)
_debug("");
else
prepare_capture ();
}
}
......
......@@ -510,6 +510,7 @@ ManagerImpl::playDtmf(char code, bool isTalking)
// Put buffer to urgentRingBuffer
// put the size in bytes...
// so size * 1 channel (mono) * sizeof (bytes for the data)
audiolayer->startStream();
audiolayer->putUrgent (buf, size * sizeof(SFLDataFormat));
}
ret = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment