src/audio/sndio/SDL_sndioaudio.h
author Ryan C. Gordon
Tue, 24 Jan 2017 16:18:25 -0500
changeset 10850 c9dc0068b0e7
parent 10737 3406a0f8b041
child 11148 9bdb766ec7e5
permissions -rw-r--r--
configure: report libsamplerate support status.
icculus@7367
     1
/*
icculus@7367
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
icculus@7367
     4
icculus@7367
     5
  This software is provided 'as-is', without any express or implied
icculus@7367
     6
  warranty.  In no event will the authors be held liable for any damages
icculus@7367
     7
  arising from the use of this software.
icculus@7367
     8
icculus@7367
     9
  Permission is granted to anyone to use this software for any purpose,
icculus@7367
    10
  including commercial applications, and to alter it and redistribute it
icculus@7367
    11
  freely, subject to the following restrictions:
icculus@7367
    12
icculus@7367
    13
  1. The origin of this software must not be misrepresented; you must not
icculus@7367
    14
     claim that you wrote the original software. If you use this software
icculus@7367
    15
     in a product, an acknowledgment in the product documentation would be
icculus@7367
    16
     appreciated but is not required.
icculus@7367
    17
  2. Altered source versions must be plainly marked as such, and must not be
icculus@7367
    18
     misrepresented as being the original software.
icculus@7367
    19
  3. This notice may not be removed or altered from any source distribution.
icculus@7367
    20
*/
icculus@8093
    21
#include "../../SDL_internal.h"
icculus@7367
    22
icculus@7367
    23
#ifndef _SDL_sndioaudio_h
icculus@7367
    24
#define _SDL_sndioaudio_h
icculus@7367
    25
icculus@7367
    26
#include <sndio.h>
icculus@7367
    27
icculus@7367
    28
#include "../SDL_sysaudio.h"
icculus@7367
    29
icculus@7367
    30
/* Hidden "this" pointer for the audio functions */
icculus@7367
    31
#define _THIS   SDL_AudioDevice *this
icculus@7367
    32
icculus@7367
    33
struct SDL_PrivateAudioData
icculus@7367
    34
{
icculus@7367
    35
    /* The audio device handle */
icculus@7367
    36
    struct sio_hdl *dev;
icculus@7367
    37
icculus@7367
    38
    /* Raw mixing buffer */
icculus@7367
    39
    Uint8 *mixbuf;
icculus@7367
    40
    int mixlen;
icculus@7367
    41
};
icculus@7367
    42
icculus@7367
    43
#endif /* _SDL_sndioaudio_h */
icculus@7367
    44
icculus@7367
    45
/* vi: set ts=4 sw=4 expandtab: */