Processing wav files in MATLAB: wavread(), downsampling and PCM as signed vs unsigned

9 ビュー (過去 30 日間)
Hassan Iqbal
Hassan Iqbal 2016 年 4 月 28 日
I have used wavread and wavwrite functions to work with wav files. I have some questions about it.
1) Why does reading a wav file generate floating point values for the samples, when actual samples are stored as 8 or 16 bit integers as PCM?
2) why does the wav file header contain a mix of little and big endian format data? certainly the data must in a single format either only little endian or only big endian.
3) Why does MATLAB ignore almost everything in the header from the wav file and only stores sampling rate and actual samples into memory variables?
4) How does one carry out upsampling or downsampling of a wav file?
5) What is the difference between storing audio as signed or unsigned samples in a wav file i.e can the same sound be expressed using both formats?

回答 (0 件)

カテゴリ

Find more on Audio Plugin Creation and Hosting in Help Center and File Exchange

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by