/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/drivers/wintel32/audio/fmodsampledata.hpp

*/

#ifndef SGX_FMOD_AUDIO_SAMPLE_DATA_HPP
#define SGX_FMOD_AUDIO_SAMPLE_DATA_HPP	1

class CFMODSampleData : public CSampleData
{
public:
	CFMODSampleData(const sgxString &filename, const CSGXAudioEngine::ResourceContext context, FMOD_SYSTEM *pSystem);

	virtual		tREAL32			getDuration() const;

protected:
	virtual		CDeviceChannel *play(CLogicalChannel *pLogicalChannel=NULL);

private:
	FMOD_SYSTEM *m_pSystem;
	FMOD_SOUND	*m_pHandle;
};

#endif /* SGX_FMOD_AUDIO_SAMPLE_DATA_HPP */
