Commit 86a9321
committed
Add range start and end properties in milliseconds into
Range `start` and `end` values in `mpd_song` is stored in seconds only,
which makes range times in `ProxySong` truncated to seconds and leads to
precision loss on satellite cue track range times.
This commit adds `start_ms` and `end_ms` properties to store range start
and end times in milliseconds, and corresponding functions to access
them: `mpd_song_get_start_ms`, `mpd_song_get_end_ms`. The values are
parsed from float time values returned by mpd server.mpd_song
1 parent eef2dde commit 86a9321
3 files changed
+56
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
140 | 148 | | |
141 | 149 | | |
142 | 150 | | |
| |||
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
150 | 166 | | |
151 | 167 | | |
152 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
369 | 370 | | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
88 | 101 | | |
89 | 102 | | |
90 | 103 | | |
| |||
147 | 160 | | |
148 | 161 | | |
149 | 162 | | |
| 163 | + | |
150 | 164 | | |
| 165 | + | |
151 | 166 | | |
152 | 167 | | |
153 | 168 | | |
| |||
230 | 245 | | |
231 | 246 | | |
232 | 247 | | |
| 248 | + | |
233 | 249 | | |
| 250 | + | |
234 | 251 | | |
235 | 252 | | |
236 | 253 | | |
| |||
396 | 413 | | |
397 | 414 | | |
398 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
399 | 424 | | |
400 | 425 | | |
401 | 426 | | |
| |||
404 | 429 | | |
405 | 430 | | |
406 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
407 | 440 | | |
408 | 441 | | |
409 | 442 | | |
| |||
508 | 541 | | |
509 | 542 | | |
510 | 543 | | |
| 544 | + | |
511 | 545 | | |
512 | 546 | | |
513 | 547 | | |
| 548 | + | |
514 | 549 | | |
515 | 550 | | |
516 | 551 | | |
517 | 552 | | |
518 | | - | |
| 553 | + | |
519 | 554 | | |
| 555 | + | |
| 556 | + | |
520 | 557 | | |
521 | 558 | | |
522 | 559 | | |
| |||
0 commit comments