Search
lxdream.org :: lxdream/src/drivers/audio_null.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_null.c
changeset 643:653b0a70f173
prev561:533f6b478071
next697:479b8c213f61
author bhaal22
date Tue Feb 26 01:10:48 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Commit initial ALSA audio driver
Add init/shutdown stubs to audio driver structure
view annotate diff log raw
     1 /**
     2  * $Id$
     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 audio_null_init()
    22 {
    23   return TRUE;
    24 }
    26 gboolean audio_null_set_format( uint32_t rate, uint32_t format )
    27 {
    28     return TRUE;
    29 }
    31 gboolean audio_null_process_buffer( audio_buffer_t buffer )
    32 {
    33     return TRUE;
    34 }
    36 gboolean audio_null_close()
    37 {
    38   return TRUE;
    39 }
    41 struct audio_driver audio_null_driver = { "null", 
    42 					  audio_null_init,
    43 					  audio_null_set_format, 
    44 					  audio_null_process_buffer,
    45                                           audio_null_close};
.