mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)
This commit is contained in:
@@ -34,7 +34,7 @@ namespace lullaby
|
||||
bool Mpg123Decoder::inited = false;
|
||||
|
||||
Mpg123Decoder::Mpg123Decoder(Data * data, const std::string & ext, int bufferSize, int sampleRate)
|
||||
: Decoder(data, ext, bufferSize, sampleRate), channels(MPG123_STEREO), handle(0)
|
||||
: Decoder(data, ext, bufferSize, sampleRate), handle(0), channels(MPG123_STEREO)
|
||||
{
|
||||
|
||||
data_size = data->getSize();
|
||||
@@ -195,17 +195,17 @@ namespace lullaby
|
||||
return true;
|
||||
}
|
||||
|
||||
int Mpg123Decoder::getChannels() const
|
||||
{
|
||||
return channels;
|
||||
}
|
||||
|
||||
int Mpg123Decoder::getBits() const
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
int Mpg123Decoder::feed(int bytes)
|
||||
int Mpg123Decoder::getChannels() const
|
||||
{
|
||||
return channels;
|
||||
}
|
||||
|
||||
int Mpg123Decoder::getBits() const
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
|
||||
int Mpg123Decoder::feed(int bytes)
|
||||
{
|
||||
int remaining = data_size - data_offset;
|
||||
|
||||
@@ -219,8 +219,8 @@ namespace lullaby
|
||||
if(r == MPG123_OK || r == MPG123_DONE)
|
||||
data_offset += feed_bytes;
|
||||
|
||||
return r;
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
} // lullaby
|
||||
} // sound
|
||||
|
||||
Reference in New Issue
Block a user