player: send chunk tag to audio device

If a chunk contains a tag, send it to the audio output device.  Few
output plugins support this, e.g. shout has support for sending tags.
This commit is contained in:
Max Kellermann 2008-11-02 17:07:31 +01:00
parent aa9b31f1cf
commit 5183d85886

View File

@ -213,6 +213,9 @@ playChunk(struct music_chunk *chunk, const struct audio_format *format,
pc.elapsedTime = chunk->times;
pc.bitRate = chunk->bit_rate;
if (chunk->tag != NULL)
sendMetadataToAudioDevice(chunk->tag);
pcm_volume(chunk->data, chunk->length,
format, pc.softwareVolume);