AudioServer+LibAudio: Pass audio buffers as Core::AnonymousBuffer

This was the last remaining user of shbufs! :^)
This commit is contained in:
Andreas Kling 2021-01-17 08:43:58 +01:00
commit 2cd16778b5
Notes: sideshowbarker 2024-07-18 23:08:48 +09:00
9 changed files with 36 additions and 34 deletions

View file

@ -108,14 +108,14 @@ void PlaybackManager::remove_dead_buffers()
int id = m_connection->get_playing_buffer();
int current_id = -1;
if (m_current_buffer)
current_id = m_current_buffer->shbuf_id();
current_id = m_current_buffer->id();
if (id >= 0 && id != current_id) {
while (!m_buffers.is_empty()) {
--m_next_ptr;
auto buffer = m_buffers.take_first();
if (buffer->shbuf_id() == id) {
if (buffer->id() == id) {
m_current_buffer = buffer;
break;
}