getid3_mp3::XingVBRidOffset() –

You appear to be a bot. Output may be restricted

Description

Usage

$int = getid3_mp3::XingVBRidOffset( $version, $channelmode );

Parameters

$version
( string ) required
$channelmode
( string ) required

Returns

int

Source

File name: wordpress/wp-includes/ID3/module.audio.mp3.php
Lines:

1 to 25 of 25
  public static function XingVBRidOffset($version, $channelmode) {
    static $XingVBRidOffsetCache = array();
    if (empty($XingVBRidOffsetCache)) {
      $XingVBRidOffsetCache = array (
        '1'   => array ('mono'          => 0x15, // 4 + 17 = 21
                'stereo'        => 0x24, // 4 + 32 = 36
                'joint stereo'  => 0x24,
                'dual channel'  => 0x24
                 ),

        '2'   => array ('mono'          => 0x0D, // 4 +  9 = 13
                'stereo'        => 0x15, // 4 + 17 = 21
                'joint stereo'  => 0x15,
                'dual channel'  => 0x15
                 ),

        '2.5' => array ('mono'          => 0x15,
                'stereo'        => 0x15,
                'joint stereo'  => 0x15,
                'dual channel'  => 0x15
                 )
      );
    }
    return $XingVBRidOffsetCache[$version][$channelmode];
  }
 

 View on GitHub View on Trac