Jump to content

_Sound functions don't work anymore with mp3 !


Recommended Posts

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
Link to comment
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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...