在Matlab Coder中读取.wav文件 [英] Reading .wav file in Matlab Coder

查看:170
本文介绍了在Matlab Coder中读取.wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 matlab编码器读取音频文件.问题是不支持wavread(),但是由于这是任何音频编码中必不可少的一部分,因此我认为必须有另一种方法来实现这一目标? 有什么想法吗?

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?

推荐答案

您的用例是什么?如果您真的只想在MATLAB中的MEX函数中运行生成的代码,则可以使用coder.extrinsic调用wavread.在MATLAB环境之外无法正常工作.

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.

在MATLAB环境之外,您将需要使用自定义C代码集成.

Outside the MATLAB environment, you will need to use custom C code integration.

这篇关于在Matlab Coder中读取.wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆