Skip to content
Snippets Groups Projects
Commit ae9c03cf authored by Yun Liu's avatar Yun Liu
Browse files
parents b5ffb182 d3b646d4
Branches
Tags
No related merge requests found
...@@ -296,7 +296,7 @@ void PulseLayer::writeToSpeaker( void ) ...@@ -296,7 +296,7 @@ void PulseLayer::writeToSpeaker( void )
urgentAvail = _urgentRingBuffer.AvailForGet(); urgentAvail = _urgentRingBuffer.AvailForGet();
if (urgentAvail > 0) { if (urgentAvail > 0) {
// Urgent data (dtmf, incoming call signal) come first. // Urgent data (dtmf, incoming call signal) come first.
_debug("Play urgent!: %i\n" , urgentAvail); //_debug("Play urgent!: %i\n" , urgentAvail);
toGet = (urgentAvail < (int)(framesPerBuffer * sizeof(SFLDataFormat))) ? urgentAvail : framesPerBuffer * sizeof(SFLDataFormat); toGet = (urgentAvail < (int)(framesPerBuffer * sizeof(SFLDataFormat))) ? urgentAvail : framesPerBuffer * sizeof(SFLDataFormat);
out = (SFLDataFormat*)pa_xmalloc(toGet * sizeof(SFLDataFormat) ); out = (SFLDataFormat*)pa_xmalloc(toGet * sizeof(SFLDataFormat) );
_urgentRingBuffer.Get(out, toGet, 100); _urgentRingBuffer.Get(out, toGet, 100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment