Method: CoreAudio::AudioObject#device_name

Defined in:
lib/macos/core_audio/audio_object.rb

#device_nameString

Returns the name of the device.

Returns:

  • (String)

    the name of the device



127
128
129
130
# File 'lib/macos/core_audio/audio_object.rb', line 127

def device_name
    address = PropertyAddress.global_master(PropertyName)
    get_string(address)
end