Chris@43: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@43: Chris@43: /* Chris@43: Sonic Visualiser Chris@43: An audio file viewer and annotation editor. Chris@43: Centre for Digital Music, Queen Mary, University of London. Chris@43: This file copyright 2006 Chris Cannam. Chris@43: Chris@43: This program is free software; you can redistribute it and/or Chris@43: modify it under the terms of the GNU General Public License as Chris@43: published by the Free Software Foundation; either version 2 of the Chris@43: License, or (at your option) any later version. See the file Chris@43: COPYING included with this distribution for more information. Chris@43: */ Chris@43: Chris@43: #ifndef _AUDIO_TARGET_FACTORY_H_ Chris@43: #define _AUDIO_TARGET_FACTORY_H_ Chris@43: Chris@126: #include Chris@126: #include Chris@126: Chris@228: #include "base/Debug.h" Chris@228: Chris@43: class AudioCallbackPlaySource; Chris@43: class AudioCallbackPlayTarget; Chris@43: Chris@43: class AudioTargetFactory Chris@43: { Chris@43: public: Chris@126: static AudioTargetFactory *getInstance(); Chris@126: Chris@126: std::vector getCallbackTargetNames(bool includeAuto = true) const; Chris@126: QString getCallbackTargetDescription(QString name) const; Chris@126: QString getDefaultCallbackTarget() const; Chris@126: bool isAutoCallbackTarget(QString name) const; Chris@126: void setDefaultCallbackTarget(QString name); Chris@126: Chris@126: AudioCallbackPlayTarget *createCallbackTarget(AudioCallbackPlaySource *); Chris@126: Chris@126: protected: Chris@126: AudioTargetFactory(); Chris@126: static AudioTargetFactory *m_instance; Chris@126: QString m_default; Chris@43: }; Chris@43: Chris@43: #endif Chris@43: