diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-27 00:38:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:38 +0100 |
| commit | 651722fb46269ff06e5ff41227fd874ed5fd9854 (patch) | |
| tree | 8427e31087b52e9ac162d5a9de0e5a94384213e9 /src/wx/controls.cc | |
| parent | 87d740bcf70fd1b5d1e25e763c0c77b8906b7361 (diff) | |
Rework player content handling.
The idea now is ...
There is a "pending" or "next" playlist. You can load a playlist from
the database, or add content to it.
Play loads the pending playlist into the current one and starts playing it.
Stop stops and clears the current playlist.
Pause pauses.
While something is playing you can do what you like to the next playlist.
Diffstat (limited to 'src/wx/controls.cc')
| -rw-r--r-- | src/wx/controls.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wx/controls.cc b/src/wx/controls.cc index fce3fd7eb..2c4e92108 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -457,3 +457,18 @@ Controls::seek(int slider) slider_moved(false); slider_released(); } + + +void +Controls::play() +{ + _viewer.start(); +} + + +void +Controls::stop() +{ + _viewer.stop(); +} + |
