All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.farng.mp3.id3.FrameBodyRVA2 Maven / Gradle / Ivy

Go to download

This library reads song information, such as song title, artist, and album, from an MP3 file. It supports ID3v1, ID3v1.1, Lyrics3v1, Lyrics3v2, ID3v2.2, ID3v2.3, and ID3v2.4 tags. MP3 Frame Headers can also be read. There is a FilenameTag, a ID3v2.4 tag that is intelligently derived from the file name. It contains tag synchronization utilities, multiple save options, and easy tag conversion methods.

The newest version!
package org.farng.mp3.id3;

/**
 * 

4.11.   Relative volume adjustment (2)

*

*

   This is a more subjective frame than the previous ones. It allows the
   user to say * how much he wants to increase/decrease the volume on each
   channel when the file is played. The * purpose is to be able to align
*

*    all files to a reference volume, so that you don't have to change the
   volume * constantly. This frame may also be used to balance adjust the
   audio. The volume adjustment is * encoded as a fixed point decibel
   value, 16 bit signed integer representing (adjustment*512), * giving
   +/- 64 dB with a precision of 0.001953125 dB. E.g. +2 dB is stored as
*

*    $04 00 and -2 dB is $FC 00. There may be more than one "RVA2" frame
   in each * tag, but only one with the same identification string.

*

*

     <Header for 'Relative volume adjustment (2)', ID: "RVA2">
*      *

* Identification          <text string> $00

*

*

   The 'identification' string is used to identify the situation and/or
   device where * this adjustment should apply. The following is then
   repeated for every channel

*

*

     Type of channel         $xx
*      Volume adjustment       $xx xx
     * Bits representing peak  $xx
*

*      Peak volume             $xx (xx * ...)

*

*

   Type of channel:  $00  Other
                     *

* $01  Master volume
                     * $02  Front right
                     * $03  Front left
*

*                      * $04  Back right
                     * $05  Back left
                     * $06  Front centre
*

*                      * $07  Back centre
                     * $08  Subwoofer

*

*

   Bits representing peak can be any number between 0 and 255. 0 means
*

*    that there is no peak volume field. The peak volume field is always
   padded to whole * bytes, setting the most significant bits to zero.

* * @author Eric Farng * @version $Revision: 1.3 $ */ public class FrameBodyRVA2 extends AbstractID3v2FrameBody { /** * Creates a new FrameBodyRVA2 object. */ public FrameBodyRVA2() { super(); } /** * Creates a new FrameBodyRVA2 object. */ public FrameBodyRVA2(final FrameBodyRVA2 body) { super(body); } protected void setupObjectList() { throw new UnsupportedOperationException("This frame has not been implemented."); } public String getIdentifier() { throw new UnsupportedOperationException("This frame has not been implemented."); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy