mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fix conflicts with default
--HG-- branch : sounddata-samplecount
This commit is contained in:
@@ -152,9 +152,9 @@ int SoundData::getSampleCount() const
|
||||
return (size/channels)/(bits/8);
|
||||
}
|
||||
|
||||
int SoundData::getDuration() const
|
||||
float SoundData::getDuration() const
|
||||
{
|
||||
return size/(channels*sampleRate*bits/8);
|
||||
return float(size) /(channels*sampleRate*bits/8);
|
||||
}
|
||||
|
||||
void SoundData::setSample(int i, float sample)
|
||||
|
||||
Reference in New Issue
Block a user