Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
GeneralToolBar.BackColor Pin
Anonymous6-May-04 10:37
Anonymous6-May-04 10:37 
GeneralRe: ToolBar.BackColor Pin
Heath Stewart6-May-04 11:51
protectorHeath Stewart6-May-04 11:51 
QuestionAcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 8:35
TigerNinja_6-May-04 8:35 
AnswerRe: AcitveX equivalent in C# ? Pin
Heath Stewart6-May-04 8:40
protectorHeath Stewart6-May-04 8:40 
GeneralRe: AcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 10:08
TigerNinja_6-May-04 10:08 
GeneralRe: AcitveX equivalent in C# ? Pin
Heath Stewart6-May-04 10:26
protectorHeath Stewart6-May-04 10:26 
AnswerRe: AcitveX equivalent in C# ? Pin
TigerNinja_6-May-04 9:09
TigerNinja_6-May-04 9:09 
GeneralSound- Two Events at a time Pin
MeterMan6-May-04 8:14
MeterMan6-May-04 8:14 
Hi, I'm making a game and for some reason can't figure out how to play two sound events at the same time. I have a background playing but while it is playing another event can't seem to play. I know winmm.dll will not do it but i thought quartz.dll will.

here is what i have tried
public QuartzTypeLib.FilgraphManagerClass mc;
public QuartzTypeLib.FilgraphManagerClass froghop;

mc = new QuartzTypeLib.FilgraphManagerClass();
froghop = new QuartzTypeLib.FilgraphManagerClass();

QuartzTypeLib.FilgraphManager graphManager =
				new QuartzTypeLib.FilgraphManager();
			// QueryInterface for the IMediaControl interface:
			mc =(QuartzTypeLib.FilgraphManagerClass)graphManager;
			froghop =(QuartzTypeLib.FilgraphManagerClass)graphManager;


i then make a thread that has this
mc.RenderFile("whateverbackground.mp3");
mc.Run();


that works fine
but i also have a keydown event that i want to play the froghop
so i try inside the keydown
froghop.RenderFile("blah.mp3");
froghop.Run();


the problem is while the background is playing the froghop never runs. is there away around this? Cause i thought active X's quartz.dll did the trick but i guess not.


Win32newb
"Programming is like sex, make one mistake and you have to support it for a long time"
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 8:29
protectorHeath Stewart6-May-04 8:29 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 12:15
MeterMan6-May-04 12:15 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:53
protectorHeath Stewart6-May-04 17:53 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 17:58
MeterMan6-May-04 17:58 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 18:01
protectorHeath Stewart6-May-04 18:01 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 13:25
MeterMan6-May-04 13:25 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart6-May-04 17:57
protectorHeath Stewart6-May-04 17:57 
GeneralRe: Sound- Two Events at a time Pin
MeterMan6-May-04 19:46
MeterMan6-May-04 19:46 
GeneralRe: Sound- Two Events at a time Pin
Heath Stewart7-May-04 3:08
protectorHeath Stewart7-May-04 3:08 
GeneralDiffgram Updates Pin
MrJJKoolJ6-May-04 7:31
MrJJKoolJ6-May-04 7:31 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 7:45
Mazdak6-May-04 7:45 
GeneralRe: Diffgram Updates Pin
MrJJKoolJ6-May-04 8:30
MrJJKoolJ6-May-04 8:30 
GeneralRe: Diffgram Updates Pin
Mazdak6-May-04 8:36
Mazdak6-May-04 8:36 
Generalphp request Pin
Alex Getman6-May-04 6:09
Alex Getman6-May-04 6:09 
GeneralRe: php request Pin
Heath Stewart6-May-04 8:02
protectorHeath Stewart6-May-04 8:02 
GeneralRe: php request Pin
leppie6-May-04 9:13
leppie6-May-04 9:13 
GeneralRe: php request Pin
Alex Getman6-May-04 10:15
Alex Getman6-May-04 10:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.