-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
soundio: rename SoundDeviceError > SoundDeviceStatus #4907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only small nitpick that you didn't even introduce, but would be nice if you could fix.
@@ -562,11 +562,11 @@ SoundDeviceError SoundManager::setConfig(const SoundManagerConfig& config) { | |||
m_pConfig->set(ConfigKey("[Soundcard]","Samplerate"), | |||
ConfigValue(static_cast<int>(m_config.getSampleRate()))); | |||
|
|||
err = setupDevices(); | |||
if (err == SOUNDDEVICE_ERROR_OK) { | |||
status = setupDevices(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status
can just be defined here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh sure, I could do that, though I'm touching these files in #4862 anyway, thus I'd rather fix it there and keep this as pure renaming PR.
Anyone else has time for a quick review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nitpick if you're in the mood for cleanup. If you think it blows the scope, we can leave as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise.
d499e7a
to
7303ba3
Compare
7303ba3
to
c63b9da
Compare
Thanks |
I found this a bit misleading/annoying that a device status is named "Error", as well as the inadequate names
SOUNDDEVICE_ERROR_OK
andSOUNDDEVICE_ERROR_ERR
So now it's