[Implemented] Sound playback detection

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
eevee
User
User
Posts: 69
Joined: Sat Jan 08, 2005 6:24 pm
Location: UK

[Implemented] Sound playback detection

Post by eevee »

I notice that the last time this was formally requested was in December and there was no response, even though it has been mentioned on various other boards.

Request:- A means of detecting whether a sound is currently playing.

Probably format: Result=IsPlaying(#Sound) or IsPlaying()

Affecting:- Windows and Linux

I have been playing about with IsSound and InitSound to see if there is a workaround to this requirement with no success.

My need is based on the following.

I show a picture with a descriptive caption. Sometimes the description needs to be beyond the four or five lines of caption text. It makes sense that this should be a sound track. Obviously user input (to change slides) needs to be inhibited until the sound track has played in full.

One solution is to time the soundtracks and set the appropriate delay. However since a system could have a few hundred soundtracks this would be rather tedious to do.
Regards,

Ernest
User avatar
HeX0R
Addict
Addict
Posts: 1187
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Post by HeX0R »

traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

Sorry, but this is Windows-Only
Good programmers don't comment their code. It was hard to write, should be hard to read.
Post Reply