/ source / audiolib / src / driver_sdl.h
driver_sdl.h
 1  /*
 2   Copyright (C) 2009 Jonathon Fowler <jf@jonof.id.au>
 3  
 4   This program is free software; you can redistribute it and/or
 5   modify it under the terms of the GNU General Public License
 6   as published by the Free Software Foundation; either version 2
 7   of the License, or (at your option) any later version.
 8  
 9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  
13   See the GNU General Public License for more details.
14  
15   You should have received a copy of the GNU General Public License
16   along with this program; if not, write to the Free Software
17   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  
19   */
20  
21  #ifndef driver_sdl_h__
22  #define driver_sdl_h__
23  
24  extern char SDLAudioDriverName[16];
25  const char *SDLDrv_ErrorString(int ErrorNumber);
26  
27  int  SDLDrv_GetError(void);
28  int  SDLDrv_PCM_Init(int *mixrate, int *numchannels, void *initdata);
29  void SDLDrv_PCM_Shutdown(void);
30  int  SDLDrv_PCM_BeginPlayback(char *BufferStart, int BufferSize, int NumDivisions, void (*CallBackFunc)(void));
31  void SDLDrv_PCM_StopPlayback(void);
32  void SDLDrv_PCM_Lock(void);
33  void SDLDrv_PCM_Unlock(void);
34  
35  void SDLDrv_PCM_PrintDrivers(void);
36  int  SDLDrv_PCM_CheckDriverName(char const *dev);
37  char const *SDLDrv_PCM_GetDriverName(void);
38  
39  #endif // driver_sdl_h__