Search
lxdream.org :: lxdream/src/drivers/audio_null.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_null.c
changeset 66:2ec5b6eb75e5
next74:771ee2b1e4f8
author nkeynes
date Tue Jan 10 13:56:54 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Go go gadget audio!
Slow, but it works :)
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/drivers/audio_null.c Tue Jan 10 13:56:54 2006 +0000
1.3 @@ -0,0 +1,31 @@
1.4 +/**
1.5 + * $Id: audio_null.c,v 1.1 2006-01-10 13:56:54 nkeynes Exp $
1.6 + *
1.7 + * The "null" audio driver, which just discards all input without even
1.8 + * looking at it.
1.9 + *
1.10 + * Copyright (c) 2005 Nathan Keynes.
1.11 + *
1.12 + * This program is free software; you can redistribute it and/or modify
1.13 + * it under the terms of the GNU General Public License as published by
1.14 + * the Free Software Foundation; either version 2 of the License, or
1.15 + * (at your option) any later version.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful,
1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.20 + * GNU General Public License for more details.
1.21 + */
1.22 +#include "aica/audio.h"
1.23 +
1.24 +gboolean null_audio_set_format( uint32_t rate, uint32_t format )
1.25 +{
1.26 + return TRUE;
1.27 +}
1.28 +
1.29 +gboolean null_audio_process_buffer( audio_buffer_t buffer )
1.30 +{
1.31 + return TRUE;
1.32 +}
1.33 +
1.34 +struct audio_driver null_audio_driver = { null_audio_set_format, null_audio_process_buffer };
.