Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Audio IP Core: how to reproduce a sound

Hi,

I'm trying to develop a program with Altera DE2 and Audio IP Core.

I declared in memory a wave file just as an array of 32-bits elements.

Here it is the code:


alt_up_audio_reset_audio_core();
lw = alt_up_audio_write_left_channel(notify, LEN);
rw = alt_up_audio_write_right_channel(notify, LEN);
printf ("lw: %d rw: %d\n\n", lw, rw);
lw and lr remain stuck to 128,while the array is much longer. it seems the FIFO doesn't empty by itself and the sound is not reproduced. So, how can I make it reproduced?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,Vinlos,have your problem been solved?

    I'm facing the same problem,would you like tell something about that?