From 4e2a46267cca2e2c5c6fc2bc8049d406edb1bcee Mon Sep 17 00:00:00 2001
From: casey langen <casey.langen@gmail.com>
Date: Mon, 15 Mar 2021 22:33:40 -0700
Subject: [PATCH] TODOify

---
 src/plugins/pipewireout/PipeWireOut.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/plugins/pipewireout/PipeWireOut.cpp b/src/plugins/pipewireout/PipeWireOut.cpp
index 685ca9757..92faeef88 100644
--- a/src/plugins/pipewireout/PipeWireOut.cpp
+++ b/src/plugins/pipewireout/PipeWireOut.cpp
@@ -180,6 +180,7 @@ void PipeWireOut::Resume() {
 
 void PipeWireOut::SetVolume(double volume) {
     //pw_stream_set_control(stream->stream, SPA_PROP_channelVolumes, stream->volume.channels, stream->volume.values, 0);
+    /* CAL TODO */
     this->volume = volume;
 }
 
@@ -192,17 +193,21 @@ void PipeWireOut::Stop() {
 }
 
 void PipeWireOut::Drain() {
+    /* CAL TODO */
 }
 
 IDeviceList* PipeWireOut::GetDeviceList() {
+    /* CAL TODO */
     return nullptr;
 }
 
 bool PipeWireOut::SetDefaultDevice(const char* deviceId) {
+    /* CAL TODO */
     return false;
 }
 
 IDevice* PipeWireOut::GetDefaultDevice() {
+    /* CAL TODO */
     return nullptr;
 }
 
@@ -215,7 +220,6 @@ void PipeWireOut::StopPipeWire() {
         this->bufferCondition.notify_all();
     }
 
-
     if (this->pwThreadLoop) {
         pw_thread_loop_stop(this->pwThreadLoop);
 
@@ -323,6 +327,8 @@ OutputState PipeWireOut::Play(IBuffer *buffer, IBufferProvider *provider) {
         }
     }
 
+    /* CAL TODO: re-init stream if buffer format changes */
+
     if (this->state != State::Playing) {
         return OutputState::InvalidState;
     }
@@ -340,5 +346,6 @@ OutputState PipeWireOut::Play(IBuffer *buffer, IBufferProvider *provider) {
 }
 
 double PipeWireOut::Latency() {
+    /* CAL TODO */
     return 0.0;
 }