diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-05-23 09:12:26 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-05-23 09:13:22 +1000 |
| commit | 4bff06c76c223a156a14adc478ab1a9b083fd7b2 (patch) | |
| tree | 107eec046f70ecbdc6a942fc714b9f68f0b0b23d /src/audio/pipeline.cpp | |
| parent | ecee01fe97422c65e2b01979742d01ece31bc28d (diff) | |
| download | tangara-fw-4bff06c76c223a156a14adc478ab1a9b083fd7b2.tar.gz | |
Drop himem audio buffers (for now?)
For some reason the spinlocks required now block forever? Very odd.
On the plus side, this turned out to be the issue that was stopping the
audio pipeline from running on the app core.
Diffstat (limited to 'src/audio/pipeline.cpp')
| -rw-r--r-- | src/audio/pipeline.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/audio/pipeline.cpp b/src/audio/pipeline.cpp index bab2f3ff..270622cf 100644 --- a/src/audio/pipeline.cpp +++ b/src/audio/pipeline.cpp @@ -23,18 +23,14 @@ auto Pipeline::NumInputs() const -> std::size_t { return subtrees_.size(); } -auto Pipeline::InStreams( - std::vector<MappableRegion<kPipelineBufferSize>>* regions, - std::vector<RawStream>* out) -> void { +auto Pipeline::InStreams(std::vector<RawStream>* out) -> void { for (int i = 0; i < subtrees_.size(); i++) { - RawStream s = subtrees_[i]->OutStream(®ions->at(i)); - out->push_back(s); + out->push_back(subtrees_[i]->OutStream()); } } -auto Pipeline::OutStream(MappableRegion<kPipelineBufferSize>* region) - -> RawStream { - return {&output_info_, region->Map(output_buffer_)}; +auto Pipeline::OutStream() -> RawStream { + return {&output_info_, output_buffer_}; } auto Pipeline::GetIterationOrder() -> std::vector<Pipeline*> { |
