mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
Mark unused vars as comment
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@104 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
Neutrino-GUI - DBoxII-Project
|
||||
|
||||
Copyright (C) 2004 Zwen
|
||||
|
||||
|
||||
Homepage: http://www.dbox2.info/
|
||||
|
||||
Kommentar:
|
||||
|
||||
wav audio decoder
|
||||
|
||||
|
||||
License: GPL
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
@@ -78,7 +78,7 @@ int endianTest=1;
|
||||
CBaseDec::RetCode CWavDec::Decoder(FILE *in, int OutputFd, State* state, CAudioMetaData* meta_data, time_t* time_played, unsigned int* secondsToSkip)
|
||||
{
|
||||
char* buffer;
|
||||
RetCode Status=OK;
|
||||
RetCode Status=OK;
|
||||
|
||||
if (!SetMetaData(in, meta_data))
|
||||
{
|
||||
@@ -116,7 +116,7 @@ CBaseDec::RetCode CWavDec::Decoder(FILE *in, int OutputFd, State* state, CAudioM
|
||||
{
|
||||
while(*state==PAUSE)
|
||||
usleep(10000);
|
||||
|
||||
|
||||
if(*state==FF || *state==REV)
|
||||
{
|
||||
if (oldSecsToSkip != *secondsToSkip)
|
||||
@@ -158,14 +158,14 @@ CBaseDec::RetCode CWavDec::Decoder(FILE *in, int OutputFd, State* state, CAudioM
|
||||
{
|
||||
fprintf(stderr,"%s: PCM write error (%s).\n", ProgName, strerror(errno));
|
||||
Status=WRITE_ERR;
|
||||
}
|
||||
}
|
||||
*time_played = (meta_data->bitrate!=0) ? (ftell(in)-header_size)*8/meta_data->bitrate : 0;
|
||||
} while (bytes > 0 && *state!=STOP_REQ && Status==OK);
|
||||
free(buffer);
|
||||
return Status;
|
||||
}
|
||||
|
||||
bool CWavDec::GetMetaData(FILE *in, const bool nice, CAudioMetaData* m)
|
||||
bool CWavDec::GetMetaData(FILE *in, const bool /*nice*/, CAudioMetaData* m)
|
||||
{
|
||||
return SetMetaData(in, m);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ bool CWavDec::SetMetaData(FILE* in, CAudioMetaData* m)
|
||||
struct WavHeader wh;
|
||||
|
||||
header_size = 44;
|
||||
|
||||
|
||||
fseek(in, 0, SEEK_END);
|
||||
int filesize = ftell(in);
|
||||
fseek(in, 0, SEEK_SET);
|
||||
|
Reference in New Issue
Block a user