Try loading the sound as a resource at compile time.
-BL
On 17 Feb 2002 at 23:21, Stein Nyg=E5rd wrote:
> Hi fellow-coders!
>
> I'm using
> PlaySound("mysound.wav", NULL, SND_FILENAME | SND_ASYNC);
> to play a rather large audiofile. The problem is that when I run my
> application straight after a reboot, the soundplaying is delayed. If the=
n
> run my app again, the sound plays nice 'n tight. I assume this i bacause=
the
> sound has to be loaded, and a program usually loads faster the second ti=
me
> you run it.
> Is there a way, that I can escape from this sad effect?
>
> Thanks!
>
> - stein
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|