Sign in to follow this  
Followers 0
LIMITER

_Sound functions don't work anymore with mp3 !

6 posts in this topic

#1 ·  Posted (edited)

For some reason, today, all _sound functions stopped working with mp3's ...

Wma's,wav's are working fine ...

What's the problem ?

P.S. - I used the script from the helpfile and it gives me an DRIVER ERROR and then the sound plays correctly (but that was a wav) ... Why ?

Edited by LIMITER

Share this post


Link to post
Share on other sites



try re-installing autoit?

Share this post


Link to post
Share on other sites

Already tried that ...

Share this post


Link to post
Share on other sites

You need to post the code so we have something to fix.

Share this post


Link to post
Share on other sites

When i open an mp3 file,the script works but has no sound,and when i open an wma,then the script works perfectly

Here's the code

#include <Sound.au3>

$file = FileOpenDialog("Sound test","","MP3 (*.mp3)|WMA (*.wma)|WAV (*.wav)")
$sound = _SoundOpen($file)
ConsoleWrite("Sound opened ! (@error = " & @error & " @extended = " & @extended & ")" & @CRLF)

_SoundPlay($sound)
ConsoleWrite("Playing sound ! (@error = " & @error & " @extended = " & @extended & ")" & @CRLF)
ConsoleWrite("Now waiting 10 seconds ! (@error = " & @error & " @extended = " & @extended & ")" & @CRLF)

For $i=1 To 10
    ConsoleWrite(_SoundPos($sound) & "/" & _SoundLength($sound) & @CRLF)
    If @error Then ConsoleWrite("!>Error ! (@error = " & @error & " @extended = " & @extended & ")" & @CRLF)
    Sleep(1000)
Next

_SoundClose($sound)
ConsoleWrite("Sound closed ! (@error = " & @error & " @extended = " & @extended & ")" & @CRLF)
Exit

Share this post


Link to post
Share on other sites

with me mp3's work but the _SoundLength think doesn't work:

CODE
Sound opened ! (@error = 0 @extended = 1)

Playing sound ! (@error = 0 @extended = 0)

Now waiting 10 seconds ! (@error = 0 @extended = 0)

00:00:00/00:00:00

00:00:01/00:00:00

00:00:02/00:00:00

00:00:03/00:00:00

00:00:04/00:00:00

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0