comparison base/AudioPlaySource.h @ 935:f960d67ce842 tonioni

Merge from branch warnfix_no_size_t
author Chris Cannam
date Wed, 18 Jun 2014 13:42:01 +0100
parents 6a94bb528e9d
children a1cd5abcb38b
comparison
equal deleted inserted replaced
925:3efc20c59a94 935:f960d67ce842
35 35
36 /** 36 /**
37 * Start playing from the given frame. If playback is already 37 * Start playing from the given frame. If playback is already
38 * under way, reseek to the given frame and continue. 38 * under way, reseek to the given frame and continue.
39 */ 39 */
40 virtual void play(size_t startFrame) = 0; 40 virtual void play(int startFrame) = 0;
41 41
42 /** 42 /**
43 * Stop playback. 43 * Stop playback.
44 */ 44 */
45 virtual void stop() = 0; 45 virtual void stop() = 0;
51 51
52 /** 52 /**
53 * Return the frame number that is currently expected to be coming 53 * Return the frame number that is currently expected to be coming
54 * out of the speakers. (i.e. compensating for playback latency.) 54 * out of the speakers. (i.e. compensating for playback latency.)
55 */ 55 */
56 virtual size_t getCurrentPlayingFrame() = 0; 56 virtual int getCurrentPlayingFrame() = 0;
57 57
58 /** 58 /**
59 * Return the current (or thereabouts) output levels in the range 59 * Return the current (or thereabouts) output levels in the range
60 * 0.0 -> 1.0, for metering purposes. 60 * 0.0 -> 1.0, for metering purposes.
61 */ 61 */
63 63
64 /** 64 /**
65 * Return the sample rate of the source material -- any material 65 * Return the sample rate of the source material -- any material
66 * that wants to play at a different rate will sound wrong. 66 * that wants to play at a different rate will sound wrong.
67 */ 67 */
68 virtual size_t getSourceSampleRate() const = 0; 68 virtual int getSourceSampleRate() const = 0;
69 69
70 /** 70 /**
71 * Return the sample rate set by the target audio device (or the 71 * Return the sample rate set by the target audio device (or the
72 * source sample rate if the target hasn't set one). If the 72 * source sample rate if the target hasn't set one). If the
73 * source and target sample rates differ, resampling will occur. 73 * source and target sample rates differ, resampling will occur.
74 */ 74 */
75 virtual size_t getTargetSampleRate() const = 0; 75 virtual int getTargetSampleRate() const = 0;
76 76
77 /** 77 /**
78 * Get the block size of the target audio device. This may be an 78 * Get the block size of the target audio device. This may be an
79 * estimate or upper bound, if the target has a variable block 79 * estimate or upper bound, if the target has a variable block
80 * size; the source should behave itself even if this value turns 80 * size; the source should behave itself even if this value turns
81 * out to be inaccurate. 81 * out to be inaccurate.
82 */ 82 */
83 virtual size_t getTargetBlockSize() const = 0; 83 virtual int getTargetBlockSize() const = 0;
84 84
85 /** 85 /**
86 * Get the number of channels of audio that will be provided 86 * Get the number of channels of audio that will be provided
87 * to the play target. This may be more than the source channel 87 * to the play target. This may be more than the source channel
88 * count: for example, a mono source will provide 2 channels 88 * count: for example, a mono source will provide 2 channels
89 * after pan. 89 * after pan.
90 */ 90 */
91 virtual size_t getTargetChannelCount() const = 0; 91 virtual int getTargetChannelCount() const = 0;
92 92
93 /** 93 /**
94 * Set a plugin or other subclass of Auditionable as an 94 * Set a plugin or other subclass of Auditionable as an
95 * auditioning effect. 95 * auditioning effect.
96 */ 96 */