RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
ik_IAudioStreamLoader.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2014 Nikolaus Gebhardt
2 // This file is part of the "irrKlang" library.
3 // For conditions of distribution and use, see copyright notice in irrKlang.h
4 
5 #ifndef __I_IRRKLANG_AUDIO_STREAM_LOADER_H_INCLUDED__
6 #define __I_IRRKLANG_AUDIO_STREAM_LOADER_H_INCLUDED__
7 
8 #include "ik_IRefCounted.h"
9 #include "ik_IFileReader.h"
10 
11 namespace irrklang
12 {
13 
14 class IAudioStream;
15 
18 {
19 public:
20 
22  virtual ~IAudioStreamLoader() {};
23 
25 
27  virtual bool isALoadableFileExtension(const ik_c8* fileName) = 0;
28 
30 
33  virtual IAudioStream* createAudioStream(IFileReader* file) = 0;
34 };
35 
36 
37 } // end namespace irrklang
38 
39 #endif
40 
Base class of most objects of the irrKlang.
Interface providing read acess to a file.
virtual ~IAudioStreamLoader()
destructor
Reads and decodes audio data into an usable audio stream for the ISoundEngine.
Class which is able to create an audio file stream from a file.
char ik_c8
8 bit character variable.
Everything in the irrKlang Sound Engine can be found in this namespace.
virtual bool isALoadableFileExtension(const ik_c8 *fileName)=0
Returns true if the file maybe is able to be loaded by this class.
virtual IAudioStream * createAudioStream(IFileReader *file)=0
Creates an audio file input stream from a file.