Audio In/Out API iMX53QSB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Audio In/Out API iMX53QSB

1,214件の閲覧回数
JimElliott
Contributor I

Hello all, this is my first post here, so please take it easy on me :)

Before I begin I just want to start by saying that this is the first time I've ever tried to program an embedded device outside of a simple 8bit PIC using assembly. I do have C programming experience but it is all been middle-ware, network, web, and database type stuff.

So, now that that is out of the way. I would like to write a C/C++ program that grabs audio from the Audio In (microphone) port, processes that data, and then sends it back out the Audio Out (headphones) port. How do I go about doing that - specifically the hardware Audio In/Out part? Is there an API associated with that? How do I address those ports?

And in case it wasn't clear by the 'Discussion Title' I am using the iMX53QSB with whatever version of Ubuntu that ships with newest boards....

Any advice would be greatly appreciated.

Thanks,

Jim

タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,147件の閲覧回数
JimElliott
Contributor I

Thank you so much for the response. I'm going to take a look at that link this weekend.

0 件の賞賛
返信

1,147件の閲覧回数
KursadOney
NXP Employee
NXP Employee

I think your best bet is to use the ALSA API. Here is a quick howto document with code examples. You can also check out /proc/asound/ (or use alsa utilities) to find out the audio devices discovered in your system.

0 件の賞賛
返信