bsteinsbo / DE1-SoC-Sound

GNU Lesser General Public License v2.1
17 stars 16 forks source link

Example of project using the driver #5

Open AntoineLevesque opened 8 years ago

AntoineLevesque commented 8 years ago

Hi,

Would it be possible to provide an example of code using the drivers?

Something simple like audio through or mixing both of the input on the de1 before outputting the audio.

It would really help since the lack of documentation on the matter...

bsteinsbo commented 8 years ago

Hi,

It's a standard ALSA driver. Any Linux sound application should be able to use it, like e.g. "aplay" for playing music, "arecord" for recording and "alsamixer" for settings.

Google e.g. "alsa example program" to find lots of information about programming sound on Linux.

BR, Bjarne

AntoineLevesque commented 8 years ago

Thank you for your reply.

Do you think that an alsa application using your driver would be performant enought for real time dsp such as a guitar multi effects processor or am I better off using directly the university program audio module in qsys and to interact straight with the hardware?

Thx

Antoine Levesque

bsteinsbo commented 8 years ago

Hi,

I'm not an expert. But I guess the the answer will also depend on your filtering needs; if the DSP capabilities of the ARM processor is not sufficent and you need to use the FPGA hardware for your filters, your will have a fair amount of work to do to integrate this with the ALSA framework.

Search "linux sound real time" on google, and you will find people thinking that standard linux sound is good enough for their needs, maybe with the help of a low latency kernel. It's impossible for me to say if it's good enough for your needs.

BR, Bjarne