mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Renamed Decoder:getBits to Decoder:getBitDepth (see issue #636)
This commit is contained in:
@@ -41,7 +41,7 @@ FLACDecoder::FLACDecoder(Data *data, const std::string &ext, int nbufferSize)
|
||||
process_until_end_of_metadata();
|
||||
process_single();
|
||||
seek(0);
|
||||
bufferSize = 256 * getBits() * getChannels() * 2;
|
||||
bufferSize = 256 * getBitDepth() * getChannels() * 2;
|
||||
delete[](char *) buffer;
|
||||
buffer = new char[bufferSize];
|
||||
}
|
||||
@@ -98,7 +98,7 @@ int FLACDecoder::getChannels() const
|
||||
return get_channels();
|
||||
}
|
||||
|
||||
int FLACDecoder::getBits() const
|
||||
int FLACDecoder::getBitDepth() const
|
||||
{
|
||||
return get_bits_per_sample();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user