BASS_StreamGetTags question

Started by Ingolf,

Ingolf

How (much) would getting tags with BASS_StreamGetTags every 1000ms affect network performance, while streaming from the internet.

I just want to show the playing track on the station directly, not every 10 seconds or so. Some event would be nice, but I think there isn't?

Ingolf

#3
Fixed it using this, my streaming channel is a decoding channel, so sync doesn't work. Can you tell me why that is?

function TBassPlayer.UpdateMetaTags: Boolean;
var
  P: PChar;
begin
  Result := FALSE;
  P := BASS_StreamGetTags(GetStreamHandle, BASS_TAG_META);
  if P <> FLastMeta then begin
    FLastMeta := P;
    DecodeTags(StrPas(P), FMetaTags);
    Result := TRUE;
  end;
end;

Ian @ un4seen

Decoding channels can't be played, so there's not really anything to sync, but I suppose "mixtime" syncs (which the meta sync is) could still be allowed - I'll look into it for the next release. In the meantime, retrieving tags takes practically no CPU, so what you're doing above is fine :)