delphi - Delphi7, is it possible 2 mediaplayers play songs at the same time? -


i have 2 mediaplayers in program. first one, plays music. use mediaplayer2 add sound effects, example when move cursor on button:

procedure tform1.button1mousemove(sender: tobject; shift: tshiftstate; x,   y: integer);   var mouseup:string; begin mouseup:=extractfilepath(paramstr(0))+'sound effects\mouseupbutton.mp3';  mediaplayer2.filename:=mouseup; mediaplayer2.open; mediaplayer2.start; 

i tested , working, when there 1 mediaplayer....what should do? thank you


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -