mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-16 07:31:04 +00:00
4ba6da5007
EVENT_SOUND: triggered upon playback of any sound, this allows the "hard coded" sounds to be altered in a context-aware fashion instead of having to resort to clunky hacks like replacing them with a blank sound effect. RETURN var iable is set to the sound effect # of the sound to be played, or -1 to cancel playback. EVENT_CHECKTOUCHDAMAGE: triggered in P_CheckTouchDamage() whenever the player collides with anything. Value of RET URN is set to the result provided by clipmove() and so can be decoded in the same way. Value of RETURN when the event is over can also be manipulated to control some of the hard coded damage effects. EVENT_CHECKFLOORDAMAGE: triggered in P_CheckFloorDamage(), RETURN is simply the picnum of the floor of the sector t he player is in. Can be used to cancel hard coded floor damage effects or to make other tiles exhibit the same eff ects Other misc fixes and cleanups, including a possible workaround for Duke Plus SECTOREFFECTOR light issues wherein all SE49 and SE50 that have a statnum of STAT_EFFECTOR are simply changed to STAT_LIGHT during the STAT_EFFECTOR loop now. git-svn-id: https://svn.eduke32.com/eduke32@2652 1a8010ca-5511-0410-912e-c29ae57300e0
124 lines
5.3 KiB
C
124 lines
5.3 KiB
C
/*
|
|
Copyright (C) 1994-1995 Apogee Software, Ltd.
|
|
|
|
This program 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.
|
|
|
|
This program 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 this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
/**********************************************************************
|
|
file: MULTIVOC.H
|
|
|
|
author: James R. Dose
|
|
date: December 20, 1993
|
|
|
|
Public header for MULTIVOC.C
|
|
|
|
(c) Copyright 1993 James R. Dose. All Rights Reserved.
|
|
**********************************************************************/
|
|
|
|
#ifndef __MULTIVOC_H
|
|
#define __MULTIVOC_H
|
|
|
|
#ifndef UNREFERENCED_PARAMETER
|
|
#define UNREFERENCED_PARAMETER(x) x=x
|
|
#endif
|
|
|
|
#define MV_MINVOICEHANDLE 1
|
|
|
|
extern int32_t MV_ErrorCode;
|
|
|
|
enum MV_Errors
|
|
{
|
|
MV_Warning = -2,
|
|
MV_Error = -1,
|
|
MV_Ok = 0,
|
|
MV_UnsupportedCard,
|
|
MV_NotInstalled,
|
|
MV_DriverError,
|
|
MV_NoVoices,
|
|
MV_NoMem,
|
|
MV_VoiceNotFound,
|
|
MV_InvalidVOCFile,
|
|
MV_InvalidWAVFile,
|
|
MV_InvalidVorbisFile,
|
|
MV_InvalidMixMode,
|
|
MV_NullRecordFunction
|
|
};
|
|
|
|
extern void (*MV_Printf)(const char *fmt, ...);
|
|
const char *MV_ErrorString( int32_t ErrorNumber );
|
|
int32_t MV_VoicePlaying( int32_t handle );
|
|
int32_t MV_KillAllVoices( void );
|
|
int32_t MV_Kill( int32_t handle );
|
|
int32_t MV_VoicesPlaying( void );
|
|
int32_t MV_VoiceAvailable( int32_t priority );
|
|
int32_t MV_SetPitch( int32_t handle, int32_t pitchoffset );
|
|
int32_t MV_SetFrequency( int32_t handle, int32_t frequency );
|
|
int32_t MV_PauseVoice( int32_t handle, int32_t pause );
|
|
int32_t MV_EndLooping( int32_t handle );
|
|
int32_t MV_SetPan( int32_t handle, int32_t vol, int32_t left, int32_t right );
|
|
int32_t MV_Pan3D( int32_t handle, int32_t angle, int32_t distance );
|
|
void MV_SetReverb( int32_t reverb );
|
|
void MV_SetFastReverb( int32_t reverb );
|
|
int32_t MV_GetMaxReverbDelay( void );
|
|
int32_t MV_GetReverbDelay( void );
|
|
void MV_SetReverbDelay( int32_t delay );
|
|
//int32_t MV_SetMixMode( int32_t numchannels, int32_t samplebits );
|
|
//int32_t MV_StartPlayback( void );
|
|
//void MV_StopPlayback( void );
|
|
int32_t MV_StartDemandFeedPlayback( void ( *function )( char **ptr, uint32_t *length ),
|
|
int32_t rate, int32_t pitchoffset, int32_t vol, int32_t left, int32_t right,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayRaw( char *ptr, uint32_t length,
|
|
unsigned rate, int32_t pitchoffset, int32_t vol, int32_t left,
|
|
int32_t right, int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayLoopedRaw( char *ptr, uint32_t length,
|
|
char *loopstart, char *loopend, unsigned rate, int32_t pitchoffset,
|
|
int32_t vol, int32_t left, int32_t right, int32_t priority,
|
|
uint32_t callbackval );
|
|
int32_t MV_PlayWAV( char *ptr, uint32_t length, int32_t pitchoffset, int32_t vol, int32_t left,
|
|
int32_t right, int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayWAV3D( char *ptr, uint32_t length, int32_t pitchoffset, int32_t angle, int32_t distance,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayLoopedWAV( char *ptr, uint32_t length, int32_t loopstart, int32_t loopend,
|
|
int32_t pitchoffset, int32_t vol, int32_t left, int32_t right, int32_t priority,
|
|
uint32_t callbackval );
|
|
int32_t MV_PlayVOC3D( char *ptr, uint32_t length, int32_t pitchoffset, int32_t angle, int32_t distance,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayVOC( char *ptr, uint32_t length, int32_t pitchoffset, int32_t vol, int32_t left, int32_t right,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayLoopedVOC( char *ptr, uint32_t length, int32_t loopstart, int32_t loopend,
|
|
int32_t pitchoffset, int32_t vol, int32_t left, int32_t right, int32_t priority,
|
|
uint32_t callbackval );
|
|
int32_t MV_PlayVorbis3D( char *ptr, uint32_t length, int32_t pitchoffset, int32_t angle, int32_t distance,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayVorbis( char *ptr, uint32_t length, int32_t pitchoffset, int32_t vol, int32_t left, int32_t right,
|
|
int32_t priority, uint32_t callbackval );
|
|
int32_t MV_PlayLoopedVorbis( char *ptr, uint32_t length, int32_t loopstart, int32_t loopend,
|
|
int32_t pitchoffset, int32_t vol, int32_t left, int32_t right, int32_t priority,
|
|
uint32_t callbackval );
|
|
//void MV_CreateVolumeTable( int32_t index, int32_t volume, int32_t MaxVolume );
|
|
void MV_SetVolume( int32_t volume );
|
|
int32_t MV_GetVolume( void );
|
|
void MV_SetCallBack( void ( *function )( uint32_t ) );
|
|
void MV_SetReverseStereo( int32_t setting );
|
|
int32_t MV_GetReverseStereo( void );
|
|
int32_t MV_Init( int32_t soundcard, int32_t MixRate, int32_t Voices, int32_t numchannels,
|
|
int32_t samplebits, void * initdata );
|
|
int32_t MV_Shutdown( void );
|
|
int32_t MV_SetVoiceCallback(int32_t handle, uint32_t callbackval);
|
|
void MV_SetPrintf(void (*function)(const char *fmt, ...));
|
|
|
|
#endif
|