lovr.audio.start
EditStarts the active playback or capture device. By default the playback device is initialized and started, but this can be controlled using the t.audio.start
flag in lovr.conf
.
started = lovr.audio.start(type)
Arguments
Name | Type | Default | Description |
type | AudioType | 'playback' | The type of device to start. |
Returns
Name | Type | Description |
started | boolean | Whether the device was successfully started. |
Notes
Starting an audio device may fail if:
- The device is already started
- No device was initialized with
lovr.audio.setDevice
- Lack of
audiocapture
permission on Android (seelovr.system.requestPermission
) - Some other problem accessing the audio device
See also
lovr.audio.getDevices
lovr.audio.setDevice
lovr.audio.stop
lovr.audio.isStarted
lovr.system.requestPermission
lovr.permission
lovr.audio