Commit e8c12b57 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Change unsigned long to uint32_t in third_party/blink/renderer/modules/webaudio/

- unsigned long -> uint32_t
- No logic change
- Reference: https://google.github.io/styleguide/cppguide.html#Integer_Types

Bug: 930252
Change-Id: I73df0c545df9a669a0db7528fbf52e0c581189b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1530357Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642400}
parent c9181dd2
......@@ -239,7 +239,7 @@ void AudioHandler::SetChannelCount(unsigned channel_count,
} else {
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>(
ExceptionMessages::IndexOutsideRange<uint32_t>(
"channel count", channel_count, 1,
ExceptionMessages::kInclusiveBound,
BaseAudioContext::MaxNumberOfChannels(),
......
......@@ -284,7 +284,7 @@ AudioWorkletNode* AudioWorkletNode::Create(
channel_count > BaseAudioContext::MaxNumberOfChannels()) {
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>(
ExceptionMessages::IndexOutsideRange<uint32_t>(
"channel count", channel_count, 1,
ExceptionMessages::kInclusiveBound,
BaseAudioContext::MaxNumberOfChannels(),
......
......@@ -156,7 +156,7 @@ void DynamicsCompressorHandler::SetChannelCount(
} else {
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>(
ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound));
......
......@@ -608,7 +608,7 @@ void PannerHandler::SetChannelCount(unsigned channel_count,
} else {
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>(
ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound));
......
......@@ -105,7 +105,7 @@ void RealtimeAudioDestinationHandler::SetChannelCount(
return;
}
unsigned long old_channel_count = this->ChannelCount();
uint32_t old_channel_count = this->ChannelCount();
AudioHandler::SetChannelCount(channel_count, exception_state);
// Stop, re-create and start the destination to apply the new channel count.
......
......@@ -105,7 +105,7 @@ void StereoPannerHandler::SetChannelCount(unsigned channel_count,
} else {
exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>(
ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment