Jump to content

SoundPlay Help


Recommended Posts

Hi,

Is there a way for me to play sound continously using Soundplay or how will I detect when a song is finish playing?

Anyone any clue? :)

[font="Arial"]Thanks[/font]
If @error = me Then $sorry
Else
   Do
      $clarifyMe
   Until $meClear
EndIF
MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever)
Link to comment
Share on other sites

Hi,

Is there a way for me to play sound continously using Soundplay or how will I detect when a song is finish playing?

Anyone any clue?  :)

<{POST_SNAPBACK}>

DLLCall? Probably something in kernel32.dll (just guessing here)

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
Share on other sites

not the kernel32.dll

i'll look it up for ya.

do u use mcicommands to play the sound??

there allot better

EDIT:

MM... i haven't really found a way to see this, but you might just use the check speed command.

if its higher then 0 then it plays :)

Edited by zeroZshadow
*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
Link to comment
Share on other sites

MM... i haven't really found a way to see this, but you might just use the check speed command.

if its higher then 0 then it plays

Ya, I have downloaded your media player source but there is no functions/example that allows me to check the speed.

Do you mind guiding me where and how to get the reference for the mcisendstring functions for winmm and how you actually but it into use with autoit.

Func mciSendString($string)
   Local $ret
   $ret = DllCall("winmm.dll","int","mciSendString","str",$string,"str","","int",65534,"hwnd",0)
   If Not @error Then Return $ret[2]
EndFunc
Func _Exit()
    mciSendString("Close myvideo")
    Exit
EndFunc

I suppose that the $string you send to DLLCall is the command for your media player but what I don't understand is that how that command string being pass to the mcisendstring function and get something to be done and what are the options of command strings available for us to use.

[font="Arial"]Thanks[/font]
If @error = me Then $sorry
Else
   Do
      $clarifyMe
   Until $meClear
EndIF
MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever)
Link to comment
Share on other sites

http://msdn.microsoft.com/library/default....and_strings.asp

here are ALL the commands you can send.

if you still don't get it pm me, mail me, or msn me :)

EXAMPLE:

mciSendString(status mymusic forward)

"Returns TRUE if the play direction is forward or if the device is not playing."

*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
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...