Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
d346a1c7
Commit
d346a1c7
authored
17 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
Correct the dtmf sound when dialing with ALSA plugin plughw
parent
54c879bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-gtk/src/actions.c
+4
-1
4 additions, 1 deletion
sflphone-gtk/src/actions.c
src/audio/audiolayer.cpp
+14
-18
14 additions, 18 deletions
src/audio/audiolayer.cpp
with
18 additions
and
19 deletions
sflphone-gtk/src/actions.c
+
4
−
1
View file @
d346a1c7
...
@@ -357,7 +357,10 @@ sflphone_incoming_call (call_t * c)
...
@@ -357,7 +357,10 @@ sflphone_incoming_call (call_t * c)
void
process_dialing
(
call_t
*
c
,
guint
keyval
,
gchar
*
key
)
void
process_dialing
(
call_t
*
c
,
guint
keyval
,
gchar
*
key
)
{
{
// We stop the tone
// We stop the tone
if
(
strlen
(
c
->
to
)
==
0
){
dbus_start_tone
(
FALSE
,
0
);
dbus_start_tone
(
FALSE
,
0
);
dbus_play_dtmf
(
key
);
}
switch
(
keyval
)
switch
(
keyval
)
{
{
case
65293
:
/* ENTER */
case
65293
:
/* ENTER */
...
...
This diff is collapsed.
Click to expand it.
src/audio/audiolayer.cpp
+
14
−
18
View file @
d346a1c7
...
@@ -68,13 +68,9 @@ AudioLayer::openDevice (int indexIn, int indexOut, int sampleRate, int frameSize
...
@@ -68,13 +68,9 @@ AudioLayer::openDevice (int indexIn, int indexOut, int sampleRate, int frameSize
if
(
deviceClosed
==
false
)
if
(
deviceClosed
==
false
)
{
{
if
(
stream
==
SFL_PCM_CAPTURE
)
if
(
stream
==
SFL_PCM_CAPTURE
)
{
closeCaptureStream
();
closeCaptureStream
();
}
else
if
(
stream
==
SFL_PCM_PLAYBACK
)
else
if
(
stream
==
SFL_PCM_PLAYBACK
)
{
closePlaybackStream
();
closePlaybackStream
();
}
else
else
{
{
closeCaptureStream
();
closeCaptureStream
();
...
@@ -118,6 +114,7 @@ AudioLayer::startStream(void)
...
@@ -118,6 +114,7 @@ AudioLayer::startStream(void)
AudioLayer
::
stopStream
(
void
)
AudioLayer
::
stopStream
(
void
)
{
{
//ost::MutexLock lock( _mutex );
//ost::MutexLock lock( _mutex );
_debugAlsa
(
" Stop Stream
\n
"
);
_talk
=
false
;
_talk
=
false
;
snd_pcm_drop
(
_CaptureHandle
);
snd_pcm_drop
(
_CaptureHandle
);
snd_pcm_prepare
(
_CaptureHandle
);
snd_pcm_prepare
(
_CaptureHandle
);
...
@@ -600,7 +597,6 @@ AudioLayer::closePlaybackStream( void)
...
@@ -600,7 +597,6 @@ AudioLayer::closePlaybackStream( void)
}
}
}
}
bool
bool
AudioLayer
::
soundCardIndexExist
(
int
card
,
int
stream
)
AudioLayer
::
soundCardIndexExist
(
int
card
,
int
stream
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment