Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5183d858
Commit
5183d858
authored
Nov 02, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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.
parent
aa9b31f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
player_thread.c
src/player_thread.c
+3
-0
No files found.
src/player_thread.c
View file @
5183d858
...
@@ -213,6 +213,9 @@ playChunk(struct music_chunk *chunk, const struct audio_format *format,
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment