2007-01-15 12:09:25 -08:00
|
|
|
/*
|
|
|
|
This file is part of Warzone 2100.
|
|
|
|
Copyright (C) 1999-2004 Eidos Interactive
|
|
|
|
Copyright (C) 2005-2007 Warzone Resurrection Project
|
|
|
|
|
|
|
|
Warzone 2100 is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Warzone 2100 is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Warzone 2100; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2007-06-28 10:47:08 -07:00
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _AUDIO_H_
|
|
|
|
#define _AUDIO_H_
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "track.h"
|
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2006-04-01 09:50:19 -08:00
|
|
|
extern BOOL audio_Init( AUDIO_CALLBACK pStopTrackCallback );
|
2007-04-12 10:42:15 -07:00
|
|
|
extern void audio_Update(void);
|
2006-09-13 02:09:05 -07:00
|
|
|
extern BOOL audio_Shutdown(void);
|
2007-06-28 10:47:08 -07:00
|
|
|
extern BOOL audio_Disabled( void );
|
|
|
|
|
2006-08-15 11:20:36 -07:00
|
|
|
extern BOOL audio_LoadTrackFromFile( char szFileName[] );
|
2007-07-13 16:39:40 -07:00
|
|
|
extern unsigned int audio_SetTrackVals(const char* fileName, BOOL loop, unsigned int volume, unsigned int audibleRadius);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
extern BOOL audio_PlayStaticTrack( SDWORD iX, SDWORD iY, int iTrack );
|
|
|
|
extern BOOL audio_PlayObjStaticTrack( void * psObj, int iTrack );
|
|
|
|
extern BOOL audio_PlayObjStaticTrackCallback( void * psObj, int iTrack,
|
|
|
|
AUDIO_CALLBACK pUserCallback );
|
|
|
|
extern BOOL audio_PlayObjDynamicTrack( void * psObj, int iTrack,
|
|
|
|
AUDIO_CALLBACK pUserCallback );
|
|
|
|
extern BOOL audio_PlayClusterDynamicTrack( void * psClusterObj,
|
|
|
|
int iTrack, AUDIO_CALLBACK pUserCallback );
|
|
|
|
extern void audio_StopObjTrack( void * psObj, int iTrack );
|
|
|
|
extern void audio_PlayTrack( int iTrack );
|
|
|
|
extern void audio_PlayCallbackTrack( int iTrack,
|
|
|
|
AUDIO_CALLBACK pUserCallback );
|
2006-09-24 12:11:34 -07:00
|
|
|
extern BOOL audio_PlayStream( const char szFileName[], SDWORD iVol,
|
2007-06-28 10:47:08 -07:00
|
|
|
AUDIO_CALLBACK pUserCallback );
|
|
|
|
extern void audio_QueueTrack( SDWORD iTrack );
|
|
|
|
extern void audio_QueueTrackMinDelay( SDWORD iTrack, UDWORD iMinDelay );
|
|
|
|
extern void audio_QueueTrackMinDelayPos( SDWORD iTrack, UDWORD iMinDelay,
|
|
|
|
SDWORD iX, SDWORD iY, SDWORD iZ);
|
|
|
|
extern void audio_QueueTrackGroup( SDWORD iTrack, SDWORD iGroup );
|
|
|
|
extern void audio_QueueTrackPos( SDWORD iTrack, SDWORD iX, SDWORD iY,
|
|
|
|
SDWORD iZ );
|
|
|
|
extern void audio_QueueTrackGroupPos( SDWORD iTrack, SDWORD iGroup,
|
|
|
|
SDWORD iX, SDWORD iY, SDWORD iZ );
|
|
|
|
extern BOOL audio_GetPreviousQueueTrackPos( SDWORD *iX, SDWORD *iY,
|
|
|
|
SDWORD *iZ );
|
|
|
|
extern void audio_PauseAll( void );
|
|
|
|
extern void audio_ResumeAll( void );
|
|
|
|
extern void audio_StopAll( void );
|
|
|
|
|
2007-04-16 07:53:09 -07:00
|
|
|
extern SDWORD audio_GetTrackID( const char *fileName );
|
2007-12-09 14:36:06 -08:00
|
|
|
extern void audio_RemoveObj(const void* psObj);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
#endif // _AUDIO_H_
|
|
|
|
|
|
|
|
/***************************************************************************/
|