|
Lines 19-24
Link Here
|
| 19 |
* 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * |
19 |
* 51 Franklin Steet, Fifth Floor, Boston, MA 02111-1307, USA. * |
| 20 |
***************************************************************************/ |
20 |
***************************************************************************/ |
| 21 |
|
21 |
|
|
|
22 |
#include <qconfig.h> // for Q_BYTE_ORDER |
| 22 |
#include <QtGui> |
23 |
#include <QtGui> |
| 23 |
|
24 |
|
| 24 |
#include "mp3transcode.h" |
25 |
#include "mp3transcode.h" |
|
Lines 64-71
Link Here
|
| 64 |
{ |
65 |
{ |
| 65 |
for ( int i = 0; i < ( size / 2 ); i++ ) |
66 |
for ( int i = 0; i < ( size / 2 ); i++ ) |
| 66 |
{ |
67 |
{ |
|
|
68 |
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN |
| 67 |
outputBuffer.append( tempBuffer[i * 2] ); |
69 |
outputBuffer.append( tempBuffer[i * 2] ); |
| 68 |
outputBuffer.append( tempBuffer[i * 2 + 1] ); |
70 |
outputBuffer.append( tempBuffer[i * 2 + 1] ); |
|
|
71 |
#else // Q_BIG_ENDIAN |
| 72 |
outputBuffer.append( tempBuffer[i * 2 + 1] ); |
| 73 |
outputBuffer.append( tempBuffer[i * 2] ); |
| 74 |
#endif // Q_BYTE_ORDER |
| 69 |
} |
75 |
} |
| 70 |
|
76 |
|
| 71 |
result = decodeMP3( &mpeg, NULL, 0, tempBuffer, sizeof( tempBuffer ), &size ); |
77 |
result = decodeMP3( &mpeg, NULL, 0, tempBuffer, sizeof( tempBuffer ), &size ); |