diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-08-03 16:04:27 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-08-03 16:04:27 +1000 |
| commit | 31f6123b7b7b21c005267ca98a64ef6d492d553e (patch) | |
| tree | b69a84386593a6484e2c8a073438497454622e33 /src/audio/stream_info.cpp | |
| parent | 3511852f39cd5023ec8e6d0b94cc69f34e9201ed (diff) | |
| download | tangara-fw-31f6123b7b7b21c005267ca98a64ef6d492d553e.tar.gz | |
Tweak buffer size and placement
Diffstat (limited to 'src/audio/stream_info.cpp')
| -rw-r--r-- | src/audio/stream_info.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/audio/stream_info.cpp b/src/audio/stream_info.cpp index 6efe297e..749e880e 100644 --- a/src/audio/stream_info.cpp +++ b/src/audio/stream_info.cpp @@ -30,6 +30,14 @@ RawStream::RawStream(std::size_t size) assert(buffer_ != NULL); } +RawStream::RawStream(std::size_t size, uint32_t caps) + : info_(), + buffer_size_(size), + buffer_(reinterpret_cast<std::byte*>( + heap_caps_malloc(size, caps))) { + assert(buffer_ != NULL); +} + RawStream::~RawStream() { heap_caps_free(buffer_); } |
