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

Idem

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