In the attached version it should work.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
AudioEndpoint
Re: AudioEndpoint
I'm sorry, you are totally right... I think you found a bug here, thank you 
In the attached version it should work.
In the attached version it should work.
- Attachments
-
- __init__.py
- v1.21
- (5.39 KiB) Downloaded 228 times
Re: AudioEndpoint
Working now, but with one more caveat: One of my devices is disabled, and the plugin just dumps an error when I try to switch to it. Could you add a way to test whether or not a device is available? Or, alternately, maybe just add a "Switch to next audio device" and a "Switch to previous audio device" action with the appropriate checks so users don't have to roll their own solutions?
/bw
Re: AudioEndpoint
New version!
v1.4:
-Added guid
-Added action "Get Default Audio Render"
-Added action "Next Default Audio Render"
-Added action "Previous Default Audio Render"
v1.4:
-Added guid
-Added action "Get Default Audio Render"
-Added action "Next Default Audio Render"
-Added action "Previous Default Audio Render"
It does check it actually - you are not getting a stack trace, do you?but with one more caveat: One of my devices is disabled, and the plugin just dumps an error when I try to switch to it. Could you add a way to test whether or not a device is available?
Re: AudioEndpoint
It was a friendly "print"ed error message from the plugin without a stack trace. In any case, totally irrelevant now with the new actions. Everything is working great. Cheers!
/bw
Re: AudioEndpoint
OK, that's what I thought, in this case the function call for SetRender returns False. It returns True if no error appears.
Thank you!
Thank you!
Re: AudioEndpoint
Awesome. Can you also add an action for "Next Default Communications Device" ? Maybe same for microphones as well?
Re: AudioEndpoint
No, I'm afraid not... I don't know how to do that.
-
Bostrolicious
- Posts: 8
- Joined: Sat Jan 30, 2016 8:57 am
Re: AudioEndpoint
This seems like an excellent plugin! I'm having trouble getting it to work with unicode characters, though. If I drag an event containing an "├Â" (like the Swedish word for "speaker" unfortunately does), I get the error messages below. It works perfectly for the one audio device I have that only contains ascii characters. I don't think it's related to my system (but I could be wrong), because I've tried dragging events containing "├Â" from another plugin with no problems.
Is there anything that can be done to fix this on my part?
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\LogCtrl.py", line 153, in OnStartDrag
customData.SetData(text.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 41: ordinal not in range(128)
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\LogCtrl.py", line 153, in OnStartDrag
customData.SetData(text.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 38: ordinal not in range(128)
Is there anything that can be done to fix this on my part?
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\LogCtrl.py", line 153, in OnStartDrag
customData.SetData(text.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 41: ordinal not in range(128)
Traceback (most recent call last) (1710):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\LogCtrl.py", line 153, in OnStartDrag
customData.SetData(text.encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 38: ordinal not in range(128)
Re: AudioEndpoint
Hmm, how does the event in the log look like, do you actually see the ├Â?
-
Bostrolicious
- Posts: 8
- Joined: Sat Jan 30, 2016 8:57 am
Re: AudioEndpoint
Yes, I see it. An example of the events when I switch devices:
AudioEndpoint.Default.Render.Multimedia.H├Âgtalare (2- High Definition Audio Device) ['{0.0.0.00000000}.{fe368bf2-e1c9-4e50-98bc-12bdbbbc7299}']
AudioEndpoint.Default.Render.Console.H├Âgtalare (2- High Definition Audio Device) ['{0.0.0.00000000}.{fe368bf2-e1c9-4e50-98bc-12bdbbbc7299}']
AudioEndpoint.Default.Render.Multimedia.H├Âgtalare (2- High Definition Audio Device) ['{0.0.0.00000000}.{fe368bf2-e1c9-4e50-98bc-12bdbbbc7299}']
AudioEndpoint.Default.Render.Console.H├Âgtalare (2- High Definition Audio Device) ['{0.0.0.00000000}.{fe368bf2-e1c9-4e50-98bc-12bdbbbc7299}']
-
Bostrolicious
- Posts: 8
- Joined: Sat Jan 30, 2016 8:57 am
Re: AudioEndpoint
Problem solved. I tested both the events and the "set" action, and everything seems to work fine. Thanks a lot!
Re: AudioEndpoint
Hi there, it's a great addon since i was fiddling around with an external tool wich caused me trouble 
btw. is there a way to play a sound into a specific soundcard output?
in my case a used a very dirty hack to record+replay 433Mhz remote signals just by soldering a transciever pair to a cheap usb soundcard.
http://rurandom.org/justintime/index.ph ... er_for_PCs
btw. is there a way to play a sound into a specific soundcard output?
in my case a used a very dirty hack to record+replay 433Mhz remote signals just by soldering a transciever pair to a cheap usb soundcard.
http://rurandom.org/justintime/index.ph ... er_for_PCs
Re: AudioEndpoint
Hi Yasuno,
that's an interesting use for a sound card
Wouldn't this work with IR signals as well?
At the moment I'm not aware of any possibility to play a specific audio file on a specific output device with EventGhost without a 3rd party tool.
Unfortunately it's not easy to program this (it is possible though), Pako did something similar as he created the intelliSpeech plugin.
What you can do: On most media player you can set a specific output, you can then use EventGhost to open audio files with that media player
You should make a post for that idea (using a soundcard as Transceiver) in the Feature Request Forum.
Me or someone else may pick it up some day and create a plugin for that.
that's an interesting use for a sound card
Wouldn't this work with IR signals as well?
At the moment I'm not aware of any possibility to play a specific audio file on a specific output device with EventGhost without a 3rd party tool.
Unfortunately it's not easy to program this (it is possible though), Pako did something similar as he created the intelliSpeech plugin.
What you can do: On most media player you can set a specific output, you can then use EventGhost to open audio files with that media player
You should make a post for that idea (using a soundcard as Transceiver) in the Feature Request Forum.
Me or someone else may pick it up some day and create a plugin for that.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: AudioEndpoint
Hi Sem;colon !
Today I looked in the task manager.
There I saw this:It is possible that it happened after several forced reboot EventGhost.
It would be possible to prevent multiple starting that program?
Pako
Today I looked in the task manager.
There I saw this:It is possible that it happened after several forced reboot EventGhost.
It would be possible to prevent multiple starting that program?
Pako
You know flattr ? You can 

