OK,
In the full framework you may give the time to some other thread, as far as
I remember it's by Thread.Sleep(0). What if you do this just before you
play?
Best regards,
Henrik Dahl
"Dom" <(E-Mail Removed)> wrote in message
news:%23rI$(E-Mail Removed)...
> Sadly no luck Henrik. It's as smooth as anything so long as I don't use
> sounds :0(
> Dom
>
> "Henrik Dahl" <(E-Mail Removed)> wrote in message
> news:u3#(E-Mail Removed)...
> > Dom,
> >
> > Try to initiate the garbage collector just before, so it will not
succeed
> in
> > anything while this is going on.
> >
> >
> > Best regards,
> >
> > Henrik Dahl
> >
> > "Dom" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hello Steven,
> > > Yep that is identical to my Play Sound command. Also I tried threading
> but
> > > with no luck. It is only a small delay when a sound is played but it
is
> > > noticeable and makes it look extremely amateurish. Any other ideas
> > welcome.
> > > Thanks,
> > > Dom
> > > "Steven Licciardi" <(E-Mail Removed)> wrote in
> > > message news:(E-Mail Removed)...
> > > > Are you playing it asynchronously using something like:
> > > >
> > > > PlaySound(bstr, IntPtr.Zero, SND_ASYNC Or SND_MEMORY)
> > > >
> > > > Or are you still getting the delay doing it this way?
> > > > Steven
> > > >
> > > > "Dom" <(E-Mail Removed)> wrote in message
> > > > news:(E-Mail Removed)...
> > > > > As ever you are a shining light Chris ! I take it using threads
will
> > > cure
> > > > > the issue ? That is fantastic.
> > > > > Thanks,
> > > > > Dom
> > > > > "Chris Tacke, eMVP" <(E-Mail Removed)> wrote in
message
> > > > > news:#(E-Mail Removed)...
> > > > > > Are you playing the sounds on a separate thread?
> > > > > >
> > > > > > --
> > > > > > Chris Tacke, eMVP
> > > > > > Advisory Board Member
> > > > > > www.OpenNETCF.org
> > > > > > ---
> > > > > > Windows CE Product Manager
> > > > > > Applied Data Systems
> > > > > > www.applieddata.net
> > > > > >
> > > > > >
> > > > > > "Dom" <(E-Mail Removed)> wrote in message
> > > > > > news:%23%(E-Mail Removed)...
> > > > > > > I'm playing sounds from memory but they're causing my game's
> > > graphics
> > > > to
> > > > > > > pause. Does anybody know how to get around this ?
> > > > > > > Thanks,
> > > > > > > Dom
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>