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:
Alex Szpakowski
2015-05-27 17:36:27 -03:00
parent 2a4524e5c0
commit 0f986b10aa
25 changed files with 119 additions and 139 deletions
@@ -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;
}