diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-16 13:52:43 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-16 13:52:43 +1100 |
| commit | 7523772886ca37cf05d0ad5b24f6d520e314242e (patch) | |
| tree | ab298342307c1023ef4e1a2a004407ca072dfc25 /src/drivers/include | |
| parent | 96ea6cef8881d005cb06be8a9132535a5564d5fd (diff) | |
| download | tangara-fw-7523772886ca37cf05d0ad5b24f6d520e314242e.tar.gz | |
Decouple play/pause from output on/off
I think this was the cause of toggling play/pause making audio go away.
Or at least I can't repro that bug anymore, anyway.
Diffstat (limited to 'src/drivers/include')
| -rw-r--r-- | src/drivers/include/i2s_dac.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/include/i2s_dac.hpp b/src/drivers/include/i2s_dac.hpp index b61f7989..d66d9762 100644 --- a/src/drivers/include/i2s_dac.hpp +++ b/src/drivers/include/i2s_dac.hpp @@ -46,6 +46,7 @@ class I2SDac { auto Start() -> void; auto Stop() -> void; + auto SetPaused(bool) -> void; enum Channels { CHANNELS_MONO, @@ -75,6 +76,8 @@ class I2SDac { I2SDac& operator=(const I2SDac&) = delete; private: + auto set_channel(bool) -> void; + IGpios& gpio_; i2s_chan_handle_t i2s_handle_; bool i2s_active_; |
