src/audio/nas/SDL_nasaudio.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 29 Oct 2006 14:45:46 +0000
changeset 2063 dea73e1d07b0
parent 2049 5f6550e5184f
child 2859 99210400e8b9
permissions -rw-r--r--
Merged Ryan's fix, in case we need it later.
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@0
     4
slouken@0
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@0
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@0
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
slouken@0
    22
    This driver was written by:
slouken@0
    23
    Erik Inge Bolsų
slouken@0
    24
    knan@mo.himolde.no
slouken@0
    25
*/
slouken@1402
    26
#include "SDL_config.h"
slouken@0
    27
slouken@0
    28
#ifndef _SDL_nasaudio_h
slouken@0
    29
#define _SDL_nasaudio_h
slouken@0
    30
slouken@605
    31
#ifdef __sgi
slouken@605
    32
#include <nas/audiolib.h>
slouken@605
    33
#else
slouken@0
    34
#include <audio/audiolib.h>
slouken@605
    35
#endif
slouken@0
    36
#include <sys/time.h>
slouken@1361
    37
slouken@1361
    38
#include "../SDL_sysaudio.h"
slouken@0
    39
icculus@2049
    40
/* Hidden "this" pointer for the audio functions */
slouken@0
    41
#define _THIS	SDL_AudioDevice *this
slouken@0
    42
slouken@1895
    43
struct SDL_PrivateAudioData
slouken@1895
    44
{
slouken@1895
    45
    AuServer *aud;
slouken@1895
    46
    AuFlowID flow;
slouken@1895
    47
    AuDeviceID dev;
slouken@1895
    48
slouken@1895
    49
    /* Raw mixing buffer */
slouken@1895
    50
    Uint8 *mixbuf;
slouken@1895
    51
    int mixlen;
slouken@0
    52
slouken@1895
    53
    int written;
slouken@1895
    54
    int really;
slouken@1895
    55
    int bps;
slouken@1895
    56
    struct timeval last_tv;
slouken@1895
    57
    int buf_free;
slouken@0
    58
};
slouken@0
    59
#endif /* _SDL_nasaudio_h */
icculus@2049
    60
slouken@1895
    61
/* vi: set ts=4 sw=4 expandtab: */