LIMITER Posted March 30, 2008 Share Posted March 30, 2008 (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 March 30, 2008 by LIMITER Link to comment Share on other sites More sharing options...
ludocus Posted March 30, 2008 Share Posted March 30, 2008 try re-installing autoit? Link to comment Share on other sites More sharing options...
LIMITER Posted March 30, 2008 Author Share Posted March 30, 2008 Already tried that ... Link to comment Share on other sites More sharing options...
weaponx Posted March 30, 2008 Share Posted March 30, 2008 You need to post the code so we have something to fix. Link to comment Share on other sites More sharing options...
LIMITER Posted March 30, 2008 Author Share Posted March 30, 2008 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 More sharing options...
ludocus Posted March 31, 2008 Share Posted March 31, 2008 with me mp3's work but the _SoundLength think doesn't work: CODESound 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now