first commit
This commit is contained in:
31
include/framework/audio/stream_factory.h
Normal file
31
include/framework/audio/stream_factory.h
Normal file
@ -0,0 +1,31 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#ifndef __ISTREAMFACTORY__
|
||||
#define __ISTREAMFACTORY__
|
||||
|
||||
|
||||
namespace GS {
|
||||
struct IAudioStream;
|
||||
|
||||
/*
|
||||
@short Stream factory interface.
|
||||
@author Emmanuel Julien (ejulien@owloh.com)
|
||||
*/
|
||||
struct IAudioStreamFactory
|
||||
{
|
||||
/// Get factory name.
|
||||
virtual const char *GetName() = 0;
|
||||
/// Open a stream.
|
||||
virtual IAudioStream *Open(const char *path) = 0;
|
||||
|
||||
virtual ~IAudioStreamFactory() {}
|
||||
};
|
||||
|
||||
} // GS
|
||||
|
||||
|
||||
#endif // __ISTREAMFACTORY__
|
||||
Reference in New Issue
Block a user