- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi dear members,
i make a simple project on DE2_115 board.It record sound and play it.But sound is very dirty.my c code is : #include<stdio.h> int
i=0; #include
"altera_up_avalon_audio.h" int
main(void) { alt_up_audio_dev * audio_dev; /* used for audio record/playback */ unsigned
int l_buf; unsigned
int r_buf; // open the Audio port audio_dev = alt_up_audio_open_dev ( "/dev/audio"); if
( audio_dev == null) printf( "Error: could not open audio device \n"); else
printf ( "Opened audio device \n"); /* read and echo audio data */ { // read audio buffer alt_up_audio_read_fifo (audio_dev, &(r_buf), 1, ALT_UP_AUDIO_RIGHT); alt_up_audio_read_fifo (audio_dev, &(l_buf), 1, ALT_UP_AUDIO_LEFT); // write audio buffer alt_up_audio_write_fifo (audio_dev, &(r_buf), 1, ALT_UP_AUDIO_RIGHT); alt_up_audio_write_fifo (audio_dev, &(l_buf), 1, ALT_UP_AUDIO_LEFT);   } }
- Tags:
- Include
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What does "dirty" mean?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sizzle.I solved it.Due to frequency sizzle doing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same issue. How did you fix it?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page