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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -