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.

Open wav file in nios Eclipse

Altera_Forum
Honored Contributor II
828 Views

HI 

 

I made an SOPC and I can load a sound to line out in kit DE2. But I want to load a wave file to the audio codec.  

I use the function : 

File *fp;  

fp = fopen(wav_file,"rb"); 

if (fp==NULL) 

printf("Error: cannot open file \n");  

to open wave file. Some wave files i addded to project and the path and file name i defined. But i didn't work. 

 

What problem i have made? 

:confused::(
0 Kudos
0 Replies
Reply