silence is constant, as is the buffer we pass to playAudio
git-svn-id: https://svn.musicpd.org/mpd/trunk@7123 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
2cc59816a6
commit
4c88ef34bb
|
@ -366,7 +366,7 @@ int openAudioDevice(AudioFormat * audioFormat)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int playAudio(char *playChunk, int size)
|
||||
int playAudio(const char *playChunk, int size)
|
||||
{
|
||||
int send;
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ void finishAudioDriver(void);
|
|||
|
||||
int openAudioDevice(AudioFormat * audioFormat);
|
||||
|
||||
int playAudio(char *playChunk, int size);
|
||||
int playAudio(const char *playChunk, int size);
|
||||
|
||||
void dropBufferedAudio(void);
|
||||
|
||||
|
|
|
@ -510,7 +510,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
|||
int nextChunk = -1;
|
||||
int test;
|
||||
int decodeWaitedOn = 0;
|
||||
char silence[CHUNK_SIZE];
|
||||
static const char silence[CHUNK_SIZE];
|
||||
double sizeToTime = 0.0;
|
||||
int previousMetadataChunk = -1;
|
||||
MetadataChunk currentMetadataChunk;
|
||||
|
@ -518,8 +518,6 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
|||
int end;
|
||||
int next = -1;
|
||||
|
||||
memset(silence, 0, CHUNK_SIZE);
|
||||
|
||||
if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue