Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

How wavread found out the data sample of the wav file?

Asked by I Made

I Made (view profile)

on 27 Apr 2013

Hey i just want to know how did wavread function automatically recognize/found out the data sample of the wav file? because i found out that the sample data value are not always in the same index when we stream .wav file into array. lately i'm trying to use delphi to create similar function to wavread but stuck on how to find the place of sample data of each .wav file.

0 Comments

I Made

I Made (view profile)

Tags

Products

No products are associated with this question.

1 Answer

Answer by Jan Simon

Jan Simon (view profile)

on 27 Apr 2013

4 Comments

Walter Roberson

Walter Roberson (view profile)

on 28 Apr 2013

First it figures out which format it is (by looking at Magic Numbers). Then it looks up that format to find out where the sample rate is for that format.

Jan Simon

Jan Simon (view profile)

on 28 Apr 2013

@I Made: Please add links to the threads in other forums, when you cross-post a problem. Otherwise it would be a waste of time, if someone posts an answer here, which can be found at stackoverflow already. Alternative: Do not cross-post at all. Thanks.

I Made

I Made (view profile)

on 13 May 2013

Sory to all, but that's me too ask there T_T.. now i know that the simplest way to find the sample data is detect 'data' string then the next following it is the sample data.

Jan Simon

Jan Simon (view profile)

Contact us