🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages Started by bcb Sat, 11 Aug 2001 22:27
How to stop sound from playing when using Playsound() ?
#1242
Author: bcb
Date: Sat, 11 Aug 2001 22:27
7 lines
1083 bytes
Hello,

Just wondering if you start playing a sound using the Playsound function, Is
there any way to stop the playing? It seems that you have to wait till the
end of wav file.

Thanks.
Re: How to stop sound from playing when using Playsound() ?
#1245
Author: Mark Dutch
Date: Sun, 12 Aug 2001 03:22
8 lines
991 bytes
Leon,

Yes there is a way to stop the play:

	PlaySound(NULL, NULL, SND_RESOURCE);

Will do that for you.
Mark.
Re: How to stop sound from playing when using Playsound() ?
#1154
Author: bcb
Date: Mon, 13 Aug 2001 00:45
15 lines
1232 bytes
Thanks very much for helping Mark.

Will try out the code.I think it will work  :-)


Mark Dutch <markd@intermtech.com.au> wrote in message
news:3B75F687.21F11DEF@intermtech.com.au...
> Leon,
>
> Yes there is a way to stop the play:
>
> PlaySound(NULL, NULL, SND_RESOURCE);
>
> Will do that for you.
> Mark.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads