src/audio/psp/SDL_pspaudio.h
author Sam Lantinga
Mon, 09 Jan 2017 11:58:01 -0800
changeset 10802 6afc9b833867
parent 10737 3406a0f8b041
child 11382 2c50e79b19e0
permissions -rw-r--r--
We only need the first few keymaps corresponding to the following constants:
K_NORMTAB, K_SHIFTTAB, K_ALTTAB, K_ALTSHIFTTAB

In the normal case we'll load all the keymaps from the kernel, but this reduces the size of the SDL library for the fallback case when we can't get to the tty.
kimonline@7009
     1
/*
kimonline@7009
     2
  Simple DirectMedia Layer
slouken@10737
     3
  Copyright (C) 1997-2017 Sam Lantinga <slouken@libsdl.org>
kimonline@7009
     4
kimonline@7009
     5
  This software is provided 'as-is', without any express or implied
kimonline@7009
     6
  warranty.  In no event will the authors be held liable for any damages
kimonline@7009
     7
  arising from the use of this software.
kimonline@7009
     8
kimonline@7009
     9
  Permission is granted to anyone to use this software for any purpose,
kimonline@7009
    10
  including commercial applications, and to alter it and redistribute it
kimonline@7009
    11
  freely, subject to the following restrictions:
kimonline@7009
    12
kimonline@7009
    13
  1. The origin of this software must not be misrepresented; you must not
kimonline@7009
    14
     claim that you wrote the original software. If you use this software
kimonline@7009
    15
     in a product, an acknowledgment in the product documentation would be
kimonline@7009
    16
     appreciated but is not required.
kimonline@7009
    17
  2. Altered source versions must be plainly marked as such, and must not be
kimonline@7009
    18
     misrepresented as being the original software.
kimonline@7009
    19
  3. This notice may not be removed or altered from any source distribution.
kimonline@7009
    20
*/
kimonline@7009
    21
kimonline@7009
    22
#ifndef _SDL_pspaudio_h
kimonline@7009
    23
#define _SDL_pspaudio_h
kimonline@7009
    24
kimonline@7009
    25
#include "../SDL_sysaudio.h"
kimonline@7009
    26
philipp@9325
    27
/* Hidden "this" pointer for the audio functions */
slouken@7191
    28
#define _THIS   SDL_AudioDevice *this
kimonline@7009
    29
kimonline@7009
    30
#define NUM_BUFFERS 2
kimonline@7009
    31
kimonline@7009
    32
struct SDL_PrivateAudioData {
slouken@7191
    33
    /* The hardware output channel. */
slouken@7191
    34
    int     channel;
slouken@7191
    35
    /* The raw allocated mixing buffer. */
slouken@7191
    36
    Uint8   *rawbuf;
slouken@7191
    37
    /* Individual mixing buffers. */
slouken@7191
    38
    Uint8   *mixbufs[NUM_BUFFERS];
slouken@7191
    39
    /* Index of the next available mixing buffer. */
slouken@7191
    40
    int     next_buffer;
kimonline@7009
    41
};
kimonline@7009
    42
kimonline@7009
    43
#endif /* _SDL_pspaudio_h */
kimonline@7009
    44
/* vim: ts=4 sw=4
kimonline@7009
    45
 */