[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [qtopenal] src: Divide the sampleSize by 8 for the maxlen since it
From:       Laszlo Papp <ext-laszlo.papp () nokia ! com>
Date:       2011-11-30 23:53:01
Message-ID: 20111130235301.7F266A60C6 () git ! kde ! org
[Download RAW message or body]

Git commit 0c5162941b453bb7af4f3c7c5522bfd6e9ceac61 by Laszlo Papp.
Committed on 01/12/2011 at 02:51.
Pushed by lpapp into branch 'master'.

Divide the sampleSize by 8 for the maxlen since it is in bits

M  +1    -1    src/qalcontext.cpp

http://commits.kde.org/qtopenal/0c5162941b453bb7af4f3c7c5522bfd6e9ceac61

diff --git a/src/qalcontext.cpp b/src/qalcontext.cpp
index 4b092a4..0e162f7 100644
--- a/src/qalcontext.cpp
+++ b/src/qalcontext.cpp
@@ -189,7 +189,7 @@ QALContext::cacheBuffer(const QString& filename)
 
         QByteArray decodedData;
         QByteArray tmpData;
-        int maxlen = qalSndAudioDecoder.channels() * qalSndAudioDecoder.sampleRate() \
* qalSndAudioDecoder.sampleSize(); +        int maxlen = \
qalSndAudioDecoder.channels() * qalSndAudioDecoder.sampleRate() * \
qalSndAudioDecoder.sampleSize() / 8;  
         forever {
             tmpData = qalSndAudioDecoder.decode(maxlen);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic