Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a channel in a .wav file format?Do all channels play simultaneaously when a wav file is played?

I read about.wav file format by googling,all I could figure was that Frames are made of samples(of some defined bit depth) and a wav stereo file has a multiple of something called channels.... The confusion is whether a channel is made up of frames? Do all channels play along when I play some audio file? If a channel is made up of frames,are all channels equal in length(bit wise)? Please answer if someone can,I have to display each channel separately when playing a wav file in waveform

like image 695
Soul Enrapturer Avatar asked Dec 21 '12 19:12

Soul Enrapturer


1 Answers

In each frame in wav there are channels. If you have stereo sound, then each frame contains two samples (left and right).

  • Do all channels play along when I play some audio file?

Yes, unless you chose to play only one channel. Then samples for second channel are ignored.

  • If a channel is made up of frames,are all channels equal in length(bit wise)?

Yes.

like image 83
yetihehe Avatar answered Oct 23 '22 11:10

yetihehe