| 1 | package org.farng.mp3.id3; |
| 2 | |
| 3 | /** |
| 4 | * <h3>4.11. Relative volume adjustment (2)</h3> |
| 5 | * <p/> |
| 6 | * <p> This is a more subjective frame than the previous ones. It allows the<br> user to say |
| 7 | * how much he wants to increase/decrease the volume on each<br> channel when the file is played. The |
| 8 | * purpose is to be able to align<br> |
| 9 | * <p/> |
| 10 | * all files to a reference volume, so that you don't have to change the<br> volume |
| 11 | * constantly. This frame may also be used to balance adjust the<br> audio. The volume adjustment is |
| 12 | * encoded as a fixed point decibel<br> value, 16 bit signed integer representing (adjustment*512), |
| 13 | * giving<br> +/- 64 dB with a precision of 0.001953125 dB. E.g. +2 dB is stored as<br> |
| 14 | * <p/> |
| 15 | * $04 00 and -2 dB is $FC 00. There may be more than one "RVA2" frame<br> in each |
| 16 | * tag, but only one with the same identification string.</p> |
| 17 | * <p/> |
| 18 | * <p> <Header for 'Relative volume adjustment (2)', ID: "RVA2"><br> |
| 19 | * |
| 20 | * <p/> |
| 21 | * Identification <text string> $00</p> |
| 22 | * <p/> |
| 23 | * <p> The 'identification' string is used to identify the situation and/or<br> device where |
| 24 | * this adjustment should apply. The following is then<br> repeated for every channel</p> |
| 25 | * <p/> |
| 26 | * <p> Type of channel $xx<br> |
| 27 | * Volume adjustment $xx xx<br> |
| 28 | * Bits representing peak $xx<br> |
| 29 | * <p/> |
| 30 | * Peak volume $xx (xx |
| 31 | * ...)<br> </p> |
| 32 | * <p/> |
| 33 | * <p> Type of channel: $00 Other<br> |
| 34 | * <p/> |
| 35 | * $01 Master volume<br> |
| 36 | * $02 Front right<br> |
| 37 | * $03 Front left<br> |
| 38 | * <p/> |
| 39 | * |
| 40 | * $04 Back right<br> |
| 41 | * $05 Back left<br> |
| 42 | * $06 Front centre<br> |
| 43 | * <p/> |
| 44 | * |
| 45 | * $07 Back centre<br> |
| 46 | * $08 Subwoofer</p> |
| 47 | * <p/> |
| 48 | * <p> Bits representing peak can be any number between 0 and 255. 0 means<br> |
| 49 | * <p/> |
| 50 | * that there is no peak volume field. The peak volume field is always<br> padded to whole |
| 51 | * bytes, setting the most significant bits to zero.<br> </p> |
| 52 | * |
| 53 | * @author Eric Farng |
| 54 | * @version $Revision: 1.3 $ |
| 55 | */ |
| 56 | public class FrameBodyRVA2 extends AbstractID3v2FrameBody { |
| 57 | |
| 58 | /** |
| 59 | * Creates a new FrameBodyRVA2 object. |
| 60 | */ |
| 61 | public FrameBodyRVA2() { |
| 62 | super(); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Creates a new FrameBodyRVA2 object. |
| 67 | */ |
| 68 | public FrameBodyRVA2(final FrameBodyRVA2 body) { |
| 69 | super(body); |
| 70 | } |
| 71 | |
| 72 | protected void setupObjectList() { |
| 73 | throw new UnsupportedOperationException("This frame has not been implemented."); |
| 74 | } |
| 75 | |
| 76 | public String getIdentifier() { |
| 77 | throw new UnsupportedOperationException("This frame has not been implemented."); |
| 78 | } |
| 79 | } |