mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
LibAudio+Everywhere: Rename Audio::Buffer -> Audio::LegacyBuffer
With the following change in how we send audio, the old Buffer type is not really needed anymore. However, moving WavLoader to the new system is a bit more involved and out of the scope of this PR. Therefore, we need to keep Buffer around, but to make it clear that it's the old buffer type which will be removed soon, we rename it to LegacyBuffer. Most of the users will be gone after the next commit anyways.
This commit is contained in:
parent
fc7d231b00
commit
cb0e95c928
21 changed files with 54 additions and 54 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
~ClientAudioStream() = default;
|
||||
|
||||
bool is_full() const { return m_queue.size() >= 3; }
|
||||
void enqueue(NonnullRefPtr<Audio::Buffer>&&);
|
||||
void enqueue(NonnullRefPtr<Audio::LegacyBuffer>&&);
|
||||
|
||||
bool get_next_sample(Audio::Sample& sample)
|
||||
{
|
||||
|
@ -97,8 +97,8 @@ public:
|
|||
void set_muted(bool muted) { m_muted = muted; }
|
||||
|
||||
private:
|
||||
RefPtr<Audio::Buffer> m_current;
|
||||
Queue<NonnullRefPtr<Audio::Buffer>> m_queue;
|
||||
RefPtr<Audio::LegacyBuffer> m_current;
|
||||
Queue<NonnullRefPtr<Audio::LegacyBuffer>> m_queue;
|
||||
int m_position { 0 };
|
||||
int m_remaining_samples { 0 };
|
||||
int m_played_samples { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue