Skip to content

Instantly share code, notes, and snippets.

View maxmbed's full-sized avatar
🌶️

Maxime maxmbed

🌶️
View GitHub Profile
@maxmbed
maxmbed / sound_playback.c
Created October 10, 2020 16:09 — forked from ghedo/sound_playback.c
Simple sound playback using ALSA API and libasound
/*
* Simple sound playback using ALSA API and libasound.
*
* Compile:
* $ cc -o play sound_playback.c -lasound
*
* Usage:
* $ ./play <sample_rate> <channels> <seconds> < <file>
*
* Examples: