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 561:533f6b478071
prev106:9048bac046c3
next643:653b0a70f173
author nkeynes
date Tue Jan 01 05:08:38 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Enable Id keyword on all source files
file annotate diff log raw
nkeynes@66
     1
/**
nkeynes@561
     2
 * $Id$
nkeynes@66
     3
 * 
nkeynes@66
     4
 * The "null" audio driver, which just discards all input without even
nkeynes@66
     5
 * looking at it.
nkeynes@66
     6
 *
nkeynes@66
     7
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@66
     8
 *
nkeynes@66
     9
 * This program is free software; you can redistribute it and/or modify
nkeynes@66
    10
 * it under the terms of the GNU General Public License as published by
nkeynes@66
    11
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@66
    12
 * (at your option) any later version.
nkeynes@66
    13
 *
nkeynes@66
    14
 * This program is distributed in the hope that it will be useful,
nkeynes@66
    15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@66
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@66
    17
 * GNU General Public License for more details.
nkeynes@66
    18
 */
nkeynes@66
    19
#include "aica/audio.h"
nkeynes@66
    20
nkeynes@106
    21
gboolean audio_null_set_format( uint32_t rate, uint32_t format )
nkeynes@66
    22
{
nkeynes@66
    23
    return TRUE;
nkeynes@66
    24
}
nkeynes@66
    25
nkeynes@106
    26
gboolean audio_null_process_buffer( audio_buffer_t buffer )
nkeynes@66
    27
{
nkeynes@66
    28
    return TRUE;
nkeynes@66
    29
}
nkeynes@66
    30
nkeynes@106
    31
struct audio_driver audio_null_driver = { "null", audio_null_set_format, audio_null_process_buffer };
.