diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-27 13:39:32 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-27 13:39:32 +0200 |
commit | fc29354d86e6a8b5601e92405b89a1da27406ce7 (patch) | |
tree | e31069154ad5bd9497764b6205dd4d3a411b40eb /src/player.h | |
parent | 329110e3230a6518f024c612842b04afdea1cd03 (diff) |
WIP
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/player.h b/src/player.h index 0f5b780..9bc03b7 100644 --- a/src/player.h +++ b/src/player.h @@ -32,7 +32,7 @@ #include <ao/ao.h> -#include "selection.h" +#include "range.h" class Player : public QThread @@ -67,12 +67,12 @@ public slots: //! Set player position as sample offset. void setPosition(size_t position); - //! Play range based on selection including fade-in/out. + //! Play range based on range including fade-in/out. //! \param length Stop playing after length samples. -1 means play all. - void playSelection(Selection selection, int length = -1); + void playRange(Range range, int length = -1); - //! Return true if last selection is done playing. - bool playSelectionDone(); + //! Return true if last range is done playing. + bool playRangeDone(); //! Stop playing void stop(); @@ -105,7 +105,7 @@ private: bool running; QMutex mutex; - volatile bool new_selection; + volatile bool new_range; size_t sel_end; - Selection selection; + Range range; }; |