Minor fix to input_filter.hpp

This commit is contained in:
Nicolay Korslund 2010-08-05 12:14:42 +02:00
parent 073cc246b6
commit e181b71cc9

View file

@ -10,13 +10,12 @@ namespace Sound {
/** /**
@brief This filter class adds file loading capabilities to a @brief This filter class adds file loading capabilities to a
Sound::SoundFactory class, by associating an SampleSourceLoader Sound::SoundFactory class, by associating a SampleSourceLoader with
with it. it.
The class takes an existing SoundFactory able to load streams, and The class takes an existing SoundFactory able to load streams, and
associates an SampleSourceLoader with it. The combined class is associates a SampleSourceLoader with it. The combined class is able
able to load files directly. to load files directly. */
*/
class InputFilter : public SoundFactory class InputFilter : public SoundFactory
{ {
protected: protected:
@ -45,7 +44,7 @@ class InputFilter : public SoundFactory
// Both these should be true, or the use of this class is pretty // Both these should be true, or the use of this class is pretty
// pointless // pointless
canLoadSource = snd->canLoadSource; canLoadSource = snd->canLoadSource;
canLoadFile = canLoadSource; canLoadFile = inp->canLoadFile;
assert(canLoadSource && canLoadFile); assert(canLoadSource && canLoadFile);
} }