comparison audio/AudioCallbackPlaySource.h @ 741:6508d9d216c7 audio-source-refactor

Comments & tidying
author Chris Cannam
date Mon, 23 Mar 2020 14:14:20 +0000
parents ddfac001b543
children eae885290abc
comparison
equal deleted inserted replaced
740:846970dbef17 741:6508d9d216c7
56 * provides a method for a realtime thread to pick up the latest 56 * provides a method for a realtime thread to pick up the latest
57 * available sample data from these buffers. 57 * available sample data from these buffers.
58 */ 58 */
59 class AudioCallbackPlaySource : public QObject, 59 class AudioCallbackPlaySource : public QObject,
60 public AudioPlaySource, 60 public AudioPlaySource,
61 //!!! to remove:
62 public breakfastquay::ApplicationPlaybackSource 61 public breakfastquay::ApplicationPlaybackSource
63 { 62 {
64 Q_OBJECT 63 Q_OBJECT
65 64
66 public: 65 public:
67 AudioCallbackPlaySource(ViewManagerBase *, QString clientName); 66 AudioCallbackPlaySource(ViewManagerBase *, QString clientName);
68 virtual ~AudioCallbackPlaySource(); 67 virtual ~AudioCallbackPlaySource();
69 68
70 /** 69 /**
71 * Return an ApplicationPlaybackSource interface to this class. 70 * Return an ApplicationPlaybackSource interface to this
72 * The returned pointer is only borrowed, and the object continues 71 * class. Although this class implements ApplicationPlaybackSource
73 * to be owned by us. Caller must ensure the lifetime of the 72 * itself, the object returned here may be a wrapper which
74 * AudioCallbackPlaySource exceeds the scope in which the pointer 73 * provides facilities not implemented in this class, such as
75 * is retained. 74 * time-stretching, resampling, and an auditioning effect. The
75 * returned pointer points to an object which is owned by this
76 * object. Caller must ensure the lifetime of this object exceeds
77 * the scope which the returned pointer is retained.
76 */ 78 */
77 breakfastquay::ApplicationPlaybackSource *getApplicationPlaybackSource(); 79 breakfastquay::ApplicationPlaybackSource *getApplicationPlaybackSource();
78 80
79 /** 81 /**
80 * Add a data model to be played from. The source can mix 82 * Add a data model to be played from. The source can mix