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.

"Wait for completion" in PlaySound and long clips

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

"Wait for completion" in PlaySound and long clips

Post by Pako »

Option "Wait for completion" in action "Play Sound" works not properly.
I found alternative solution:
Instead action "Play Sound" I use action "System: Start Application".
I found four audio-players, which they have "auto-close" switch in command line:
1by1 (http://mpesch3.de1.cc/1by1.html)
AudioPlayer (http://audioplayer.sourceforge.net/)
Wv_player (http://www.webxpace.net/cgi-bin/countdo ... v_play.zip)
yPlay (http://www.spacejock.com/)
Every one works perfectly.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Could you please specify what exactly is not working?
My quick test with PlaySound did not show any oddities.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako »

For example this file: http://data2.edisk.cz/stahni/15231/wav9 ... .85MB.html
Tip: "STAHNOUT SOUBOR" = download.
Normal duration = 94 seconds.
Eventghost plays only cca 44 seconds.
I have also others examples.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

Confirmed.

This happens only for long WAVs, as the underlying wxPython function is only meant for short clips (such long clips seldom make sense with "wait for completion"). But since the action is also very limited because it can only play WAVs and not MP3 or other formats, I put this on the ToDo list. There are other DirectShow based functions in wxPython which might be better.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

I did some tests with alternative implementations and concluded, that a change is not worth the effort. As said before, playing such long clips with "wait for completion" seldom makes any sense. The action is only meant to play a short audio notice.

So I move this thread out of the bug-reports forum, as I regard it at most as a limited feature, but not a bug anymore.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Post by Pako »

These are examples of use of external applications:
1by1.exe
Image
AudioPlayer.exe
Image
wv_player.exe
Image
yPlay.exe
Image

Pako
Post Reply