Thema: Delphi BASS_ChannelIsActive

Einzelnen Beitrag anzeigen

Nils_13

Registriert seit: 15. Nov 2004
2.647 Beiträge
 
#4

Re: BASS_ChannelIsActive

  Alt 11. Feb 2006, 12:21
@alcaeus: Die If-Abfrage muss sein.
@Daniel:
Genau das läuft nicht, muss aber unbedingt laufen, ich muss überprüfen, ob gerade abgespielt wird.
Falls ich dich richtig verstanden habe:
Zitat:
Checks if a sample, stream, or MOD music is active (playing) or stalled. Can also check if a recording is in progress.

DWORD WINAPI BASS_ChannelIsActive(
DWORD handle
);


Parameters
handle The channel handle... a HCHANNEL / HMUSIC / HSTREAM / HRECORD handle.


Return value
The return value is one of the folowing.
BASS_ACTIVE_STOPPED The channel is not active, or handle is not a valid channel.
BASS_ACTIVE_PLAYING The channel is playing (or recording).
BASS_ACTIVE_PAUSED The channel is paused.
BASS_ACTIVE_STALLED Playback of the stream has been stalled due to there not being enough sample data to continue playing. The playback will automatically resume once there's sufficient data to do so.


Remarks
When using this function with a decoding channel, BASS_ACTIVE_PLAYING will be returned while there is still data to decode. Once the end has been reached, BASS_ACTIVE_STOPPED will be returned. BASS_ACTIVE_STALLED is never returned for decoding channels - you can tell a decoding channel is stalled if BASS_ChannelGetData returns less data than requested, and this function still returns BASS_ACTIVE_PLAYING.
  Mit Zitat antworten Zitat