mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 11:00:33 +00:00
engine: client: sound: remove unused functions
This commit is contained in:
parent
192d510924
commit
27d9fc0afe
@ -1292,36 +1292,6 @@ void S_StreamAviSamples( void *Avi, int entnum, float fvol, float attn, float sy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
===================
|
|
||||||
S_GetRawSamplesLength
|
|
||||||
===================
|
|
||||||
*/
|
|
||||||
uint S_GetRawSamplesLength( int entnum )
|
|
||||||
{
|
|
||||||
rawchan_t *ch;
|
|
||||||
|
|
||||||
if( !( ch = S_FindRawChannel( entnum, false )))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return ch->s_rawend <= paintedtime ? 0 : (float)(ch->s_rawend - paintedtime) * DMA_MSEC_PER_SAMPLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
===================
|
|
||||||
S_ClearRawChannel
|
|
||||||
===================
|
|
||||||
*/
|
|
||||||
void S_ClearRawChannel( int entnum )
|
|
||||||
{
|
|
||||||
rawchan_t *ch;
|
|
||||||
|
|
||||||
if( !( ch = S_FindRawChannel( entnum, false )))
|
|
||||||
return;
|
|
||||||
|
|
||||||
ch->s_rawend = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===================
|
===================
|
||||||
S_FreeIdleRawChannels
|
S_FreeIdleRawChannels
|
||||||
|
@ -117,13 +117,6 @@ _inline void MIX_ActivatePaintbuffer( int ipaintbuffer )
|
|||||||
paintbuffers[ipaintbuffer].factive = true;
|
paintbuffers[ipaintbuffer].factive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't mix into this paintbuffer
|
|
||||||
_inline void MIX_DeactivatePaintbuffer( int ipaintbuffer )
|
|
||||||
{
|
|
||||||
Assert( ipaintbuffer < CPAINTBUFFERS );
|
|
||||||
paintbuffers[ipaintbuffer].factive = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
_inline void MIX_SetCurrentPaintbuffer( int ipaintbuffer )
|
_inline void MIX_SetCurrentPaintbuffer( int ipaintbuffer )
|
||||||
{
|
{
|
||||||
Assert( ipaintbuffer < CPAINTBUFFERS );
|
Assert( ipaintbuffer < CPAINTBUFFERS );
|
||||||
@ -169,12 +162,6 @@ _inline void MIX_ResetPaintbufferFilterCounters( void )
|
|||||||
paintbuffers[i].ifilter = FILTERTYPE_NONE;
|
paintbuffers[i].ifilter = FILTERTYPE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_inline void MIX_ResetPaintbufferFilterCounter( int ipaintbuffer )
|
|
||||||
{
|
|
||||||
Assert( ipaintbuffer < CPAINTBUFFERS );
|
|
||||||
paintbuffers[ipaintbuffer].ifilter = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// return pointer to front paintbuffer pbuf, given index
|
// return pointer to front paintbuffer pbuf, given index
|
||||||
_inline portable_samplepair_t *MIX_GetPFrontFromIPaint( int ipaintbuffer )
|
_inline portable_samplepair_t *MIX_GetPFrontFromIPaint( int ipaintbuffer )
|
||||||
{
|
{
|
||||||
|
@ -276,8 +276,6 @@ void S_RawEntSamples( int entnum, uint samples, uint rate, word width, word chan
|
|||||||
void S_RawSamples( uint samples, uint rate, word width, word channels, const byte *data, int entnum );
|
void S_RawSamples( uint samples, uint rate, word width, word channels, const byte *data, int entnum );
|
||||||
void S_StopSound( int entnum, int channel, const char *soundname );
|
void S_StopSound( int entnum, int channel, const char *soundname );
|
||||||
void S_UpdateFrame( struct ref_viewpass_s *rvp );
|
void S_UpdateFrame( struct ref_viewpass_s *rvp );
|
||||||
uint S_GetRawSamplesLength( int entnum );
|
|
||||||
void S_ClearRawChannel( int entnum );
|
|
||||||
void S_StopAllSounds( qboolean ambient );
|
void S_StopAllSounds( qboolean ambient );
|
||||||
void S_FreeSounds( void );
|
void S_FreeSounds( void );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user