From 7e22c53b389a39d39af56d6bc6008133cd9bcc03 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Fri, 6 Jun 2008 10:56:22 -0400
Subject: [PATCH] Idem

---
 src/audio/pulselayer.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/audio/pulselayer.cpp b/src/audio/pulselayer.cpp
index 704d424df6..99e8c0fce1 100644
--- a/src/audio/pulselayer.cpp
+++ b/src/audio/pulselayer.cpp
@@ -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;
-- 
GitLab