Files
Webcam/include/framework/audio/sample_factory.h
2026-06-22 11:49:35 +02:00

33 lines
638 B
C++

/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#ifndef __ISAMPLEFACTORY__
#define __ISAMPLEFACTORY__
namespace GS {
struct ISample;
/*
@short Sample I/O codec interface.
@author Emmanuel Julien (ejulien@owloh.com)
*/
struct ISampleFactory
{
/// Get the codec name.
virtual const char *GetName() = 0;
/// Load a sample.
virtual ISample *Load(const char *path) = 0;
virtual ~ISampleFactory() {}
};
} // GS
#endif // __ISAMPLEFACTORY__