Commit 8fdd025
committed
opus: move EbuR128 -> ReplayGain to OpusTags
Logically, the offset belongs to the conversion of Opus Ebu R128 metadata
to the internal ReplayGain structures.
Movin the code does not change change the logic at all (as addition is
commutative), but by moving the conversion closer to the source of the
data and avoiding EBU R128-scaled data as far as possible, I hope to
reduce the chance of future logic errors.1 parent 2dbf8a4 commit 8fdd025
2 files changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 50 | | |
62 | 51 | | |
63 | 52 | | |
| |||
282 | 271 | | |
283 | 272 | | |
284 | 273 | | |
285 | | - | |
| 274 | + | |
| 275 | + | |
286 | 276 | | |
287 | | - | |
| 277 | + | |
288 | 278 | | |
289 | | - | |
| 279 | + | |
290 | 280 | | |
291 | 281 | | |
292 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
20 | 31 | | |
21 | 32 | | |
22 | 33 | | |
| |||
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
50 | | - | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
57 | | - | |
| 68 | + | |
58 | 69 | | |
59 | 70 | | |
60 | 71 | | |
| |||
0 commit comments