Compare commits

...

4 Commits

Author SHA1 Message Date
6e3cbd5fa1 section 1.1.2 added to CHANGELOG 2024-06-29 10:32:05 +01:00
9709c30d31 bits kwarg added to README Voicemeeter::Remote section 2024-06-29 10:31:50 +01:00
decb8f198c add bits kwarg, for overriding type of voicemeeter GUI launched
patch bump
2024-06-29 10:31:27 +01:00
8469351dde add BASICX64 and BANANAX64 to KindEnum
upd {Base}.run_voicemeeter
launch x64 client for all kinds if OS_BITS == 64

patch bump
2024-06-29 05:27:23 +01:00
5 changed files with 26 additions and 4 deletions

View File

@ -11,6 +11,17 @@ Before any major/minor/patch is released all unit tests will be run to verify th
- [ ]
## [1.1.2] - 2024-06-29
### Added
- kwarg `bits` for overriding the type of GUI that is launched on startup.
- Defaults to 64, set it to either 32 or 64
### Fixed
- {Remote}.run_voicemeeter now launches x64 bit GUI's for all kinds if Ruby detects a 64 bit system.
## [1.1.0] - 2023-06-28
### Added

View File

@ -723,6 +723,7 @@ You may pass the following optional keyword arguments:
- `mdirty`: boolean=true, macrobutton updates
- `midi`: boolean=true, midi updates
- `ldirty`: boolean=false, level updates
- `bits`: int=64, (may be one of 32 or 64), overrides the type of Voicemeeter GUI {Remote}.run_voicemeeter will launch.
Access to lower level Getters and Setters are provided with these functions:

View File

@ -19,6 +19,11 @@ module Voicemeeter
@ratelimit = kwargs[:ratelimit] || RATELIMIT
@delay = kwargs[:delay] || DELAY
@login_timeout = kwargs[:login_timeout] || LOGIN_TIMEOUT
@bits = kwargs[:bits] || 64
if ![32, 64].include? @bits
logger.warn "kwarg bits got #{@bits}, expected either 32 or 64, defaulting to 64"
@bits = 64
end
@event =
Events::Tracker.new(
**(kwargs.select { |k, _| %i[pdirty mdirty ldirty midi].include? k })
@ -65,9 +70,12 @@ module Voicemeeter
def run_voicemeeter(kind_id)
kinds = {
basic: Kinds::KindEnum::BASIC,
banana: Kinds::KindEnum::BANANA,
potato: (Install::OS_BITS == 64) ? Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO
basic: ([Install::OS_BITS, @bits].all? { |v| v == 64 }) ?
Kinds::KindEnum::BASICX64 : Kinds::KindEnum::BASIC,
banana: ([Install::OS_BITS, @bits].all? { |v| v == 64 }) ?
Kinds::KindEnum::BANANAX64 : Kinds::KindEnum::BANANA,
potato: ([Install::OS_BITS, @bits].all? { |v| v == 64 }) ?
Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO
}
if caller(1..1).first[/`(.*)'/, 1] == "login"
logger.debug "Voicemeeter engine running but the GUI appears to be down... launching."

View File

@ -6,6 +6,8 @@ module Voicemeeter
BASIC = 1
BANANA = 2
POTATO = 3
BASICX64 = 4
BANANAX64 = 5
POTATOX64 = 6
end

View File

@ -11,7 +11,7 @@ module Voicemeeter
end
def patch
0
2
end
def to_a