Skip to content

Commit

Permalink
(squash) rebase cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrra committed Sep 19, 2024
1 parent 535a9de commit ec78c34
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 65 deletions.
1 change: 0 additions & 1 deletion src/framework/audio/iaudiodriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class IAudioDriver : MODULE_EXPORT_INTERFACE

virtual std::vector<unsigned int> availableOutputDeviceSampleRates() const = 0;
virtual bool isPlaying() const = 0;
//virtual float playbackPositionInSeconds() const = 0;
virtual void remotePlayOrStop(bool) const = 0;
virtual void remoteSeek(msecs_t) const = 0;

Expand Down
5 changes: 0 additions & 5 deletions src/framework/audio/internal/audiomidimanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,6 @@ bool AudioMidiManager::isPlaying() const
return playbackController()->isPlaying();
}

//float AudioMidiManager::playbackPositionInSeconds() const
//{
// return playbackController()->playbackPositionInSeconds();
//}

void AudioMidiManager::remotePlayOrStop(bool ps) const
{
playbackController()->remotePlayOrStop(ps);
Expand Down
1 change: 0 additions & 1 deletion src/framework/audio/internal/audiomidimanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ class AudioMidiManager : public IAudioDriver, public async::Asyncable
void positionChanged(muse::audio::secs_t secs, muse::midi::tick_t tick);

bool isPlaying() const override;
//float playbackPositionInSeconds() const override;
void remotePlayOrStop(bool) const override;
void remoteSeek(msecs_t) const override;

Expand Down
5 changes: 0 additions & 5 deletions src/framework/audio/internal/platform/osx/osxaudiodriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,9 @@ class OSXAudioDriver : public IAudioDriver
bool setOutputDeviceBufferSize(unsigned int bufferSize) override;
async::Notification outputDeviceBufferSizeChanged() const override;

unsigned int sampleRate() const override;
bool setSampleRate(unsigned int sampleRate) override;
async::Notification sampleRateChanged() const override;

int audioDelayCompensate() const override;
void setAudioDelayCompensate(const int frames) override;
bool isPlaying() const override;
float playbackPositionInSeconds() const override;
void remotePlayOrStop(bool) const override;
void remoteSeek(msecs_t) const override;

Expand Down
20 changes: 0 additions & 20 deletions src/framework/audio/internal/platform/osx/osxaudiodriver.mm
Original file line number Diff line number Diff line change
Expand Up @@ -336,21 +336,6 @@
return m_bufferSizeChanged;
}

unsigned int OSXAudioDriver::sampleRate() const
{
return 0;
}

bool OSXAudioDriver::setSampleRate(unsigned int sampleRate)
{
return true;
}

async::Notification OSXAudioDriver::sampleRateChanged() const
{
return m_sampleRateChanged;
}

std::vector<unsigned int> OSXAudioDriver::availableOutputDeviceBufferSizes() const
{
OSXAudioDeviceID osxDeviceId = this->osxDeviceId();
Expand Down Expand Up @@ -442,11 +427,6 @@
return false;
}

float OSXAudioDriver::playbackPositionInSeconds() const
{
return 0;
}

void OSXAudioDriver::remotePlayOrStop([[maybe_unused]] bool ps) const
{
}
Expand Down
20 changes: 0 additions & 20 deletions src/framework/audio/internal/platform/win/wasapiaudiodriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,6 @@ async::Notification WasapiAudioDriver::availableOutputDevicesChanged() const
return m_availableOutputDevicesChanged;
}

unsigned int WasapiAudioDriver::sampleRate() const
{
return 0;
}

bool WasapiAudioDriver::setSampleRate(unsigned int sampleRate)
{
return true;
}

async::Notification WasapiAudioDriver::sampleRateChanged() const
{
return m_sampleRateChanged;
}

unsigned int WasapiAudioDriver::outputDeviceBufferSize() const
{
return m_activeSpec.samples;
Expand Down Expand Up @@ -369,11 +354,6 @@ bool WasapiAudioDriver::isPlaying() const
return false;
}

float WasapiAudioDriver::playbackPositionInSeconds() const
{
return 0;
}

void WasapiAudioDriver::remotePlayOrStop(bool ps) const
{
}
Expand Down
7 changes: 0 additions & 7 deletions src/framework/audio/internal/platform/win/wasapiaudiodriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,15 @@ class WasapiAudioDriver : public IAudioDriver, public async::Asyncable

std::vector<unsigned int> availableOutputDeviceBufferSizes() const override;

// -------------------------------------------------------------------
// FIX-JACK: api-change, WAS:
// unsigned int sampleRate() const override;
// bool setSampleRate(unsigned int sampleRate) override;
// async::Notification sampleRateChanged() const override;
unsigned int outputDeviceSampleRate() const override;
bool setOutputDeviceSampleRate(unsigned int sampleRate) override;
async::Notification outputDeviceSampleRateChanged() const override;
// -------------------------------------------------------------------

std::vector<unsigned int> availableOutputDeviceSampleRates() const override;

int audioDelayCompensate(void) const override;
void setAudioDelayCompensate(const int frames) override;
bool isPlaying() const override;
float playbackPositionInSeconds() const override;
void remotePlayOrStop(bool) const override;
void remoteSeek(msecs_t) const override;
bool pushMidiEvent(muse::midi::Event& e) override;
Expand Down
5 changes: 0 additions & 5 deletions src/framework/stubs/audio/audiodriverstub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ bool AudioDriverStub::isPlaying() const
return false;
}

float AudioDriverStub::playbackPositionInSeconds() const
{
return 0;
}

unsigned int AudioDriverStub::sampleRate() const
{
return 0;
Expand Down
1 change: 0 additions & 1 deletion src/framework/stubs/audio/audiodriverstub.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class AudioDriverStub : public IAudioDriver
int audioDelayCompensate() const override;
void setAudioDelayCompensate(const int frames) override;
bool isPlaying() const override;
float playbackPositionInSeconds() const override;
void remotePlayOrStop(bool) const override;
void remoteSeek(msecs_t) const override;

Expand Down

0 comments on commit ec78c34

Please sign in to comment.