Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

input.hpp

Go to the documentation of this file.
00001 #ifndef INPUT_HPP
00002 #define INPUT_HPP
00003 
00004 
00005 #include "file.hpp"
00006 
00007 
00008 // types
00009 
00010 class ISampleSource
00011 {
00012 public:
00013   ~ISampleSource() { }
00014 
00015   virtual void GetFormat(
00016     int& channel_count,
00017     int& sample_rate,
00018     int& bits_per_sample) = 0;
00019 
00020   // |samples| should be
00021   // (sample_count * bits_per_sample * channel_count / 8) bytes
00022   virtual int Read(int sample_count, void* samples) = 0;
00023   virtual bool Reset() = 0;
00024 };
00025 
00026 
00027 extern ISampleSource* OpenInputStream(IFileSystem* fs, const char* filename);
00028 
00029 
00030 #endif

Generated at Mon Jun 10 02:55:12 2002 for audiere by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001