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 697:479b8c213f61
prev643:653b0a70f173
next700:4650d0c7f6f9
author nkeynes
date Sun Jun 22 04:01:27 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Commit work-in-progress CoreAudio driver
(along with various changes to the audio subsystem)
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_process_buffer( audio_buffer_t buffer )
nkeynes@66
    27
{
nkeynes@66
    28
    return TRUE;
nkeynes@66
    29
}
nkeynes@66
    30
nkeynes@697
    31
gboolean audio_null_shutdown()
bhaal22@643
    32
{
bhaal22@643
    33
  return TRUE;
bhaal22@643
    34
}
bhaal22@643
    35
nkeynes@697
    36
struct audio_driver audio_null_driver = { "null",
nkeynes@697
    37
        DEFAULT_SAMPLE_RATE,
nkeynes@697
    38
        DEFAULT_SAMPLE_FORMAT,
nkeynes@697
    39
        audio_null_init,
nkeynes@697
    40
        NULL,
nkeynes@697
    41
        audio_null_process_buffer,
nkeynes@697
    42
        NULL,
nkeynes@697
    43
        audio_null_shutdown};
.