Method: CoreAudio.default_output
- Defined in:
- lib/macos/core_audio.rb
.default_output ⇒ AudioDevice
Returns the default output device.
56 57 58 59 60 |
# File 'lib/macos/core_audio.rb', line 56 def self.default_output address = AudioObject::PropertyAddress.global_master(AudioHardware::PropertyDefaultOutputDevice) buffer = AudioObject.system.get_property(address) AudioDevice.new(buffer.get_uint32(0)) end |