sad

simple audio daemon
git clone git://git.2f30.org/sad
Log | Files | Refs | LICENSE

commit 29a81782e752a5ee6a10cbe72c2e60d1c692f138
parent 584f4028c158e3d7f88fdcccd7b6b4431c7792e7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 28 Dec 2014 23:18:37 +0100

alsa: put device at top

Diffstat:
Malsa.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alsa.c b/alsa.c @@ -13,6 +13,7 @@ static snd_pcm_t *hdl; static snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE; static const int frame_size = 4; /* TODO: don't hardcode */ +static const char *device = "default"; /* TODO: make configurable? */ static int alsavol(int vol) @@ -23,7 +24,6 @@ alsavol(int vol) static int alsaopen(int bits, int rate, int channels) { - const char *device = "default"; /* TODO: make configurable? */ int r; if ((r = snd_pcm_open(&hdl, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {