Skip to content
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

disable audio in virtualbox by default #392

Merged
merged 2 commits into from
Jan 28, 2019

Conversation

robbkidd
Copy link
Contributor

Fixes #388

As mentioned in that issue, modifying the VM to have audio set to "none" will disable sound for the VM and prevent VirtualBox from connecting to the host's audio which really cramps a user's style when they're listening to something over bluetooth headphones.

This change opts to be simple-but-repetitive in the tests to include the new default in each example VM config.

Also resolves a deprecation notice about the use of Fixnum.

Fixes #388

As mentioned in that issue, modifying the VM to have audio set to "none"
will disable sound for the VM and prevent VirtualBox from connecting to
the host's audio which really cramps a user's style when they're
listening to something over bluetooth headphones.

This change opts to be simple-but-repetitive in the tests to include the
new default in each example VM config.

Signed-off-by: Robb Kidd <robb@thekidds.org>
Fixnum was deprecated in Ruby 2.4, so this should be checking for
Integer.

Changed this check to `kind_of?` for backwards compatibility. Fixnum is
a subclass of Integer, even in Ruby < 2.4. `kind_of?` will return true
if the class given is the class of the object, or if it is one of the
superclasses of the object or modules included in the object.
`instance_of?` only returns true for an exact match on the class, does
not take subclassing into consideration.

Signed-off-by: Robb Kidd <robb@thekidds.org>
@tyler-ball tyler-ball merged commit f1e1567 into master Jan 28, 2019
@tyler-ball tyler-ball deleted the robb/default-disable-audio-in-virtualbox branch January 28, 2019 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

audio sound on macOS changes when VM is created
3 participants