mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
7d91961d6a
commit
3fde1b5f43
@ -70,7 +70,7 @@ public:
|
||||
return mSampleRate;
|
||||
}
|
||||
|
||||
int32_t Length() const
|
||||
uint32_t Length() const
|
||||
{
|
||||
return mLength;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user