mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
Piano+LibDSP: Move Track to LibDSP
This is a tangly commit and it fixes all the bugs that a plain move would have caused (i.e. we need to touch other logic which had wrong assumptions).
This commit is contained in:
parent
125122a9ab
commit
4941cffdd0
29 changed files with 322 additions and 413 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibAudio/Sample.h>
|
||||
#include <LibCore/File.h>
|
||||
|
||||
namespace Audio {
|
||||
|
@ -24,7 +25,7 @@ public:
|
|||
bool has_error() const { return !m_error_string.is_null(); }
|
||||
char const* error_string() const { return m_error_string.characters(); }
|
||||
|
||||
void write_samples(u8 const* samples, size_t size);
|
||||
void write_samples(Span<Sample> samples);
|
||||
void finalize(); // You can finalize manually or let the destructor do it.
|
||||
|
||||
u32 sample_rate() const { return m_sample_rate; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue