mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +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
|
@ -35,7 +35,8 @@ public:
|
|||
m_current_track = track_index;
|
||||
}
|
||||
|
||||
int time() const { return m_time; }
|
||||
NonnullRefPtr<LibDSP::Transport> transport() const { return m_transport; }
|
||||
// Legacy API, do not add new users.
|
||||
void time_forward(int amount);
|
||||
|
||||
void fill_buffer(Span<Sample>);
|
||||
|
@ -58,7 +59,7 @@ private:
|
|||
|
||||
int m_octave { 4 };
|
||||
|
||||
u32 m_time { 0 };
|
||||
NonnullRefPtr<LibDSP::Transport> m_transport;
|
||||
|
||||
bool m_should_loop { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue