-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad9f6a7
commit 3dd66a1
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
# Alsa_Wave_Play | ||
# Alsa_Wave_Playback and Capture | ||
|
||
A simple C program that uses the ALSA audio library to play wav files. [Here](https://www.alsa-project.org/wiki/Download) is the link to the ALSA linux library. The program parses wav files and writes the data buffer to a sound card. Parsing wav files and headers was based on [this](http://truelogic.org/wordpress/2015/09/04/parsing-a-wav-file-in-c/) tutorial. | ||
A simple C program that uses the ALSA audio library to play and record wav files. [Here](https://www.alsa-project.org/wiki/Download) is the link to the ALSA linux library. | ||
|
||
To run use | ||
## PCM_Playback | ||
The program parses wav files and writes the data buffer to a sound card. Parsing wav files and headers was based on [this](http://truelogic.org/wordpress/2015/09/04/parsing-a-wav-file-in-c/) tutorial. | ||
|
||
## PCM_Capture | ||
The program opens an audio stream form an UAC222 audio device and writes it to a wav file. Wav file header is generated and | ||
data will be buffered to the file. The output of this capture can be played back with the above program. | ||
|
||
To run use the following commands | ||
``` | ||
./gcc_compile_script && PCM_Wav_Play | ||
./gcc_compile_script && ./PCM_Wav_Play | ||
``` | ||
|
||
``` | ||
It generates executlabe file. | ||
./gcc_compile_script && ./PCM_Capture | ||
``` | ||
|
||
|