Mercurial > hg > svcore
comparison base/ViewManagerBase.h @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | ec9e65fcf749 |
children |
comparison
equal
deleted
inserted
replaced
1324:d4a28d1479a8 | 1527:710e6250a401 |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _VIEW_MANAGER_BASE_H_ | 16 #ifndef SV_VIEW_MANAGER_BASE_H |
17 #define _VIEW_MANAGER_BASE_H_ | 17 #define SV_VIEW_MANAGER_BASE_H |
18 | 18 |
19 #include <QObject> | 19 #include <QObject> |
20 | 20 |
21 #include "Selection.h" | 21 #include "Selection.h" |
22 | 22 |
23 class AudioPlaySource; | 23 class AudioPlaySource; |
24 class AudioRecordTarget; | |
24 | 25 |
25 /** | 26 /** |
26 * Base class for ViewManager, with no GUI content. This should | 27 * Base class for ViewManager, with no GUI content. This should |
27 * define all of the ViewManager interface that e.g. audio I/O classes | 28 * define all of the ViewManager interface that e.g. audio I/O classes |
28 * need to refer to. | 29 * need to refer to. |
34 | 35 |
35 public: | 36 public: |
36 virtual ~ViewManagerBase(); | 37 virtual ~ViewManagerBase(); |
37 | 38 |
38 virtual void setAudioPlaySource(AudioPlaySource *source) = 0; | 39 virtual void setAudioPlaySource(AudioPlaySource *source) = 0; |
40 virtual void setAudioRecordTarget(AudioRecordTarget *target) = 0; | |
39 | 41 |
40 virtual sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const = 0; | 42 virtual sv_frame_t alignPlaybackFrameToReference(sv_frame_t) const = 0; |
41 virtual sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const = 0; | 43 virtual sv_frame_t alignReferenceToPlaybackFrame(sv_frame_t) const = 0; |
42 | 44 |
43 virtual const MultiSelection &getSelection() const = 0; | 45 virtual const MultiSelection &getSelection() const = 0; |