first commit
This commit is contained in:
29
include/framework/audio/sample_wav_factory.h
Normal file
29
include/framework/audio/sample_wav_factory.h
Normal file
@ -0,0 +1,29 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __SAMPLEWAVCODEC__
|
||||
#define __SAMPLEWAVCODEC__
|
||||
|
||||
|
||||
#include "audio/sample_factory.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
struct ISample;
|
||||
|
||||
/// Sample WAV codec
|
||||
struct SampleWavFactory : public ISampleFactory
|
||||
{
|
||||
/// Get the codec name.
|
||||
virtual const char *GetName() { return "WAV"; }
|
||||
/// Load a sample.
|
||||
virtual ISample *Load(const char *path);
|
||||
};
|
||||
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __SAMPLEWAVCODEC__
|
||||
Reference in New Issue
Block a user