Commit 485203ea authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1962] Add debug comments

parent 59a4d0bf
......@@ -864,6 +864,8 @@ void AlsaLayer::audioCallback (void)
toGet = framesPerBufferAlsa;
maxBytes = toGet * sizeof (SFLDataFormat);
_debug("PLAYBACK: %d", snd_pcm_avail_update(_PlaybackHandle));
if (urgentAvailBytes > 0) {
// Urgent data (dtmf, incoming call signal) come first.
......@@ -983,6 +985,8 @@ void AlsaLayer::audioCallback (void)
if (file_tone && _RingtoneHandle) {
_debug("RINGTONE: %d", snd_pcm_avail_update(_RingtoneHandle));
int ringtoneAvailSmpl = snd_pcm_avail_update(_RingtoneHandle);
int ringtoneAvailBytes = ringtoneAvailSmpl*sizeof(SFLDataFormat);
......
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