cMemorySource.h

00001 // Copyright (c) 2008-2010 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones
00002 // This file is part of the "cAudio Engine"
00003 // For conditions of distribution and use, see copyright notice in cAudio.h
00004 
00005 #ifndef CMEMORYSOURCE_H
00006 #define CMEMORYSOURCE_H
00007 
00008 #include "../include/IDataSource.h"
00009 
00010 namespace cAudio
00011 {
00012 
00014 class cMemorySource : public IDataSource
00015 {
00016     public:
00022         cMemorySource(const void* data, int size, bool copy);
00023         ~cMemorySource();
00024 
00025         virtual bool isValid();
00026         virtual int getCurrentPos();
00027         virtual int getSize();
00028         virtual int read(void* output, int size);
00029         virtual bool seek(int amount, bool relative);
00030     protected:
00031         char* Data;
00032         int Size;
00033         bool Valid;
00034         int Pos;
00035     private:
00036 };
00037 
00038 };
00039 
00040 #endif 
 All Classes Namespaces Functions Variables Enumerations

Generated on Sat Feb 20 22:55:07 2010 for cAudio by  doxygen 1.6.2