Mercurial > hg > svcore
comparison base/AudioPlaySource.h @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 8541563f1fd3 |
children | 618326c4ce4b |
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 _AUDIO_PLAY_SOURCE_H_ | 16 #ifndef SV_AUDIO_PLAY_SOURCE_H |
17 #define _AUDIO_PLAY_SOURCE_H_ | 17 #define SV_AUDIO_PLAY_SOURCE_H |
18 | 18 |
19 #include "BaseTypes.h" | 19 #include "BaseTypes.h" |
20 | 20 |
21 struct Auditionable { | 21 struct Auditionable { |
22 virtual ~Auditionable() { } | 22 virtual ~Auditionable() { } |
57 */ | 57 */ |
58 virtual sv_frame_t getCurrentPlayingFrame() = 0; | 58 virtual sv_frame_t getCurrentPlayingFrame() = 0; |
59 | 59 |
60 /** | 60 /** |
61 * Return the current (or thereabouts) output levels in the range | 61 * Return the current (or thereabouts) output levels in the range |
62 * 0.0 -> 1.0, for metering purposes. | 62 * 0.0 -> 1.0, for metering purposes. The values returned are |
63 * peak values since the last call to this function was made | |
64 * (i.e. calling this function also resets them). | |
63 */ | 65 */ |
64 virtual bool getOutputLevels(float &left, float &right) = 0; | 66 virtual bool getOutputLevels(float &left, float &right) = 0; |
65 | 67 |
66 /** | 68 /** |
67 * Return the sample rate of the source material -- any material | 69 * Return the sample rate of the source material -- any material |