Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Alt up audio library and WAV files

Altera_Forum
Honored Contributor II
777 Views

This problem is something I have been stuggling with the last few days. The project I am doing (for school) involves making a music player with VGA output and keyboard input. Audio is supplied on a SD card in a WAV format(48k, 16-bit, 2 channels). 

 

Everything works, except audio. I can read data from the SD card and get the bytes that make up the wavefiles. But how to correctly send them to the audio chip has puzzled me. In used both alt_up_audio_write_fifo and alt_up_audio_play_l (and r respectively). Used both pointers and content. Still the sounds remains distorted. There is a remote resemblence to what it the file sounds like on a PC. So I know I have the correct data. Just the trick of actually getting the data correctly the audio device using the above named functions. That latter is what I have been struggling with.
0 Kudos
0 Replies
Reply