Improve utils api doc (#13922)

This commit is contained in:
minggo
2022-12-28 15:04:56 +08:00
committed by GitHub
parent 26bd717d0f
commit 313c58fe33
167 changed files with 949 additions and 872 deletions
@@ -59,7 +59,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 * info.channels; // FIXED_16
_pcmHeader.bytesPerFrame = 2 * info.channels; // FIXED_16
_pcmHeader.dataFormat = AudioDataFormat::SIGNED_16; //FIXED,
_pcmHeader.sampleRate = info.samplerate;
_pcmHeader.totalFrames = info.frames;