mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
optimizations
git-svn-id: svn://elaine/murooma/trunk@52 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
parent
7228f5565b
commit
f444f63d25
2 changed files with 3 additions and 3 deletions
2
chunk.h
2
chunk.h
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue