From e181b71cc9d1a647734547d1327ad1185eac5a90 Mon Sep 17 00:00:00 2001 From: Nicolay Korslund Date: Thu, 5 Aug 2010 12:14:42 +0200 Subject: [PATCH] Minor fix to input_filter.hpp --- sound/filters/input_filter.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sound/filters/input_filter.hpp b/sound/filters/input_filter.hpp index 267858de13..00ee187660 100644 --- a/sound/filters/input_filter.hpp +++ b/sound/filters/input_filter.hpp @@ -10,13 +10,12 @@ namespace Sound { /** @brief This filter class adds file loading capabilities to a - Sound::SoundFactory class, by associating an SampleSourceLoader - with it. + Sound::SoundFactory class, by associating a SampleSourceLoader with + it. The class takes an existing SoundFactory able to load streams, and - associates an SampleSourceLoader with it. The combined class is - able to load files directly. -*/ + associates a SampleSourceLoader with it. The combined class is able + to load files directly. */ class InputFilter : public SoundFactory { protected: @@ -45,7 +44,7 @@ class InputFilter : public SoundFactory // Both these should be true, or the use of this class is pretty // pointless canLoadSource = snd->canLoadSource; - canLoadFile = canLoadSource; + canLoadFile = inp->canLoadFile; assert(canLoadSource && canLoadFile); }