Skip to content

Commit 3dd66a1

Browse files
authored
Update README.md
1 parent ad9f6a7 commit 3dd66a1

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
# Alsa_Wave_Play
1+
# Alsa_Wave_Playback and Capture
22

3-
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.
3+
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.
44

5-
To run use
5+
## PCM_Playback
6+
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.
7+
8+
## PCM_Capture
9+
The program opens an audio stream form an UAC222 audio device and writes it to a wav file. Wav file header is generated and
10+
data will be buffered to the file. The output of this capture can be played back with the above program.
11+
12+
To run use the following commands
613
```
7-
./gcc_compile_script && PCM_Wav_Play
14+
./gcc_compile_script && ./PCM_Wav_Play
15+
```
16+
817
```
9-
It generates executlabe file.
18+
./gcc_compile_script && ./PCM_Capture
19+
```
20+
21+

0 commit comments

Comments
 (0)