sqwarmed/sdk_src/public/tier2/soundutils.h

32 lines
930 B
C
Raw Normal View History

2024-08-29 19:18:30 -04:00
//===== Copyright <20> 2005-2005, 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