Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
48dcc35b
Commit
48dcc35b
authored
Feb 03, 2009
by
Emmanuel Milou
Browse files
Fix DTMF at first start with Pulseaudio
parent
c941734c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/audio/alsalayer.cpp
View file @
48dcc35b
...
...
@@ -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
();
}
}
...
...
src/managerimpl.cpp
View file @
48dcc35b
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment