1. continuous sound in win32lib

How can I make continuous sound with win32lib? For example, music for a 
game. I can use playSound(wave file) but but how can I get it to play 
continuously while other things are happening?

Jerry Story

new topic     » topic index » view message » categorize

2. Re: continuous sound in win32lib

...have you tried the SND_LOOP, and SND_ASYNC flags ?
( 8, and  1  blink )
To stop, call playSound() with a null file-name...
If you're using win32lib, you'll have to 'wrap' your own call to
xPlaySound(), to change it's 'default' flag, I'd guess.
...or look at my Nagdemo 'antique' in the archives, if it still works: ?

new topic     » goto parent     » topic index » view message » categorize

3. Re: continuous sound in win32lib

----- Original Message ----- 
From: "Jerry Story" <jstory at edmc.net>
To: "EUforum" <EUforum at topica.com>
Subject: RE: continuous sound in win32lib


> 
> 
> Wolf wrote:
> > 
> > 
> > ...have you tried the SND_LOOP, and SND_ASYNC flags ?
> > ( 8, and  1  blink )
> > To stop, call playSound() with a null file-name...
> > If you're using win32lib, you'll have to 'wrap' your own call to
> > xPlaySound(), to change it's 'default' flag, I'd guess.

This is true. I'll enhance that routine and post an updated version.

> > ...or look at my Nagdemo 'antique' in the archives, if it still works: ?
> 
> 1. What, who are those SND_LOOP and SND_ASYNC flags?

...with all the flags... 

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu