filename | src/drivers/audio_null.c |
changeset | 66:2ec5b6eb75e5 |
next | 74:771ee2b1e4f8 |
author | nkeynes |
date | Tue Jan 10 13:56:54 2006 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Go go gadget audio! Slow, but it works :) |
view | annotate | diff | log | raw |
1 /**
2 * $Id: audio_null.c,v 1.1 2006-01-10 13:56:54 nkeynes Exp $
3 *
4 * The "null" audio driver, which just discards all input without even
5 * looking at it.
6 *
7 * Copyright (c) 2005 Nathan Keynes.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
19 #include "aica/audio.h"
21 gboolean null_audio_set_format( uint32_t rate, uint32_t format )
22 {
23 return TRUE;
24 }
26 gboolean null_audio_process_buffer( audio_buffer_t buffer )
27 {
28 return TRUE;
29 }
31 struct audio_driver null_audio_driver = { null_audio_set_format, null_audio_process_buffer };
.