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, ...@@ -239,7 +239,7 @@ void AudioHandler::SetChannelCount(unsigned channel_count,
} else { } else {
exception_state.ThrowDOMException( exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError, DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>( ExceptionMessages::IndexOutsideRange<uint32_t>(
"channel count", channel_count, 1, "channel count", channel_count, 1,
ExceptionMessages::kInclusiveBound, ExceptionMessages::kInclusiveBound,
BaseAudioContext::MaxNumberOfChannels(), BaseAudioContext::MaxNumberOfChannels(),
......
...@@ -284,7 +284,7 @@ AudioWorkletNode* AudioWorkletNode::Create( ...@@ -284,7 +284,7 @@ AudioWorkletNode* AudioWorkletNode::Create(
channel_count > BaseAudioContext::MaxNumberOfChannels()) { channel_count > BaseAudioContext::MaxNumberOfChannels()) {
exception_state.ThrowDOMException( exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError, DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>( ExceptionMessages::IndexOutsideRange<uint32_t>(
"channel count", channel_count, 1, "channel count", channel_count, 1,
ExceptionMessages::kInclusiveBound, ExceptionMessages::kInclusiveBound,
BaseAudioContext::MaxNumberOfChannels(), BaseAudioContext::MaxNumberOfChannels(),
......
...@@ -156,7 +156,7 @@ void DynamicsCompressorHandler::SetChannelCount( ...@@ -156,7 +156,7 @@ void DynamicsCompressorHandler::SetChannelCount(
} else { } else {
exception_state.ThrowDOMException( exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError, DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>( ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1, "channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2, ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound)); ExceptionMessages::kInclusiveBound));
......
...@@ -608,7 +608,7 @@ void PannerHandler::SetChannelCount(unsigned channel_count, ...@@ -608,7 +608,7 @@ void PannerHandler::SetChannelCount(unsigned channel_count,
} else { } else {
exception_state.ThrowDOMException( exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError, DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>( ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1, "channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2, ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound)); ExceptionMessages::kInclusiveBound));
......
...@@ -105,7 +105,7 @@ void RealtimeAudioDestinationHandler::SetChannelCount( ...@@ -105,7 +105,7 @@ void RealtimeAudioDestinationHandler::SetChannelCount(
return; return;
} }
unsigned long old_channel_count = this->ChannelCount(); uint32_t old_channel_count = this->ChannelCount();
AudioHandler::SetChannelCount(channel_count, exception_state); AudioHandler::SetChannelCount(channel_count, exception_state);
// Stop, re-create and start the destination to apply the new channel count. // Stop, re-create and start the destination to apply the new channel count.
......
...@@ -105,7 +105,7 @@ void StereoPannerHandler::SetChannelCount(unsigned channel_count, ...@@ -105,7 +105,7 @@ void StereoPannerHandler::SetChannelCount(unsigned channel_count,
} else { } else {
exception_state.ThrowDOMException( exception_state.ThrowDOMException(
DOMExceptionCode::kNotSupportedError, DOMExceptionCode::kNotSupportedError,
ExceptionMessages::IndexOutsideRange<unsigned long>( ExceptionMessages::IndexOutsideRange<uint32_t>(
"channelCount", channel_count, 1, "channelCount", channel_count, 1,
ExceptionMessages::kInclusiveBound, 2, ExceptionMessages::kInclusiveBound, 2,
ExceptionMessages::kInclusiveBound)); 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