Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes, actions will break because of changes in the audio device #1395

Open
shodanx2 opened this issue Jun 17, 2023 · 2 comments
Open

Sometimes, actions will break because of changes in the audio device #1395

shodanx2 opened this issue Jun 17, 2023 · 2 comments

Comments

@shodanx2
Copy link

Summary

Sometimes the action break

Instead of the correct audio device name it becomes a bunch of numbers

image

image

Here is the export config file (made readable by chatgpt)

<?xml version="1.0" encoding="utf-16"?>
<ArrayOfEarTrumpetAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <EarTrumpetAction>
        <DisplayName>Output to Headphones</DisplayName>
        <Id>e3c178b2-a1f6-45b0-8d2b-96be51621584</Id>
        <Triggers>
            <BaseTrigger xsi:type="HotkeyTrigger">
                <Option>
                    <Modifiers>Control Alt</Modifiers>
                    <Key>F11</Key>
                </Option>
            </BaseTrigger>
        </Triggers>
        <Conditions />
        <Actions>
            <BaseAction xsi:type="SetDefaultDeviceAction">
                <Device>
                    <Id>{0.0.0.00000000}.{e1f09169-f125-4b5d-b670-00f79bc00a23}</Id>
                    <Kind>Playback</Kind>
                </Device>
            </BaseAction>
        </Actions>
    </EarTrumpetAction>
    <EarTrumpetAction>
        <DisplayName>Output to TV</DisplayName>
        <Id>2729de3a-9bad-489d-9f4a-21b4ad0f6023</Id>
        <Triggers>
            <BaseTrigger xsi:type="HotkeyTrigger">
                <Option>
                    <Modifiers>Control Alt</Modifiers>
                    <Key>F10</Key>
                </Option>
            </BaseTrigger>
        </Triggers>
        <Conditions />
        <Actions>
            <BaseAction xsi:type="SetDefaultDeviceAction">
                <Device>
                    <Id>{0.0.0.00000000}.{b4325dcd-91e4-497e-a5d4-c7d75d0040e8}</Id>
                    <Kind>Playback</Kind>
                </Device>
            </BaseAction>
        </Actions>
    </EarTrumpetAction>
</ArrayOfEarTrumpetAction>

eartrump broken config.zip

I have now fixed the config, here is the fixed config

<?xml version="1.0" encoding="utf-16"?>
<ArrayOfEarTrumpetAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <EarTrumpetAction>
        <DisplayName>Output to TV</DisplayName>
        <Id>2729de3a-9bad-489d-9f4a-21b4ad0f6023</Id>
        <Triggers>
            <BaseTrigger xsi:type="HotkeyTrigger">
                <Option>
                    <Modifiers>Control Alt</Modifiers>
                    <Key>F10</Key>
                </Option>
            </BaseTrigger>
        </Triggers>
        <Conditions />
        <Actions>
            <BaseAction xsi:type="SetDefaultDeviceAction">
                <Device>
                    <Id>{0.0.0.00000000}.{25532276-c6b6-421e-ab78-3520e77eda3f}</Id>
                    <Kind>Playback</Kind>
                </Device>
            </BaseAction>
        </Actions>
    </EarTrumpetAction>
    <EarTrumpetAction>
        <DisplayName>Output to Headphones</DisplayName>
        <Id>e3c178b2-a1f6-45b0-8d2b-96be51621584</Id>
        <Triggers>
            <BaseTrigger xsi:type="HotkeyTrigger">
                <Option>
                    <Modifiers>Control Alt</Modifiers>
                    <Key>F11</Key>
                </Option>
            </BaseTrigger>
        </Triggers>
        <Conditions />
        <Actions>
            <BaseAction xsi:type="SetDefaultDeviceAction">
                <Device>
                    <Id>{0.0.0.00000000}.{e1f09169-f125-4b5d-b670-00f79bc00a23}</Id>
                    <Kind>Playback</Kind>
                </Device>
            </BaseAction>
        </Actions>
    </EarTrumpetAction>
</ArrayOfEarTrumpetAction>

eartrump fixed config.zip

So it seems that the device ID changed

From {0.0.0.00000000}.{b4325dcd-91e4-497e-a5d4-c7d75d0040e8}
To   {0.0.0.00000000}.{25532276-c6b6-421e-ab78-3520e77eda3f}

I don't know why my monitor, which is plugged in the same HDMI port as before, and is the same monitor as before, now has a new device ID.

I believe this could be fixed if eartrumpet also remembered the device name as backup.
Of course, if you have multiple devices with the same name, it would not be very helpful and you would still want to address them by device ID. But if the device ID ceased to exist, now you could fall back searching for the device by name !

Note : please make ABOUT dialog copy pastable !

Steps to reproduce

I don't know what triggers this issue.

A monitor being added ?

My valve index getting connected in another usb port ?

EarTrumpet version

2.2.2.39

Windows version

10.0.19045.3086

Additional information

No response

@riverar

This comment was marked as outdated.

@riverar riverar closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2023
@riverar riverar reopened this Jun 21, 2023
@riverar
Copy link
Contributor

riverar commented Jun 21, 2023

I was a bit too hasty there. This is actions specific and tied to device IDs changing, so a bit different!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants