mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
SoundPlayer: Don't offset the seek bar with the last seek value
The audio loader plugins already do this internally, if we do this a second time the seek bar will just end up getting rendered at the wrong place.
This commit is contained in:
parent
daf181caa8
commit
dfc57c0dd9
3 changed files with 0 additions and 5 deletions
|
@ -31,7 +31,6 @@ public:
|
|||
RefPtr<Audio::Loader> loader() const { return m_loader; }
|
||||
size_t device_sample_rate() const { return m_device_sample_rate; }
|
||||
|
||||
int last_seek() const { return m_last_seek; }
|
||||
bool is_paused() const { return m_paused; }
|
||||
float total_length() const { return m_total_length; }
|
||||
FixedArray<Audio::Sample> const& current_buffer() const { return m_current_buffer; }
|
||||
|
@ -50,7 +49,6 @@ private:
|
|||
|
||||
bool m_paused { true };
|
||||
bool m_loop = { false };
|
||||
size_t m_last_seek { 0 };
|
||||
float m_total_length { 0 };
|
||||
size_t m_device_sample_rate { 44100 };
|
||||
size_t m_device_samples_per_buffer { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue