sbz-switch icon indicating copy to clipboard operation
sbz-switch copied to clipboard

sbz-switch watch: Unexpected error

Open Anduin1357 opened this issue 2 years ago • 3 comments

Sound Blaster Command 3.5.8.0 Driver version 6.0.105.64 cmd as administrator, sbz-switch 4.1.0

sbz-switch.exe watch

CRIT Unexpected error: SoundCore not supported, module: sbz_switch:172

sbz-switch.exe list-devices
id = '{0.0.0.00000000}.{88db5ddc-9d0b-4d9d-9906-ba14f2837b90}'
interface = 'Sound BlasterX AE-5'

Anduin1357 avatar Nov 27 '22 06:11 Anduin1357

Try downloading this version and setting the environment variable RUST_LOG="trace" before using it. There should be output like this near the bottom. That explains why it's not supported.

https://github.com/mdonoughe/sbz-switch/suites/9623914194/artifacts/459595849

2022-12-02T03:11:29.099637Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0x988250)) }) key.fmtid=D8570091-AF3F-4615-9FAA-A24845D10936 key.pid=0}: sbz_switch::media: new
2022-12-02T03:11:29.099743Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0x988250)) }) key.fmtid=D8570091-AF3F-4615-9FAA-A24845D10936 key.pid=0}: sbz_switch::media: close time.busy=21.3µs time.idle=84.1µs
2022-12-02T03:11:29.099894Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0x988250)) }) key.fmtid=C949C6AA-132B-4511-BB1B-35261A2A6333 key.pid=0}: sbz_switch::media: new
2022-12-02T03:11:29.100034Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0x988250)) }) key.fmtid=C949C6AA-132B-4511-BB1B-35261A2A6333 key.pid=0 value="{7BFF1F7F-1D65-49A0-AE26-7903C41BC5B3}"}: sbz_switch::media: close time.busy=44.0µs time.idle=96.3µs

mdonoughe avatar Dec 02 '22 03:12 mdonoughe

Using the provided version:

SET RUST_LOG=trace

sbz-switch.exe watch
2022-12-03T01:19:07.972333Z TRACE new: sbz_switch::media: new
2022-12-03T01:19:07.977294Z TRACE new: sbz_switch::media: close time.busy=4.84ms time.idle=142µs
2022-12-03T01:19:07.977454Z TRACE get_default_audio_endpoint{self=DeviceEnumerator(ComObject { inner: IMMDeviceEnumerator(IUnknown(0xcbd668)) })}: sbz_switch::media: new
2022-12-03T01:19:07.981015Z TRACE get_default_audio_endpoint{self=DeviceEnumerator(ComObject { inner: IMMDeviceEnumerator(IUnknown(0xcbd668)) })}: sbz_switch::media: close time.busy=3.48ms time.idle=76.9µs
2022-12-03T01:19:07.981133Z TRACE id{self=Endpoint { device: ComObject { inner: IMMDevice(IUnknown(0xc54538)) } }}: sbz_switch::media: new
2022-12-03T01:19:07.981240Z TRACE id{self=Endpoint { device: ComObject { inner: IMMDevice(IUnknown(0xc54538)) } }}: sbz_switch::media: close time.busy=22.4µs time.idle=83.4µs
2022-12-03T01:19:07.981345Z TRACE property_store{self=Endpoint { device: ComObject { inner: IMMDevice(IUnknown(0xc54538)) } }}: sbz_switch::media: new
2022-12-03T01:19:07.981486Z TRACE property_store{self=Endpoint { device: ComObject { inner: IMMDevice(IUnknown(0xc54538)) } }}: sbz_switch::media: close time.busy=54.3µs time.idle=85.5µs
2022-12-03T01:19:07.981609Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0xc652e0)) }) key.fmtid=D8570091-AF3F-4615-9FAA-A24845D10936 key.pid=0}: sbz_switch::media: new
2022-12-03T01:19:07.981727Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0xc652e0)) }) key.fmtid=D8570091-AF3F-4615-9FAA-A24845D10936 key.pid=0}: sbz_switch::media: close time.busy=37.6µs time.idle=79.9µs
2022-12-03T01:19:07.981845Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0xc652e0)) }) key.fmtid=C949C6AA-132B-4511-BB1B-35261A2A6333 key.pid=0}: sbz_switch::media: new
2022-12-03T01:19:07.981946Z TRACE get_string_value{self=PropertyStore(ComObject { inner: IPropertyStore(IUnknown(0xc652e0)) }) key.fmtid=C949C6AA-132B-4511-BB1B-35261A2A6333 key.pid=0}: sbz_switch::media: close time.busy=18.2µs time.idle=82.7µs
2022-12-03T01:19:07.982699Z ERROR sbz_switch: Unexpected error error=SoundCore not supported

Anduin1357 avatar Dec 03 '22 01:12 Anduin1357

"{0.0.0.00000000}.{88db5ddc-9d0b-4d9d-9906-ba14f2837b90}" isn't the only device in the device list, right? Is your default device the SPDIF-Out interface? With Sound Blaster Z it shows up as two interfaces and only one of them works. I don't know what Creative does to determine the correct endpoint for both the case where you have multiple interfaces for the same device and when you have supported multiple devices.

Try this build and try passing --device "{0.0.0.00000000}.{88db5ddc-9d0b-4d9d-9906-ba14f2837b90}", assuming that's the ID of the interface with description "Speakers". The last build had a bug where the device parameter could not be used.

https://github.com/mdonoughe/sbz-switch/suites/9658999674/artifacts/462105170

mdonoughe avatar Dec 04 '22 19:12 mdonoughe