mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 984071 - Part 1: Fix unused variable warning in content/media/webaudio. r=padenot
This commit is contained in:
parent
f39ae3e011
commit
33cd68ff0e
@ -112,11 +112,13 @@ int HRTFPanner::calculateDesiredAzimuthIndexAndBlend(double azimuth, double& azi
|
||||
|
||||
void HRTFPanner::pan(double desiredAzimuth, double elevation, const AudioChunk* inputBus, AudioChunk* outputBus)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
unsigned numInputChannels =
|
||||
inputBus->IsNull() ? 0 : inputBus->mChannelData.Length();
|
||||
|
||||
MOZ_ASSERT(numInputChannels <= 2);
|
||||
MOZ_ASSERT(inputBus->mDuration == WEBAUDIO_BLOCK_SIZE);
|
||||
#endif
|
||||
|
||||
bool isOutputGood = outputBus && outputBus->mChannelData.Length() == 2 && outputBus->mDuration == WEBAUDIO_BLOCK_SIZE;
|
||||
MOZ_ASSERT(isOutputGood);
|
||||
|
Loading…
Reference in New Issue
Block a user