mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
32 lines
927 B
C
32 lines
927 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose: Helper methods + classes for sound
|
||
|
//
|
||
|
//===========================================================================//
|
||
|
|
||
|
#ifndef SOUNDUTILS_H
|
||
|
#define SOUNDUTILS_H
|
||
|
|
||
|
#if defined( _WIN32 )
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "tier2/riff.h"
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// RIFF reader/writers that use the file system
|
||
|
//-----------------------------------------------------------------------------
|
||
|
extern IFileReadBinary *g_pFSIOReadBinary;
|
||
|
extern IFileWriteBinary *g_pFSIOWriteBinary;
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Returns the duration of a wav file
|
||
|
//-----------------------------------------------------------------------------
|
||
|
float GetWavSoundDuration( const char *pWavFile );
|
||
|
|
||
|
|
||
|
#endif // SOUNDUTILS_H
|
||
|
|