Skip to content
Snippets Groups Projects
Commit 7e22c53b authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Idem

parent 718dc040
Branches
Tags
No related merge requests found
...@@ -312,9 +312,9 @@ void PulseLayer::writeToSpeaker( void ) ...@@ -312,9 +312,9 @@ void PulseLayer::writeToSpeaker( void )
AudioLoop* tone = _manager->getTelephoneTone(); AudioLoop* tone = _manager->getTelephoneTone();
if ( tone != 0) { if ( tone != 0) {
toGet = framesPerBuffer; toGet = framesPerBuffer;
out = (SFLDataFormat*)pa_xmalloc(toGet * sizeof(SFLDataFormat) * sizeof(SFLDataFormat)); out = (SFLDataFormat*)pa_xmalloc(toGet * sizeof(SFLDataFormat) );
tone->getNext(out, toGet * sizeof(SFLDataFormat) , 100); tone->getNext(out, toGet , 100);
pa_stream_write( playback->pulseStream() , out , toGet * sizeof(SFLDataFormat) * sizeof(SFLDataFormat) , pa_xfree, 0 , PA_SEEK_RELATIVE); pa_stream_write( playback->pulseStream() , out , toGet * sizeof(SFLDataFormat) , pa_xfree, 0 , PA_SEEK_RELATIVE);
} }
if ( (tone=_manager->getTelephoneFile()) != 0 ) { if ( (tone=_manager->getTelephoneFile()) != 0 ) {
toGet = framesPerBuffer; toGet = framesPerBuffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment