Page 1 of 1

OGG playing detection (Part 2)

Posted: Sun Feb 20, 2005 1:51 pm
by eevee
Having failed to get a response on my previous, I thought I would re-word the query.

Is there a simple mechanism to detect whether a sound is currently playing or whether it has finished?

In the absence of a command that can be used to achieve this, I thought perhaps there might be something one can PEEK?

I am using Screen Mode with no Windows or gadgets.

The solution should ideally work with Windows and Linux.

Re: OGG playing detection (Part 2)

Posted: Sun Feb 20, 2005 2:46 pm
by WolfgangS
eevee wrote:Having failed to get a response on my previous, I thought I would re-word the query.

Is there a simple mechanism to detect whether a sound is currently playing or whether it has finished?

In the absence of a command that can be used to achieve this, I thought perhaps there might be something one can PEEK?

I am using Screen Mode with no Windows or gadgets.

The solution should ideally work with Windows and Linux.
hmmm the Audiere library us using the method isPlaying(). But you need to create a audiere.so for youself if you are able to ...
take a look to my page ...

MFG
WolfgangS

Posted: Sun Feb 20, 2005 3:05 pm
by eevee
Hi WolfgangS

I am using Audiere as you may remember from previous threads where you have very kindly helped me in sorting out its Structures and Declarations.

However since my requirements are very basic, I have started playing about with the in-built OGG function.

With the beta release, these now work very well and would suit my application thus saving on the need to load and have available yet another library.

Incidentally the Ov:Lib also has an 'IsPlaying' command which also works very well. However I have not looked at Ov:Lib in any depth because the final target platform for my application will be Linux.