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 CRAWDECODER_H_INCLUDED 00006 #define CRAWDECODER_H_INCLUDED 00007 00008 #include "../include/IAudioDecoder.h" 00009 00010 namespace cAudio 00011 { 00012 class cRawDecoder : public IAudioDecoder 00013 { 00014 public: 00015 00016 cRawDecoder(IDataSource* stream, unsigned int frequency, AudioFormats format); 00017 ~cRawDecoder(); 00018 00019 virtual AudioFormats getFormat(); 00020 virtual int getFrequency(); 00021 virtual bool isSeekingSupported(); 00022 virtual bool isValid(); 00023 virtual int readAudioData(void* output, int amount); 00024 virtual bool setPosition(int position, bool relative); 00025 virtual bool seek(float seconds,bool relative); 00026 virtual float getTotalTime(); 00027 virtual int getTotalSize(); 00028 virtual int getCompressedSize(); 00029 virtual float getCurrentTime(); 00030 virtual int getCurrentPosition(); 00031 virtual int getCurrentCompressedPosition(); 00032 00033 private: 00034 unsigned int Frequency; 00035 AudioFormats Format; 00036 }; 00037 }; 00038 00039 #endif
1.6.2