mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:57:44 +00:00
Piano: Use a real transport in the TrackManager
This is technically only a stepping stone but needed to happen at some point anyways. Now, there's no more integer time stored in Piano's legacy datastructures directly.
This commit is contained in:
parent
37b340a698
commit
7e04560af4
6 changed files with 29 additions and 28 deletions
|
@ -64,7 +64,7 @@ void AudioPlayerLoop::enqueue_audio()
|
|||
do {
|
||||
m_track_manager.fill_buffer(m_buffer);
|
||||
m_wav_writer.write_samples(reinterpret_cast<u8*>(m_buffer.data()), buffer_size);
|
||||
} while (m_track_manager.time());
|
||||
} while (m_track_manager.transport()->time());
|
||||
m_track_manager.reset();
|
||||
m_track_manager.set_should_loop(true);
|
||||
m_wav_writer.finalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue