Skip to content
Snippets Groups Projects
Commit 485203ea authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1962] Add debug comments

parent 59a4d0bf
Branches
Tags
No related merge requests found
...@@ -864,6 +864,8 @@ void AlsaLayer::audioCallback (void) ...@@ -864,6 +864,8 @@ void AlsaLayer::audioCallback (void)
toGet = framesPerBufferAlsa; toGet = framesPerBufferAlsa;
maxBytes = toGet * sizeof (SFLDataFormat); maxBytes = toGet * sizeof (SFLDataFormat);
_debug("PLAYBACK: %d", snd_pcm_avail_update(_PlaybackHandle));
if (urgentAvailBytes > 0) { if (urgentAvailBytes > 0) {
// Urgent data (dtmf, incoming call signal) come first. // Urgent data (dtmf, incoming call signal) come first.
...@@ -983,6 +985,8 @@ void AlsaLayer::audioCallback (void) ...@@ -983,6 +985,8 @@ void AlsaLayer::audioCallback (void)
if (file_tone && _RingtoneHandle) { if (file_tone && _RingtoneHandle) {
_debug("RINGTONE: %d", snd_pcm_avail_update(_RingtoneHandle));
int ringtoneAvailSmpl = snd_pcm_avail_update(_RingtoneHandle); int ringtoneAvailSmpl = snd_pcm_avail_update(_RingtoneHandle);
int ringtoneAvailBytes = ringtoneAvailSmpl*sizeof(SFLDataFormat); int ringtoneAvailBytes = ringtoneAvailSmpl*sizeof(SFLDataFormat);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment