Mercurial > hg > svapp
comparison audioio/AudioTargetFactory.h @ 126:d615d0220828
* Add audio device selection to preferences
* Add (not yet functional) insert, delete, edit buttons to data edit window
* Add proper set methods for time fields in data edit window (using general
sparse model base class)
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2008 21:09:43 +0000 |
parents | 3c5756fb6a68 |
children | 67cea66bd588 |
comparison
equal
deleted
inserted
replaced
125:e4635503a6d2 | 126:d615d0220828 |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef _AUDIO_TARGET_FACTORY_H_ | 16 #ifndef _AUDIO_TARGET_FACTORY_H_ |
17 #define _AUDIO_TARGET_FACTORY_H_ | 17 #define _AUDIO_TARGET_FACTORY_H_ |
18 | 18 |
19 #include <vector> | |
20 #include <QString> | |
21 | |
19 class AudioCallbackPlaySource; | 22 class AudioCallbackPlaySource; |
20 class AudioCallbackPlayTarget; | 23 class AudioCallbackPlayTarget; |
21 | 24 |
22 class AudioTargetFactory | 25 class AudioTargetFactory |
23 { | 26 { |
24 public: | 27 public: |
25 static AudioCallbackPlayTarget *createCallbackTarget(AudioCallbackPlaySource *); | 28 static AudioTargetFactory *getInstance(); |
29 | |
30 std::vector<QString> getCallbackTargetNames(bool includeAuto = true) const; | |
31 QString getCallbackTargetDescription(QString name) const; | |
32 QString getDefaultCallbackTarget() const; | |
33 bool isAutoCallbackTarget(QString name) const; | |
34 void setDefaultCallbackTarget(QString name); | |
35 | |
36 AudioCallbackPlayTarget *createCallbackTarget(AudioCallbackPlaySource *); | |
37 | |
38 protected: | |
39 AudioTargetFactory(); | |
40 static AudioTargetFactory *m_instance; | |
41 QString m_default; | |
26 }; | 42 }; |
27 | 43 |
28 #endif | 44 #endif |
29 | 45 |