src/audio/qsa/SDL_qsa_audio.h
author Sam Lantinga
Sun, 24 Jan 2010 21:10:53 +0000
changeset 3697 f7b03b6838cb
parent 3139 7f684f249ec9
child 5262 b530ef003506
permissions -rw-r--r--
Fixed bug #926

Updated copyright to LGPL version 2.1 and year 2010
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2010 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 #include "SDL_config.h"
    24 
    25 #ifndef __SDL_QSA_AUDIO_H__
    26 #define __SDL_QSA_AUDIO_H__
    27 
    28 #include <sys/asoundlib.h>
    29 
    30 #include "../SDL_sysaudio.h"
    31 
    32 /* Hidden "this" pointer for the audio functions */
    33 #define _THIS SDL_AudioDevice* this
    34 
    35 struct SDL_PrivateAudioData
    36 {
    37     /* SDL capture state */
    38     int iscapture;
    39 
    40     /* The audio device handle */
    41     int cardno;
    42     int deviceno;
    43     snd_pcm_t *audio_handle;
    44 
    45     /* The audio file descriptor */
    46     int audio_fd;
    47 
    48     /* Select timeout status */
    49     uint32_t timeout_on_wait;
    50 
    51     /* Raw mixing buffer */
    52     Uint8 *pcm_buf;
    53     Uint32 pcm_len;
    54 };
    55 
    56 #endif /* __SDL_QSA_AUDIO_H__ */
    57 
    58 /* vi: set ts=4 sw=4 expandtab: */