Browse Source

Pitchable has a different default now;

bjorn 1 year ago
parent
commit
12eae9c859
2 changed files with 8 additions and 8 deletions
  1. 6 6
      api/init.lua
  2. 2 2
      api/lovr/audio/newSource.lua

+ 6 - 6
api/init.lua

@@ -1656,8 +1656,8 @@ return {
                     {
                     {
                       name = "pitchable",
                       name = "pitchable",
                       type = "boolean",
                       type = "boolean",
-                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Leaving this as false will improve performance slightly.",
-                      default = "false"
+                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Setting this to false will improve performance slightly.",
+                      default = "true"
                     },
                     },
                     {
                     {
                       name = "spatial",
                       name = "spatial",
@@ -1703,8 +1703,8 @@ return {
                     {
                     {
                       name = "pitchable",
                       name = "pitchable",
                       type = "boolean",
                       type = "boolean",
-                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Leaving this as false will improve performance slightly.",
-                      default = "false"
+                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Setting this to false will improve performance slightly.",
+                      default = "true"
                     },
                     },
                     {
                     {
                       name = "spatial",
                       name = "spatial",
@@ -1750,8 +1750,8 @@ return {
                     {
                     {
                       name = "pitchable",
                       name = "pitchable",
                       type = "boolean",
                       type = "boolean",
-                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Leaving this as false will improve performance slightly.",
-                      default = "false"
+                      description = "Whether the pitch of the Source can be changed with `Source:setPitch`.  Setting this to false will improve performance slightly.",
+                      default = "true"
                     },
                     },
                     {
                     {
                       name = "spatial",
                       name = "spatial",

+ 2 - 2
api/lovr/audio/newSource.lua

@@ -32,9 +32,9 @@ return {
         {
         {
           name = 'pitchable',
           name = 'pitchable',
           type = 'boolean',
           type = 'boolean',
-          default = 'false',
+          default = 'true',
           description = [[
           description = [[
-            Whether the pitch of the Source can be changed with `Source:setPitch`.  Leaving this as
+            Whether the pitch of the Source can be changed with `Source:setPitch`.  Setting this to
             false will improve performance slightly.
             false will improve performance slightly.
           ]]
           ]]
         },
         },