SoundTouch resampler integration

This commit is contained in:
Vestral
2022-01-05 17:26:12 +09:00
committed by Megamouse
parent 3a804674c9
commit 107107107c
28 changed files with 576 additions and 402 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ simple_ringbuf& simple_ringbuf::operator=(simple_ringbuf&& other)
return *this;
}
u32 simple_ringbuf::get_free_size()
u32 simple_ringbuf::get_free_size() const
{
const u64 _rw_ptr = rw_ptr;
const u32 rd = static_cast<u32>(_rw_ptr);
@@ -42,12 +42,12 @@ u32 simple_ringbuf::get_free_size()
return wr >= rd ? buf_size - 1 - (wr - rd) : rd - wr - 1U;
}
u32 simple_ringbuf::get_used_size()
u32 simple_ringbuf::get_used_size() const
{
return buf_size - 1 - get_free_size();
}
u32 simple_ringbuf::get_total_size()
u32 simple_ringbuf::get_total_size() const
{
return buf_size;
}
+3 -3
View File
@@ -25,9 +25,9 @@ public:
simple_ringbuf(simple_ringbuf&& other);
simple_ringbuf& operator=(simple_ringbuf&& other);
u32 get_free_size();
u32 get_used_size();
u32 get_total_size();
u32 get_free_size() const;
u32 get_used_size() const;
u32 get_total_size() const;
// Thread unsafe functions.
void set_buf_size(u32 size);