From: Ravindra Gadde on
Hi,

I was looking for C code for the wavread function in matlab.Can anyone help me regarding this?
From: Rune Allnor on
On 14 Des, 04:29, "Ravindra Gadde" <gadde.ravin...(a)gmail.com> wrote:
> Hi,
>
> I was looking for C code for the wavread function in matlab.Can anyone help me regarding this?

Depends on what you mean by 'help'. If you want the
source code for the matlab function, then no, you will
not get it. There might be other C implementations of
the same functionality out there, though. Ask in some C
programmer forum.

Rune
From: Steve Amphlett on
Rune Allnor <allnor(a)tele.ntnu.no> wrote in message <54c3b710-b50b-4bbb-8e16-7199d7866128(a)u7g2000yqm.googlegroups.com>...
> On 14 Des, 04:29, "Ravindra Gadde" <gadde.ravin...(a)gmail.com> wrote:
> > Hi,
> >
> > I was looking for C code for the wavread function in matlab.Can anyone help me regarding this?
>
> Depends on what you mean by 'help'. If you want the
> source code for the matlab function, then no, you will
> not get it. There might be other C implementations of
> the same functionality out there, though. Ask in some C
> programmer forum.
>
> Rune

I found a well explained guide to the WAV file format (and others) here:

http://www.wotsit.org/

The format is described in terms of C code.
From: Jan Simon on
Dear Ravindra!

> I was looking for C code for the wavread function in matlab.

Matlab's WAVREAD is an M-file, not a compiled C-mex file. So if you have access to a Matlab version, you can read it in the editor and convert the to a C-equivalent manually.

Good luck, Jan
From: Ravindra Gadde on
Thanks for reply Jan,

Actually I was looking for a C/C++ code which can serve the purpose of "wavread".
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hg5s9o$71h$1(a)fred.mathworks.com>...
> Dear Ravindra!
>
> > I was looking for C code for the wavread function in matlab.
>
> Matlab's WAVREAD is an M-file, not a compiled C-mex file. So if you have access to a Matlab version, you can read it in the editor and convert the to a C-equivalent manually.
>
> Good luck, Jan