Browse Source

t.audio.start note;

bjorn 4 years ago
parent
commit
80db048963
2 changed files with 294 additions and 2740 deletions
  1. 284 2734
      api/init.lua
  2. 10 6
      api/lovr/audio/start.lua

File diff suppressed because it is too large
+ 284 - 2734
api/init.lua


+ 10 - 6
api/lovr/audio/start.lua

@@ -2,12 +2,8 @@ return {
   tag = 'devices',
   summary = 'Start an audio device.',
   description = [[
-    Starts the active playback or capture device.  This may fail if:
-
-    - The device is already started
-    - No device was initialized with `lovr.audio.setDevice`
-    - Lack of `audiocapture` permission on Android (see `lovr.system.requestPermission`)
-    - Some other problem accessing the audio device
+    Starts 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`.
   ]],
   arguments = {
     {
@@ -24,6 +20,14 @@ return {
       description = '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 (see `lovr.system.requestPermission`)
+    - Some other problem accessing the audio device
+  ]],
   related = {
     'lovr.audio.getDevices',
     'lovr.audio.setDevice',

Some files were not shown because too many files changed in this diff