mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Remove some #if 0'd functions from audiolib
git-svn-id: https://svn.eduke32.com/eduke32@4621 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
deb196f8a6
commit
5d1475b26c
1 changed files with 0 additions and 242 deletions
|
@ -506,248 +506,6 @@ int32_t FX_SetFrequency
|
|||
return status;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayVOC
|
||||
|
||||
Begin playback of sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayVOC
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
int32_t pitchoffset,
|
||||
int32_t vol,
|
||||
int32_t left,
|
||||
int32_t right,
|
||||
int32_t priority,
|
||||
uint32_t callbackval
|
||||
)
|
||||
|
||||
{
|
||||
return FX_PlayLoopedVOC(ptr, ptrlength, -1, -1, pitchoffset, vol, left, right, priority, callbackval);
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayLoopedVOC
|
||||
|
||||
Begin playback of sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayLoopedVOC
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
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 handle;
|
||||
|
||||
handle = MV_PlayVOC(ptr, ptrlength, loopstart, loopend, pitchoffset,
|
||||
vol, left, right, priority, callbackval);
|
||||
if (handle < MV_Ok)
|
||||
{
|
||||
FX_SetErrorCode(FX_MultiVocError);
|
||||
handle = FX_Warning;
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayWAV
|
||||
|
||||
Begin playback of sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayWAV
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
int32_t pitchoffset,
|
||||
int32_t vol,
|
||||
int32_t left,
|
||||
int32_t right,
|
||||
int32_t priority,
|
||||
uint32_t callbackval
|
||||
)
|
||||
|
||||
{
|
||||
return FX_PlayLoopedWAV(ptr, ptrlength, -1, -1, pitchoffset, vol, left, right, priority, callbackval);
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayWAV
|
||||
|
||||
Begin playback of sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayLoopedWAV
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
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 handle;
|
||||
|
||||
handle = MV_PlayWAV(ptr, ptrlength, loopstart, loopend,
|
||||
pitchoffset, vol, left, right, priority, callbackval);
|
||||
if (handle < MV_Ok)
|
||||
{
|
||||
FX_SetErrorCode(FX_MultiVocError);
|
||||
handle = FX_Warning;
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayVOC3D
|
||||
|
||||
Begin playback of sound data at specified angle and distance
|
||||
from listener.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayVOC3D
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
int32_t pitchoffset,
|
||||
int32_t angle,
|
||||
int32_t distance,
|
||||
int32_t priority,
|
||||
uint32_t callbackval
|
||||
)
|
||||
|
||||
{
|
||||
int32_t handle;
|
||||
|
||||
handle = MV_PlayVOC3D(ptr, ptrlength, FX_ONESHOT, pitchoffset, angle, distance,
|
||||
priority, callbackval);
|
||||
if (handle < MV_Ok)
|
||||
{
|
||||
FX_SetErrorCode(FX_MultiVocError);
|
||||
handle = FX_Warning;
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayWAV3D
|
||||
|
||||
Begin playback of sound data at specified angle and distance
|
||||
from listener.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_PlayWAV3D
|
||||
(
|
||||
char *ptr,
|
||||
uint32_t ptrlength,
|
||||
int32_t pitchoffset,
|
||||
int32_t angle,
|
||||
int32_t distance,
|
||||
int32_t priority,
|
||||
uint32_t callbackval
|
||||
)
|
||||
|
||||
{
|
||||
int32_t handle;
|
||||
|
||||
handle = MV_PlayWAV3D(ptr, ptrlength, FX_ONESHOT, pitchoffset, angle, distance,
|
||||
priority, callbackval);
|
||||
if (handle < MV_Ok)
|
||||
{
|
||||
FX_SetErrorCode(FX_MultiVocError);
|
||||
handle = FX_Warning;
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayRaw
|
||||
|
||||
Begin playback of raw sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_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
|
||||
)
|
||||
|
||||
{
|
||||
return FX_PlayLoopedRaw(ptr, length, NULL, NULL, rate, pitchoffset, vol, left, right, priority, callbackval);
|
||||
}
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_PlayLoopedRaw
|
||||
|
||||
Begin playback of raw sound data with the given volume and priority.
|
||||
---------------------------------------------------------------------*/
|
||||
|
||||
int32_t FX_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 handle;
|
||||
|
||||
handle = MV_PlayRaw(ptr, length, loopstart, loopend,
|
||||
rate, pitchoffset, vol, left, right, priority, callbackval);
|
||||
if (handle < MV_Ok)
|
||||
{
|
||||
FX_SetErrorCode(FX_MultiVocError);
|
||||
handle = FX_Warning;
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------
|
||||
Function: FX_Pan3D
|
||||
|
|
Loading…
Reference in a new issue