optimizations

git-svn-id: svn://elaine/murooma/trunk@52 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-01 20:31:27 +00:00
parent 7228f5565b
commit f444f63d25
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
#ifndef CHUNK_H #ifndef CHUNK_H
#define CHUNK_H #define CHUNK_H
#define SAMPLE_RATE (44100) #define SAMPLE_RATE (48000)
#define SAMPLE_BIT (16) #define SAMPLE_BIT (16)
#define CHANNELS (2) #define CHANNELS (2)

View file

@ -211,8 +211,8 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
for( i=0; i<framesPerBuffer; i++) for( i=0; i<framesPerBuffer; i++)
{ {
*out++ = (chunk->payload[4*i+1]*256) + chunk->payload[4*i+0]; *out++ = (chunk->payload[4*i+1] << 8) + chunk->payload[4*i+0];
*out++ = (chunk->payload[4*i+3]*256) + chunk->payload[4*i+2]; *out++ = (chunk->payload[4*i+3] << 8) + chunk->payload[4*i+2];
} }
delete chunk; delete chunk;