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
9ac8f89b
Commit
9ac8f89b
authored
May 09, 2011
by
Qball Cow
Committed by
Max Kellermann
May 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cue_tag: show CUE track numbers
parent
c6a72a14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
NEWS
NEWS
+1
-0
cue_tag.c
src/cue/cue_tag.c
+9
-0
No files found.
NEWS
View file @
9ac8f89b
...
...
@@ -16,6 +16,7 @@ ver 0.17 (2011/??/??)
- shout: add possibility to set url
- roar: new output plugin for RoarAudio
* state_file: add option "restore_paused"
* cue: show CUE track numbers
ver 0.16.3 (2011/??/??)
...
...
src/cue/cue_tag.c
View file @
9ac8f89b
...
...
@@ -178,6 +178,15 @@ cue_tag(struct Cd *cd, unsigned tnum)
if
(
tag
==
NULL
)
return
NULL
;
/* Create a tag number */
tag_clear_items_by_type
(
tag
,
TAG_TRACK
);
char
convert_uinttostring
[
8
];
snprintf
(
convert_uinttostring
,
sizeof
(
convert_uinttostring
),
"%02d/%02d"
,
tnum
,
cd_get_ntrack
(
cd
));
tag_add_item
(
tag
,
TAG_TRACK
,
convert_uinttostring
);
tag
->
time
=
track_get_length
(
track
)
-
track_get_index
(
track
,
1
)
+
track_get_zero_pre
(
track
);
...
...
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