I want to read an audio file with matlab coder. The problem is that wavread()
is not supported, but as this is a pretty essential part of any audio coding I am thinking that there must be another way to achieve this? Any ideas?
相关问题
- Extract matrix elements using a vector of column i
- How do you get R's null and residual deviance
- How to display an image represented by three matri
- OpenCV - Is there an implementation of marker base
- Avoid copying an array when using mexCallMATLAB
相关文章
- How do I append metadata to an image in Matlab?
- How can I write-protect the Matlab language?
- `std::sin` is wrong in the last bit
- Escape sequence to display apostrophe in MATLAB
- Vertical line fit using polyfit
- Reading .mat file using C: how to read cell-struct
- Cross platform audio analysis library
- Is it possible to compare 3D images?
The WAV file format is fairly simple & widely documented for example here. You can use the low-level file IO functions,
fopen()
,fread()
,fseek
to read the file, assuming these are themselves available. This is exactly whatwavread()
does internally - take a look at the source.fopen()
is now supported starting from Matlab 2013a. See here.What is your use case? If you really just want to run the generated code in a MEX-function within MATLAB you can use coder.extrinsic to call wavread. This will not work outside of the MATLAB environment.
Outside the MATLAB environment, you will need to use custom C code integration.