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:
parent
aa9b31f1cf
commit
5183d85886
@ -213,6 +213,9 @@ playChunk(struct music_chunk *chunk, const struct audio_format *format,
|
|||||||
pc.elapsedTime = chunk->times;
|
pc.elapsedTime = chunk->times;
|
||||||
pc.bitRate = chunk->bit_rate;
|
pc.bitRate = chunk->bit_rate;
|
||||||
|
|
||||||
|
if (chunk->tag != NULL)
|
||||||
|
sendMetadataToAudioDevice(chunk->tag);
|
||||||
|
|
||||||
pcm_volume(chunk->data, chunk->length,
|
pcm_volume(chunk->data, chunk->length,
|
||||||
format, pc.softwareVolume);
|
format, pc.softwareVolume);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user