src/audio/nacl/SDL_naclaudio.h
author Ryan C. Gordon
Tue, 24 Jan 2017 16:18:25 -0500
changeset 10850 c9dc0068b0e7
parent 10737 3406a0f8b041
child 11382 2c50e79b19e0
permissions -rw-r--r--
configure: report libsamplerate support status.
gabomdq@8833
     1
/*
gabomdq@8833
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
gabomdq@8833
     4
gabomdq@8833
     5
  This software is provided 'as-is', without any express or implied
gabomdq@8833
     6
  warranty.  In no event will the authors be held liable for any damages
gabomdq@8833
     7
  arising from the use of this software.
gabomdq@8833
     8
gabomdq@8833
     9
  Permission is granted to anyone to use this software for any purpose,
gabomdq@8833
    10
  including commercial applications, and to alter it and redistribute it
gabomdq@8833
    11
  freely, subject to the following restrictions:
gabomdq@8833
    12
gabomdq@8833
    13
  1. The origin of this software must not be misrepresented; you must not
gabomdq@8833
    14
     claim that you wrote the original software. If you use this software
gabomdq@8833
    15
     in a product, an acknowledgment in the product documentation would be
gabomdq@8833
    16
     appreciated but is not required.
gabomdq@8833
    17
  2. Altered source versions must be plainly marked as such, and must not be
gabomdq@8833
    18
     misrepresented as being the original software.
gabomdq@8833
    19
  3. This notice may not be removed or altered from any source distribution.
gabomdq@8833
    20
*/
gabomdq@8833
    21
gabomdq@8833
    22
#include "../../SDL_internal.h"
gabomdq@8833
    23
gabomdq@8833
    24
#ifndef _SDL_naclaudio_h
gabomdq@8833
    25
#define _SDL_naclaudio_h
gabomdq@8833
    26
gabomdq@8833
    27
#include "SDL_audio.h"
gabomdq@8833
    28
#include "../SDL_sysaudio.h"
gabomdq@8833
    29
#include "SDL_mutex.h"
gabomdq@8833
    30
gabomdq@8833
    31
#include "ppapi/c/ppb_audio.h"
gabomdq@8833
    32
gabomdq@8833
    33
#define _THIS  SDL_AudioDevice *_this
gabomdq@8833
    34
#define private _this->hidden
gabomdq@8833
    35
gabomdq@8833
    36
typedef struct SDL_PrivateAudioData {
gabomdq@8833
    37
  SDL_mutex* mutex;
gabomdq@8833
    38
  PP_Resource audio;
gabomdq@8833
    39
} SDL_PrivateAudioData;
gabomdq@8833
    40
gabomdq@8833
    41
#endif /* _SDL_naclaudio_h */