mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Cleaned up some code, the 'ry' parameter of love.graphics.rectangle now defaults to the value of 'rx' rather than defaulting to 0.
This commit is contained in:
@@ -229,26 +229,26 @@ int CoreAudioDecoder::decode()
|
||||
bool CoreAudioDecoder::seek(float s)
|
||||
{
|
||||
OSStatus err = ExtAudioFileSeek(extAudioFile, (SInt64) (s * inputInfo.mSampleRate));
|
||||
|
||||
|
||||
if (err == noErr)
|
||||
{
|
||||
eof = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CoreAudioDecoder::rewind()
|
||||
{
|
||||
OSStatus err = ExtAudioFileSeek(extAudioFile, 0);
|
||||
|
||||
|
||||
if (err == noErr)
|
||||
{
|
||||
eof = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user