first commit
This commit is contained in:
34
include/framework/audio/sample_stream_factory.h
Normal file
34
include/framework/audio/sample_stream_factory.h
Normal file
@ -0,0 +1,34 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __SAMPLESTREAMFACTORY__
|
||||
#define __SAMPLESTREAMFACTORY__
|
||||
|
||||
|
||||
#include "audio/sample_interface.h"
|
||||
#include "audio/sample_factory.h"
|
||||
|
||||
|
||||
namespace GS {
|
||||
struct ISample;
|
||||
|
||||
/*!
|
||||
@short Sample stream factory
|
||||
This codec can decode any supported audio stream to a WAV sample.
|
||||
@author Emmanuel Julien (ejulien@owloh.com)
|
||||
*/
|
||||
struct SampleStreamFactory : public ISampleFactory
|
||||
{
|
||||
/// Get the codec name.
|
||||
virtual const char *GetName() { return "Stream"; }
|
||||
/// Load a sample.
|
||||
virtual ISample *Load(const char *path);
|
||||
};
|
||||
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __SAMPLESTREAMFACTORY__
|
||||
Reference in New Issue
Block a user