Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NebiyouTen authored Mar 20, 2019
1 parent ad9f6a7 commit 3dd66a1
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions README.md
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
```


0 comments on commit 3dd66a1

Please sign in to comment.