Added a view from the voice to the linked region

This commit is contained in:
Paul Ferrand 2019-12-03 23:33:21 +01:00
parent 1d7e7855eb
commit 1d4935e955

View file

@ -219,6 +219,12 @@ public:
* @return uint32_t
*/
uint32_t getSourcePosition() const noexcept;
/**
* Returns the region that is currently playing. May be null if the voice is not active!
*
* @return
*/
const Region* getRegion() const noexcept { return region; }
private:
/**
* @brief Fill a span with data from a file source. This is the first step