The audio frame iterator was created from the WaveReader to decode the audio frames.Every audio frame is an array that includes one sample for every channel.This iterator supports multi-channel audio files e.g. 5.1 stereo or 7.1 stereo audio files.Since each audio frame is a Vec , it’s expensive in memory and slow.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple frames.After the iterator was created, the WaveReader was consumed and couldn’t be used anymore.
The audio frame iterator was created from the WaveReader to decode the audio frames.Every audio frame is an array that includes one sample for every channel.This iterator supports multi-channel audio files e.g. 5.1 stereo or 7.1 stereo audio files.Since each audio frame is a Vec , it’s expensive in memory and slow.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple frames.
The audio frame iterator was created from the WaveReader to decode the mono audio.This iterator is dedicated to mono audio, it combines every channel into one channel and excretes every single sample as an audio frame.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple samples.After the iterator was created, the WaveReader was consumed and couldn’t be used anymore.
The audio frame iterator was created from the WaveReader to decode the mono audio.This iterator is dedicated to mono audio, it combines every channel into one channel and excretes every single sample as an audio frame.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple samples.
The audio frame iterator was created from the WaveReader to decode the stereo audio.This iterator is dedicated to two-channel stereo audio, if the source audio is mono, it duplicates the sample to excrete stereo frames for you. If the source audio is multi-channel audio, this iterator can’t be created.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple samples.After the iterator was created, the WaveReader was consumed and couldn’t be used anymore.
The audio frame iterator was created from the WaveReader to decode the stereo audio.This iterator is dedicated to two-channel stereo audio, if the source audio is mono, it duplicates the sample to excrete stereo frames for you. If the source audio is multi-channel audio, this iterator can’t be created.Besides it’s an iterator, the struct itself provides decode_frames() for batch decode multiple samples.