Skip to content

Commit

Permalink
Build v2 rc
Browse files Browse the repository at this point in the history
  • Loading branch information
SaifAqqad committed Feb 12, 2024
1 parent 323ecce commit 4f75485
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ahkpm.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.0-alpha-5",
"version": "2.0.0-rc",
"description": "AutoHotkey wrapper class for Voicemeeter's Remote API",
"repository": "https://github.com/SaifAqqad/VMR.ahk",
"website": "https://saifaqqad.github.io/VMR.ahk",
Expand Down
13 changes: 8 additions & 5 deletions dist/VMR.ahk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* VMR.ahk - A wrapper for Voicemeeter's Remote API
* - Version 2.0.0-alpha-5
* - Build timestamp 2024-02-10 19:58:49 UTC
* - Version 2.0.0-rc
* - Build timestamp 2024-02-12 17:11:08 UTC
* - Repository: {@link https://github.com/SaifAqqad/VMR.ahk GitHub}
* - Documentation: {@link https://saifaqqad.github.io/VMR.ahk VMR Docs}
*/
Expand Down Expand Up @@ -1390,12 +1390,15 @@ class VMRCommands {
/**
* Recalls a Preset Scene
*
* @param {Number} p_presetIndex - The one-based index of the preset
* @param {String | Number} p_preset - The name of the preset to recall or its one-based index
* __________
* @returns {Boolean} - true if the command was successful
*/
RecallPreset(p_presetIndex) {
return VBVMR.SetParameterFloat("Command", "Preset[" p_presetIndex - 1 "].Recall", 1) == 0
RecallPreset(p_preset) {
if (IsNumber(p_preset))
return VBVMR.SetParameterFloat("Command", "Preset[" p_preset - 1 "].Recall", 1) == 0
else
return VBVMR.SetParameterString("Command", "RecallPreset", p_preset) == 0
}
}
class VMRControllerBase {
Expand Down
2 changes: 1 addition & 1 deletion src/VMRCommands.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class VMRCommands {
* @returns {Boolean} - true if the command was successful
*/
RecallPreset(p_preset) {
if(IsNumber(p_preset))
if (IsNumber(p_preset))
return VBVMR.SetParameterFloat("Command", "Preset[" p_preset - 1 "].Recall", 1) == 0
else
return VBVMR.SetParameterString("Command", "RecallPreset", p_preset) == 0
Expand Down

0 comments on commit 4f75485

Please sign in to comment.