> Hi All,
>
> Has anyone come across a way of detecting when an AudioPlayer has
> finished playing it's input stream ? I could subclass the input stream
> to detect this, but there might me a more elegant solution.
>
> Thanks
>
>
> Jerry T
Well you know that AudioPlayer plays onlu sun audio files at 8000Hz.
You can find out the length of the audio clip by getting the size of the file or
from the side of the AudioData's buffer.
Therefore you can predict the time that a sample will finish playing.
Have a FuNkiNG good time
Peter
--
import java.std.disclaimer.*; // "Dontcha just love the API, baby bop!"
-+=+- Thank FuNk it's FriDAY -+=+-
Peter Pilgrim Dept:OTC Derivatives IT,
Deutsche Bank (UK) Ltd, Groundfloor 133 Houndsditch, London, EC3A 7DX
Tel: +44-545-8000 Direct: +44 (0)171-545-9977 Fax: 0171-545-4313
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-