Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sound Card + Intel Galileo + Alsa + confusing documentation

Status
Not open for further replies.

julian403

Full Member level 5
Joined
Feb 28, 2014
Messages
254
Helped
1
Reputation
2
Reaction score
1
Trophy points
18
Location
Argentina
Activity points
2,105
Hello, I want to read sound card's ADC and generate a matrix with that samples. Then compare the matrix to detected pratons, etc.

But I never used an audio's API. The Yocto has intalled Alsa so I decided to use it but looking the Alsa's documentation for asoundlib.h is confusing for me.

Do you have same tutorial for asoundlib.h?
 

Yes I saw that. But if you see the picture.

Captura de pantalla de 2016-07-14 17-02-04.png

Captura de pantalla de 2016-07-14 17-47-03.png

I included asoundlib.h and the sentence

snd_pcm_t *handle;

it's right. but there is an undefined reference to snd_pcm_open()

rc = snd_pcm_open(&handle, "default",
SND_PCM_STREAM_PLAYBACK, 0);


What can it be?
 

Did you make a search in all project files to seek where the parameter SND_PCM_STREAM_PLAYBACK is defined ?
Perhaps the corresponding .h file wasn't yet included in the header of the current file.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top