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
2345dd70
Commit
2345dd70
authored
May 20, 2010
by
Alexandre Savard
Browse files
[#1962] Comment playback/ringtone frame size in audio callback
parent
9433978d
Changes
1
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/audio/alsa/alsalayer.cpp
View file @
2345dd70
...
...
@@ -879,7 +879,7 @@ void AlsaLayer::audioCallback (void)
int
playbackAvailSmpl
=
snd_pcm_avail_update
(
_PlaybackHandle
);
int
playbackAvailBytes
=
playbackAvailSmpl
*
sizeof
(
SFLDataFormat
);
_debug
(
"PLAYBACK: %d"
,
playbackAvailSmpl
);
//
_debug("PLAYBACK: %d", playbackAvailSmpl);
if
(
urgentAvailBytes
>
0
)
{
...
...
@@ -997,7 +997,7 @@ void AlsaLayer::audioCallback (void)
int
ringtoneAvailSmpl
=
snd_pcm_avail_update
(
_RingtoneHandle
);
int
ringtoneAvailBytes
=
ringtoneAvailSmpl
*
sizeof
(
SFLDataFormat
);
_debug
(
"RINGTONE: %d"
,
ringtoneAvailSmpl
);
//
_debug("RINGTONE: %d", ringtoneAvailSmpl);
out
=
(
SFLDataFormat
*
)
malloc
(
ringtoneAvailBytes
);
file_tone
->
getNext
(
out
,
ringtoneAvailSmpl
,
spkrVolume
);
...
...
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