IDataSource.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 IDATASOURCE_H
00006 #define IDATASOURCE_H
00007 
00008 #include "IRefCounted.h"
00009 
00010 namespace cAudio
00011 {
00013         class IDataSource : public IRefCounted
00014         {
00015                 public:
00016                         IDataSource() {  }
00017                         virtual ~IDataSource() {  }
00018 
00020 
00022                         virtual bool isValid() = 0;
00023 
00025                         virtual int getCurrentPos() = 0;
00026 
00028                         virtual int getSize() = 0;
00029 
00031 
00035                         virtual int read(void* output, int size) = 0;
00036 
00038 
00042                         virtual bool seek(int amount, bool relative) = 0;
00043         };
00044 };
00045 
00046 #endif 
 All Classes Namespaces Functions Variables Enumerations

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