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 nkeynes
date Sun Jun 01 00:47:45 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change First cut of the Cocoa GUI implementation
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
bhaal22@643
    21
gboolean audio_null_init()
bhaal22@643
    22
{
bhaal22@643
    23
  return TRUE;
bhaal22@643
    24
}
bhaal22@643
    25
nkeynes@106
    26
gboolean audio_null_set_format( uint32_t rate, uint32_t format )
nkeynes@66
    27
{
nkeynes@66
    28
    return TRUE;
nkeynes@66
    29
}
nkeynes@66
    30
nkeynes@106
    31
gboolean audio_null_process_buffer( audio_buffer_t buffer )
nkeynes@66
    32
{
nkeynes@66
    33
    return TRUE;
nkeynes@66
    34
}
nkeynes@66
    35
bhaal22@643
    36
gboolean audio_null_close()
bhaal22@643
    37
{
bhaal22@643
    38
  return TRUE;
bhaal22@643
    39
}
bhaal22@643
    40
bhaal22@643
    41
struct audio_driver audio_null_driver = { "null", 
bhaal22@643
    42
					  audio_null_init,
bhaal22@643
    43
					  audio_null_set_format, 
bhaal22@643
    44
					  audio_null_process_buffer,
bhaal22@643
    45
                                          audio_null_close};
.