src/audio/sndio/SDL_sndioaudio.h
author Ryan C. Gordon <icculus@icculus.org>
Mon, 21 May 2018 12:00:21 -0400
changeset 11994 8e094f91ddab
parent 11811 5d94cb6b24d3
child 12503 806492103856
permissions -rw-r--r--
thread: fixed compiler warnings on non-Linux systems that use pthread.

(static function rtkit_setpriority was unused, moved it in with rest of
__LINUX__ section.)
icculus@7367
     1
/*
icculus@7367
     2
  Simple DirectMedia Layer
slouken@11811
     3
  Copyright (C) 1997-2018 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
slouken@11382
    23
#ifndef SDL_sndioaudio_h_
slouken@11382
    24
#define SDL_sndioaudio_h_
icculus@7367
    25
slouken@11148
    26
#include <poll.h>
icculus@7367
    27
#include <sndio.h>
icculus@7367
    28
icculus@7367
    29
#include "../SDL_sysaudio.h"
icculus@7367
    30
icculus@7367
    31
/* Hidden "this" pointer for the audio functions */
icculus@7367
    32
#define _THIS   SDL_AudioDevice *this
icculus@7367
    33
icculus@7367
    34
struct SDL_PrivateAudioData
icculus@7367
    35
{
icculus@7367
    36
    /* The audio device handle */
icculus@7367
    37
    struct sio_hdl *dev;
icculus@7367
    38
icculus@7367
    39
    /* Raw mixing buffer */
icculus@7367
    40
    Uint8 *mixbuf;
icculus@7367
    41
    int mixlen;
slouken@11148
    42
slouken@11148
    43
    /* Polling structures for non-blocking sndio devices */
slouken@11148
    44
    struct pollfd *pfd;
icculus@7367
    45
};
icculus@7367
    46
slouken@11382
    47
#endif /* SDL_sndioaudio_h_ */
icculus@7367
    48
icculus@7367
    49
/* vi: set ts=4 sw=4 expandtab: */