aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/tier2/soundutils.h
blob: eca1337ec65c527a2fe562cd0f835ffa791cef75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//========= 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