diff --git a/native/cocos/audio/common/decoder/AudioDecoderWav.cpp b/native/cocos/audio/common/decoder/AudioDecoderWav.cpp index c1c4c23d1c..b79e1e794a 100644 --- a/native/cocos/audio/common/decoder/AudioDecoderWav.cpp +++ b/native/cocos/audio/common/decoder/AudioDecoderWav.cpp @@ -60,7 +60,7 @@ bool AudioDecoderWav::open(const char *path) { } CC_LOG_DEBUG("wav info: frames: %d, samplerate: %d, channels: %d, format: %d", info.frames, info.samplerate, info.channels, info.format); _pcmHeader.channelCount = info.channels; - _pcmHeader.bytesPerFrame = 2; // FIXED_16 + _pcmHeader.bytesPerFrame = 2 * info.channels; // FIXED_16 _pcmHeader.dataFormat = AudioDataFormat::SIGNED_16;//FIXED, _pcmHeader.sampleRate = info.samplerate; _pcmHeader.totalFrames = info.frames;