Bug 1265400 - Use unsigned long for AudioBuffer length and numberOfChannels; r=smaug

MozReview-Commit-ID: 47ZDDvj5QrA

--HG--
extra : rebase_source : 2c441c7d04ec84eeec526a9a93607ffcac263617
This commit is contained in:
Dan Minor 2016-04-20 12:32:17 -04:00
parent 7d91961d6a
commit 3fde1b5f43
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ public:
return mSampleRate;
}
int32_t Length() const
uint32_t Length() const
{
return mLength;
}

View File

@ -13,12 +13,12 @@
interface AudioBuffer {
readonly attribute float sampleRate;
readonly attribute long length;
readonly attribute unsigned long length;
// in seconds
readonly attribute double duration;
readonly attribute long numberOfChannels;
readonly attribute unsigned long numberOfChannels;
[Throws]
Float32Array getChannelData(unsigned long channel);