Script: "PlaySound" error

Moderator: Moderator Group

Script: "PlaySound" error

Postby rubendesnoo » Tue Apr 24, 2012 5:33 pm

Hi,

I made a customscript button with the message:
PlaySound,C:\song

Also I dit place a wav-file named: 'song'.

But this does not seem to work, am I doing something wrong maybe?

regards
Freelance interactive art production
The Netherlands
rubendesnoo@gmail.com

Widget Designer pro 4.0
rubendesnoo
 
Posts: 141
Joined: Thu Feb 17, 2011 4:10 pm
Location: Netherlands

Re: Script: "PlaySound" error

Postby Markus Zeppenfeld » Wed Apr 25, 2012 1:59 am

Hi Ruben,

using a wav-file would be the best as the MP3 (MPEG) codec is registered and used within PB.
Please try with:

PlaySound,C:\song.wav

You need to make sure which of multiple possible files (.wav / .mp3 / .doc) in your directory shall be used.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: Script: "PlaySound" error

Postby nickdiacre » Tue Nov 27, 2012 10:27 am

Hi there,

I'm having a similar problem, any suggestions...?

I'm trying to use a windows sound [from the media folder, to test] copied to the root [C:\]

Does anyone have any ideas?

Many thanks,

Nick
nickdiacre
 
Posts: 41
Joined: Tue May 19, 2009 8:15 pm

Re: Script: "PlaySound" error

Postby Markus Zeppenfeld » Tue Nov 27, 2012 10:56 am

Hi Nick,

as we figured out on the phone, your file was not a PCM wave file.
The windows sound c:\windows\tada.wav is always a good reference.

Markus
Markus Zeppenfeld
Senior Product Manager, Pandoras Box

"Have you tried turning it off and on again?" (from "The IT Crowd" / channel 4)
Markus Zeppenfeld
 
Posts: 824
Joined: Wed Mar 02, 2011 10:12 am
Location: Cologne - Germany

Re: Script: "PlaySound" error

Postby nickdiacre » Tue Nov 27, 2012 4:30 pm

Thanks, good solution! Many thanks...
nickdiacre
 
Posts: 41
Joined: Tue May 19, 2009 8:15 pm


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 22 guests

cron