mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Rename Source/SoundData/Decoder:getChannels to getChannelCount (resolves issue #1307). Deprecate the old methods rather than completely removing them.
--HG-- branch : minor
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 * getBitDepth() * getChannels() * 2;
|
||||
bufferSize = 256 * getBitDepth() * getChannelCount() * 2;
|
||||
delete[](char *) buffer;
|
||||
buffer = new char[bufferSize];
|
||||
}
|
||||
@@ -93,7 +93,7 @@ bool FLACDecoder::isSeekable()
|
||||
return true;
|
||||
}
|
||||
|
||||
int FLACDecoder::getChannels() const
|
||||
int FLACDecoder::getChannelCount() const
|
||||
{
|
||||
return get_channels();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user