<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.xiph.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Decoy</id>
	<title>XiphWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xiph.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Decoy"/>
	<link rel="alternate" type="text/html" href="https://wiki.xiph.org/Special:Contributions/Decoy"/>
	<updated>2026-04-24T23:23:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Work_In_Progress&amp;diff=10540</id>
		<title>Work In Progress</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Work_In_Progress&amp;diff=10540"/>
		<updated>2009-09-06T18:38:11Z</updated>

		<summary type="html">&lt;p&gt;Decoy: the draft stuff has been settled, comments have been solicited, and while no formal decision has been made, the format has stabilised enough to stagnate for over two years&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &#039;&#039;&#039;General Usage:&#039;&#039;&#039;&lt;br /&gt;
** [[Metadata]]: Various types of Ogg metadata including the [[M3F]] (Multimedia Metadata Format) and [[XMLEmbedding]]&lt;br /&gt;
** [[MIME_Types_and_File_Extensions]]: MIME Types and file extensions for Ogg multimedia files&lt;br /&gt;
** [[Subtle]]: Subtitling tool for professional use that intends to support most subtitle formats including CMML and OggKate&lt;br /&gt;
** [[OggText]]: A generic media mapping for (discontinuous) text codecs into Ogg&lt;br /&gt;
** [[ROE]]: A description format for describing the tracks and languages etc. of an Ogg multitrack composition&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Compressed Codecs:&#039;&#039;&#039;&lt;br /&gt;
** [[Theora]] 1.1 &amp;quot;thusnelda&amp;quot;: improving compression efficiency while keeping compatibility, see [[Theora11Todo]]&lt;br /&gt;
** [[OggDirac]]: The &amp;quot;next-generation&amp;quot; wavelet based video codec, lossy or lossless &lt;br /&gt;
** [[OggCELT]]: A low-latency audio codec&lt;br /&gt;
** [[OggMNG]]: A mapping for encapsulating the MNG animation format in Ogg&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Uncompressed Codecs:&#039;&#039;&#039;&lt;br /&gt;
** [[OggKate]]: A codec for karaoke and text encapsulation in Ogg&lt;br /&gt;
** [[OggPCM]]: Uncompressed PCM audio, currently being implemented&lt;br /&gt;
** [[OggSpots]]: A mapping for encapsulating timed images in Ogg&lt;br /&gt;
** [[OggUVS]]: Uncompressed RGB and YUV video, under active development (preferred to OggRGB and OggYUV).&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Abandonware&#039;&#039;&#039; (nobody working on those as far as we know)&lt;br /&gt;
** [[Ghost]]: A &amp;quot;next-generation&amp;quot; audio codec (vapourware so far -- don&#039;t hold your breath)&lt;br /&gt;
** [[Oggless]]: Embedding Xiph codecs like Vorbis in containers other than Ogg&lt;br /&gt;
** [[IceShare]]: P2P content distribution&lt;br /&gt;
** [[OggPCM_Draft1]]: Original uncompressed PCM audio proposal&lt;br /&gt;
** [[OggRGB]]: Original uncompressed RGB video proposal&lt;br /&gt;
** [[OggWrit]]: Text phrase codec (e.g. subtitles)&lt;br /&gt;
** [[OggYUV]]: Original uncompressed YUV video proposal&lt;br /&gt;
&lt;br /&gt;
[[Category:Developers stuff]]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=10539</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=10539"/>
		<updated>2009-09-06T18:06:17Z</updated>

		<summary type="html">&lt;p&gt;Decoy: comments have been solicited, without effective feedback. removing notice of draft status.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping Headers ====&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_SCREEN_CENTER = 256 = 0x00000100 (ear level, straight ahead, at screen distance)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 258 = 0x00000102 (ear level, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite, unless otherwise noted. Hence, the field produced by any speaker feed SHOULD by default approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found in the companion document &#039;&#039;[[channel mapping examples]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;br /&gt;
&lt;br /&gt;
[[Category:Drafts]]&lt;br /&gt;
[[Category:Ogg Mappings]]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9535</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9535"/>
		<updated>2008-10-22T10:40:32Z</updated>

		<summary type="html">&lt;p&gt;Decoy: after waiting for comments and receiving some agreement, elevating option 2 channel mapping headers to the only supported option&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is not a final proposal, but has remained reasonably stable for over a year.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping Headers ====&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_SCREEN_CENTER = 256 = 0x00000100 (ear level, straight ahead, at screen distance)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 258 = 0x00000102 (ear level, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite, unless otherwise noted. Hence, the field produced by any speaker feed SHOULD by default approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;br /&gt;
&lt;br /&gt;
[[Category:Drafts]]&lt;br /&gt;
[[Category:Ogg Mappings]]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9534</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9534"/>
		<updated>2008-10-22T10:38:26Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* OggPCM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is not a final proposal, but has remained reasonably stable for over a year.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_SCREEN_CENTER = 256 = 0x00000100 (ear level, straight ahead, at screen distance)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 258 = 0x00000102 (ear level, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite, unless otherwise noted. Hence, the field produced by any speaker feed SHOULD by default approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;br /&gt;
&lt;br /&gt;
[[Category:Drafts]]&lt;br /&gt;
[[Category:Ogg Mappings]]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=9458</id>
		<title>Channel mapping examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=9458"/>
		<updated>2008-09-10T14:59:52Z</updated>

		<summary type="html">&lt;p&gt;Decoy: front center semantics&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This companion document to the [[OggPCM|OggPCM specification]] lists several examples of possible Channel Mapping and Channel Conversion Headers. They can be used to map most of the currently existing multichannel layouts into OggPCM. This document is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the ITU-R BS.775-1 layout, when a Dolby Surround fallback track is present:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Mapping for ambisonics G+2 format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a pentagonal layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9457</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=9457"/>
		<updated>2008-09-10T14:58:21Z</updated>

		<summary type="html">&lt;p&gt;Decoy: the dialogue channel has different semantics from front center&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_SCREEN_CENTER = 256 = 0x00000100 (ear level, straight ahead, at screen distance)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 258 = 0x00000102 (ear level, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite, unless otherwise noted. Hence, the field produced by any speaker feed SHOULD by default approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_SCREEN_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;br /&gt;
&lt;br /&gt;
[[Category:Drafts]]&lt;br /&gt;
[[Category:Ogg Mappings]]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=8034</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=8034"/>
		<updated>2007-12-19T12:09:22Z</updated>

		<summary type="html">&lt;p&gt;Decoy: moved comments to discussion page and reverted&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Talk:OggPCM&amp;diff=8033</id>
		<title>Talk:OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Talk:OggPCM&amp;diff=8033"/>
		<updated>2007-12-19T12:07:45Z</updated>

		<summary type="html">&lt;p&gt;Decoy: moved comments from the article&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moving these comments from the article for further discussion:&lt;br /&gt;
&lt;br /&gt;
Portable players are usually ARM, which is usually little-endian. The Macintosh is now little-endian. Obviously the PC is little-endian. Clearly there is a winner. It&#039;s long past time to stop putting the bytes in an order that makes both programmers and computers do extra work for no good reason. Don&#039;t try to hold back the tide.&lt;br /&gt;
&lt;br /&gt;
(the sample rate field) should be a rational with at least a 22-bit numerator and 10-bit denominator&lt;br /&gt;
&lt;br /&gt;
An integer sampling rate is trouble. Audio does not always come that way. For example, audio is sometimes tied to the NTSC frame rate of 30000/1001. That 1001 can show up in the sample rate, and thus needs 10 bits. Rates with a 3 in the denominator are common too. Super Audio CD needs 22 bits to represent 2.8224 MHz. So 22 bits and 10 bits will do the job. Better would be 32 bits for both numerator and denominator of course. A float will never be quite right, though it sure beats an integer and will in fact hold exact values into the MHz. One can&#039;t express 1/3 or 1/10 as a float, so 12345.6 and 12345.6666... are undoable that way. BTW, allowing for subsonic recording would be nice.&lt;br /&gt;
&lt;br /&gt;
[[User:Decoy|Decoy]] 04:07, 19 December 2007 (PST)&lt;br /&gt;
&lt;br /&gt;
Perhaps so, but factually people do use OggPCM on big-endian machines. Having big-endian as an option makes sense then, and what is suggested above would then become a recommendation on how to use the format, not a necessary limitation on it.&lt;br /&gt;
&lt;br /&gt;
DSD does not have to be supported, because while technically it can be viewed as high rate PCM, in practice OggPCM aims at supporting the most common forms of conventional PCM, not much more. DSD content is rare, there is no obvious reason why it would be generated by any of the free/open source software projects like Xiph, it would also need its own sample format tag, we would need to go into the specifics of bit packing, and so on. It seems like a whole lot of extra work and complexity for very little gain.&lt;br /&gt;
&lt;br /&gt;
The physical header has already been finalized, so touching the sampling rate parameter is not really an option. Fractional sampling rates would again add complexity for little real benefit, and the option would be difficult to ignore if implemented. That&#039;s bad for embedded devices. The point about NTSC, drop-frame and the like is valid, granted, but given how imperfect such sources usually are, addressing the mismatch by simple resampling techniques should be sufficient.&lt;br /&gt;
&lt;br /&gt;
Subsonic recording, that&#039;s IMO unnecessary generality for something intended for multimedia work.&lt;br /&gt;
&lt;br /&gt;
[[User:Decoy|Decoy]] 04:07, 19 December 2007 (PST)&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7770</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7770"/>
		<updated>2007-11-15T11:10:08Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Further Suggestions for Conversion and Rendering */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affected. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7769</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7769"/>
		<updated>2007-11-15T11:07:29Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Channel Mapping, proposed option 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type. A compatible implementation of OggPCM channel maps SHOULD support both types of maps, but MAY omit support for the Channel Conversion Header.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined at all, has not been defined for the indicaed version of the header, is not supported by the player, or cannot be rendered accurately, parsing SHOULD continue with the next header.&lt;br /&gt;
&lt;br /&gt;
Encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. It MUST be possible for the user to override any mixing coefficients included by the encoder by default. If no header is found by a decoder which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number, channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affeced. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7768</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7768"/>
		<updated>2007-11-15T10:41:06Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* External Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot and in average they MUST be temporally aligned with the rest of the channels.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affeced. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;br /&gt;
*[http://www.acoustics.hut.fi/research/cat/vbap/ Vector Base Amplitude Panning]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7767</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7767"/>
		<updated>2007-11-15T10:40:35Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Further Suggestions for Conversion and Rendering */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot and in average they MUST be temporally aligned with the rest of the channels.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
When speakers are available all around the position of the desired feed, and they subtend no more than a typical stereo pair (60 degrees), a common simulation of a feed is to apply an equal power panning law among the closest two or three speakers. This is also what is done in the default mappings from the central channels to the stereo pair. In three dimensions this approach leads to Vector Base Amplitude Panning (VBAP).&lt;br /&gt;
&lt;br /&gt;
Another possibility is to pan the speaker feed into an Ambisonics representation of some chosen order, and then to decode for the actual speaker layout.&lt;br /&gt;
&lt;br /&gt;
When speakers to the back are not available, the respective speaker feeds are often mixed to opposite speakers in the front. The default mappings do this for stereo, and apply a 3dB attenuation to the back. The latter convention derives from European Broadcasting Union downmixing guidelines, and Dolby AC-3 defaults.&lt;br /&gt;
&lt;br /&gt;
If speakers close to the desired positions are available, the speaker feed can also be routed directly to one of them, as long as the overall directional errors stay limited and the relative ordering of the channels is not affeced. The channel maps and channel numbering are aimed at helping such mappings in existing systems: when the mapping examples in this document and the companion one are applied, in most cases channel ordering becomes identical to that used in WAV files and USB serializations. Rounding the channels to the positions specified in the respective channel masks should then lead to a workable rendering.&lt;br /&gt;
&lt;br /&gt;
OggPCM encoders are encouraged to supply downmixing information for common output formats, but it is to be expected that the information will often be incomplete. In such cases, the mapping examples given in this document and the companion can be applied by default by the decoder when the stored signal set seems to fit one of them.&lt;br /&gt;
&lt;br /&gt;
Proper downmixing to certain output formats, like Dolby Surround and Ambisonics UHJ, require complex processing which cannot be specified using a simple downmix matrix. If such output options are available, proper transcoding can be attempted as soon as the first channel map has been found which specifies a set of channels amenable to such a representation. The same goes for binaural rendering and is extensions, like crosstalk cancellation, which utilize head related transfer functions (HRTF) for accurate spatial rendering over a limited number of channels.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7766</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7766"/>
		<updated>2007-11-15T10:12:14Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Defaulting and Standard Mappings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot and in average they MUST be temporally aligned with the rest of the channels.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
* Files containing some other number of channels and no explicit channel map are assumed to contain channels tagged with OGG_CHANNEL_UNUSED&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7765</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7765"/>
		<updated>2007-11-15T10:03:50Z</updated>

		<summary type="html">&lt;p&gt;Decoy: stereo and mono conversions for the rest of the default layouts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot and in average they MUST be temporally aligned with the rest of the channels.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00071231      Mixing coefficient 10/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000D744      Mixing coefficient 1/sqrt(sqrt(2))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00010000      Mixing coefficient 1&lt;br /&gt;
 32    0x00000003      Channel 3, containing OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x000A0000      Mixing coefficient 10&lt;br /&gt;
 32    0x00000004      Channel 4, containing OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000005      Channel 5, containing OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00008000      Mixing coefficient 1/2&lt;br /&gt;
 32    0x00000006      Channel 6, containing OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000007      Channel 7, containing OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7764</id>
		<title>Channel mapping examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7764"/>
		<updated>2007-11-15T09:22:08Z</updated>

		<summary type="html">&lt;p&gt;Decoy: let&amp;#039;s just take the basic 10.2, because data on the extended version is scarce&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This companion document to the [[OggPCM|OggPCM specification]] lists several examples of possible Channel Mapping and Channel Conversion Headers. They can be used to map most of the currently existing multichannel layouts into OggPCM. This document is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the ITU-R BS.775-1 layout, when a Dolby Surround fallback track is present:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Mapping for ambisonics G+2 format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a pentagonal layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7763</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7763"/>
		<updated>2007-11-15T09:15:31Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added default mapping headers, lightened the language some, added OGG_CHANNEL_UNUSED&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping Header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, encoders SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate rendering MAY be attempted, as outlined in the section on conversions and rendering below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. However, if more than one channel is tagged as OGG_CHANNEL_UNUSED, they are all considered unused and shouldn&#039;t be played. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
 // specials&lt;br /&gt;
 OGG_CHANNEL_UNUSED = 2816 = 0x00000B00 (the channel is unused and should not be rendered)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker feed SHOULD approximate a planar wave at the sweet spot.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced in a spatially dispersed manner, from and around the indicated direction. As two common examples, they might be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot and in average they MUST be temporally aligned with the rest of the channels.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2, containing OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0xFFFF4AFC      Mixing coefficient -1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00016A09      Mixing coefficient sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7760</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7760"/>
		<updated>2007-11-14T20:40:14Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Further Suggestions for Conversion and Rendering */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. This section outlines some strategies which MAY be used in approximate rendering.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7759</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7759"/>
		<updated>2007-11-14T17:23:38Z</updated>

		<summary type="html">&lt;p&gt;Decoy: /* Further Suggestions for Conversion and Rendering */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. This section outlines some strategies which MAY be used to render an OggPCM stream when this primary mechanism proves insufficient.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7758</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7758"/>
		<updated>2007-11-14T17:16:09Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added lnk to caf spec&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;br /&gt;
*[http://developer.apple.com/documentation/MusicAudio/Reference/CAFSpec/CAF_intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001862-CH203-DontLinkElementID_60 Apple Core Audio Format 1.0 specification]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7757</id>
		<title>Channel mapping examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7757"/>
		<updated>2007-11-14T17:13:52Z</updated>

		<summary type="html">&lt;p&gt;Decoy: the mappings are no longer defaults, just informative examples&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This companion document to the [[OggPCM|OggPCM specification]] lists several examples of possible Channel Mapping and Channel Conversion Headers. They can be used to map most of the currently existing multichannel layouts into OggPCM. This document is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the ITU-R BS.775-1 layout, when a Dolby Surround fallback track is present:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Mapping for ambisonics G+2 format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Mapping for Ambisonics G-format, derived for a pentagonal layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7756</id>
		<title>Channel mapping examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7756"/>
		<updated>2007-11-14T17:12:10Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added ambisonics G+2, and G-format for square layout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This companion document to the [[OggPCM|OggPCM specification]] lists several examples of possible Channel Mapping and Channel Conversion Headers. They can be used to map most of the currently existing multichannel layouts into OggPCM. This document is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout, when a Dolby Surround fallback track is present:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for ambisonics G+2 format, derived for a square layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00004000      Mixing coefficient 0.25&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00005A82      Mixing coefficient 0.25*sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFA57E      Mixing coefficient -0.25*sqrt(2)&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format, derived for a pentagonal layout using the energy decoding equation:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00003333      Mixing coefficient 0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7755</id>
		<title>Channel mapping examples</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Channel_mapping_examples&amp;diff=7755"/>
		<updated>2007-11-14T16:56:46Z</updated>

		<summary type="html">&lt;p&gt;Decoy: moved most of the mapping examples from oggpcm, and made them INFORMATIVE&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This companion document to the [[OggPCM|OggPCM specification]] lists several examples of possible Channel Mapping and Channel Conversion Headers. They can be used to map most of the currently existing multichannel layouts into OggPCM. This document is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7754</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7754"/>
		<updated>2007-11-14T16:51:42Z</updated>

		<summary type="html">&lt;p&gt;Decoy: separated the example mappings into a companion document&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting and Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion Headers that are implied are specified below. Further INFORMATIVE mappings for various channel layouts can be found [[channel mapping examples|in a companion document]].&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7747</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7747"/>
		<updated>2007-11-13T17:49:42Z</updated>

		<summary type="html">&lt;p&gt;Decoy: removed duplicate mapping&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below.&lt;br /&gt;
&lt;br /&gt;
Because there is more variability in the source standards than in the OggPCM specification, different mappings might sometimes be needed. That is why most of this list is to be considered INFORMATIVE. However, the mappings referred to by the section on defaulting, above, are to be considered NORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Standard Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain stereo to plain mono:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain mono to plain stereo:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7745</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7745"/>
		<updated>2007-11-12T12:58:58Z</updated>

		<summary type="html">&lt;p&gt;Decoy: diffuseness is better explained via pairwise decorrelation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and each pair of diffuse channels SHOULD be temporally decorrelated to the maximum degree that is consistent with the above.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below.&lt;br /&gt;
&lt;br /&gt;
Because there is more variability in the source standards than in the OggPCM specification, different mappings might sometimes be needed. That is why most of this list is to be considered INFORMATIVE. However, the mappings referred to by the section on defaulting, above, are to be considered NORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Standard Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain stereo to plain mono:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain mono to plain stereo:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7744</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7744"/>
		<updated>2007-11-12T12:53:29Z</updated>

		<summary type="html">&lt;p&gt;Decoy: blumlein and xy seem to be different after all&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, option 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed option 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposed version of Channel Mapping has not yet gained the support of the Xiph.Org Foundation. However, it is likely the more mature proposal between the two.  Still needs a bit more of polish, though.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_BLUMLEIN_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 20 = 0x00000014 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 21 = 0x00000015 (cardioid response 45 degrees to the right)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and they SHOULD be reproduced with maximal phase delay variation consistent with the above, and with the psychoacoustics of maximally reverberant sound arriving from the stated principal direction.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below.&lt;br /&gt;
&lt;br /&gt;
Because there is more variability in the source standards than in the OggPCM specification, different mappings might sometimes be needed. That is why most of this list is to be considered INFORMATIVE. However, the mappings referred to by the section on defaulting, above, are to be considered NORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Standard Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain stereo to plain mono:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain mono to plain stereo:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7679</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7679"/>
		<updated>2007-10-24T16:29:55Z</updated>

		<summary type="html">&lt;p&gt;Decoy: killed uhj_sigma, uhj_delta, and regular matrix, changed XY to figure of eights /* Channel Mapping, proposed draft 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 4 = 0x00000004 (figure of eight response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 5 = 0x00000005 (figure of eight response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and they SHOULD be reproduced with maximal phase delay variation consistent with the above, and with the psychoacoustics of maximally reverberant sound arriving from the stated principal direction.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below.&lt;br /&gt;
&lt;br /&gt;
Because there is more variability in the source standards than in the OggPCM specification, different mappings might sometimes be needed. That is why most of this list is to be considered INFORMATIVE. However, the mappings referred to by the section on defaulting, above, are to be considered NORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Standard Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain stereo to plain mono:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain mono to plain stereo:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7678</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7678"/>
		<updated>2007-10-24T14:46:35Z</updated>

		<summary type="html">&lt;p&gt;Decoy: renumbered the channels, added standard mappings for most extant systems /* Channel Mapping, proposed draft 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and Ambisonic signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format Ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used.&lt;br /&gt;
&lt;br /&gt;
A header is considered to be present once its header ID has been read successfully. If a field or structure is prematurely terminated after reading the ID, the header is considered erroneous. If an error is encountered in a header, it MUST be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels MUST be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use, but they MUST NOT be considered an error.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type which has not been defined is encountered, this MUST be considered an error. If a channel_type is encountered which is defined only for a newer version of the header than indicated, this MAY be considered an error, in which case parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the decoder, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the decoder, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, the first associated channel_type MUST be used. If a channel_type is present more than once in a Channel Mapping Header, the first associated channel number MUST be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, the first mixing coefficient for the pair MUST be used. If channel mapping data is neglected because of these rules, readers SHOULD still accept the header without treating it as an error, but MAY warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, two&#039;s complement, fixed point numbers. The 16 most significant bits contain the integer part (including sign), and the 16 least significant bits are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined. They are divided into groups corresponding to the closest mapping into the set of channels used in CAF, RIFF WAVE and USB channel masks:&lt;br /&gt;
&lt;br /&gt;
 // front left/right&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 0 = 0x00000000 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 1 = 0x00000001 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 2 = 0x00000002 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 3 = 0x00000003 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_XY_LEFT = 4 = 0x00000004 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_RIGHT = 5 = 0x00000005 (cardioid response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_LEFT = 6 = 0x00000006 (55 degrees left)&lt;br /&gt;
 OGG_CHANNEL_WALL_FRONT_RIGHT = 7 = 0x00000007 (55 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 8 = 0x00000008 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 9 = 0x00000009 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_LEFT = 10 = 0x0000000A (72 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT = 11 = 0x0000000B (72 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 12 = 0x0000000C (fed directly into the left ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 13 = 0x0000000D (fed directly into the right ear canal, or front stereo dipole with crosstalk cancellation)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 14 = 0x0000000E (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 15 = 0x0000000F (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 16 = 0x00000010 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 17 = 0x00000011 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 18 = 0x00000012 (dolby stereo/surround left total)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 19 = 0x00000013 (dolby stereo/surround right total)&lt;br /&gt;
 OGG_CHANNEL_REGULAR_MATRIX_LEFT = 20 = 0x00000014 (regular matrix left total)&lt;br /&gt;
 OGG_CHANNEL_REGULAR_MATRIX_RIGHT = 21 = 0x00000015 (regular matrix right total)&lt;br /&gt;
&lt;br /&gt;
 // front center/mono&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 256 = 0x00000100 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 257 = 0x00000101 (cardioid response, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_UHJ_SIGMA = 258 = 0x00000102 (ambisonics UHJ mono/sum/mid)&lt;br /&gt;
&lt;br /&gt;
 // lfe&lt;br /&gt;
 OGG_CHANNEL_LFE = 512 = 0x00000200 (omnidirectional, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_LEFT = 513 = 0x00000201 (90 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_SIDE_RIGHT = 514 = 0x00000202 (90 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_LEFT = 515 = 0x00000203 (22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT = 516 = 0x00000204 (22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT = 517 = 0x00000205 (45 degrees lowered, 22.5 degrees left, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
 OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT = 518 = 0x00000206 (45 degrees lowered, 22.5 degrees right, bandlimited to 120Hz, 10dB louder than the reference level)&lt;br /&gt;
&lt;br /&gt;
 // back left/right&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 768 = 0x00000300 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 769 = 0x00000301 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT_SURROUND = 770 = 0x00000302 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND = 771 = 0x00000303 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 772 = 0x00000304 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 773 = 0x00000305 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 774 = 0x00000306 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 775 = 0x00000307 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_LEFT = 776 = 0x00000308 (back, 36 degrees left)&lt;br /&gt;
 OGG_CHANNEL_PENTAGONAL_BACK_RIGHT = 777 = 0x00000309 (back, 36 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 778 = 0x0000030A (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 779 = 0x0000030B (back, 30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 780 = 0x0000030C (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 781 = 0x0000020E (back, 5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // front center left/right&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 1024 = 0x00000400 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 1025 = 0x00000401 (22.5 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // back center&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 1280 = 0x00000500 (straight back)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 1281 = 0x00000501 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 1282 = 0x00000502 (back and sides, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // side left/right&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 1536 = 0x00000600 (90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 1537 = 0x00000601 (90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 1538 = 0x00000602 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 1539 = 0x00000603 (90 degrees right, diffuse)&lt;br /&gt;
&lt;br /&gt;
 // rest of the wav/usb/caf mask types&lt;br /&gt;
 OGG_CHANNEL_TOP_CENTER = 1792 = 0x00000700 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 1793 = 0x00000701 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 1794 = 0x00000702 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 1795 = 0x00000703 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 1796 = 0x00000704 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 1797 = 0x00000705 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 1798 = 0x00000706 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // rest of the cube&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 2048 = 0x00000800 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 2049 = 0x00000801 (45 degrees elevated, 90 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 2050 = 0x00000802 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 2051 = 0x00000803 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 2052 = 0x00000804 (45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 2053 = 0x00000805 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BOTTOM_CENTER = 2054 = 0x00000806 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 2055 = 0x00000807 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 2056 = 0x00000808 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 2057 = 0x00000809 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 2058 = 0x0000080A (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
&lt;br /&gt;
 // ambisonics&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 2304 = 0x00000900 (0th order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 2305 = 0x00000901 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 2306 = 0x00000902 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 2307 = 0x00000903 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 2308 = 0x00000904 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 2309 = 0x00000905 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 2310 = 0x00000906 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 2311 = 0x00000907 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 2312 = 0x00000908 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 2313 = 0x00000909 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 2314 = 0x0000090A (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 2315 = 0x0000090B (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 2316 = 0x0000090C (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 2317 = 0x0000090D (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 2318 = 0x0000090E (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 2319 = 0x0000090F (3rd order)&lt;br /&gt;
&lt;br /&gt;
 // passive matrix additions&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 2306 = 0x00000902 (figure of eight response left to right, same as Ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_UHJ_DELTA = 2560 = 0x00000A00 (ambisonics UHJ side/difference)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 2561 = 0x00000A01 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 2562 = 0x00000A02 (ambisonics UHJ addition for periphony)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, each channel should give rise to the same sound pressure level at the listener. The channel mapping metadata does not impose an absolute reference level for the channel data. The relative levels for ambisonic channels are given by the Furse-Malham convention.&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, channel_types marked as being &amp;quot;diffuse&amp;quot; are intended to be reproduced with an average cardioid response emanating from the stated direction. They MAY instead be reproduced using dipole speakers aligned so that direct arrival of sound to the sweet spot is minimized, or they MAY be reproduced by multiple speakers placed slightly above the listener in and around the stated direction. They SHOULD retain flat average spectral response as measured from the sweet spot, in average they MUST be temporally aligned with the rest of the channels at the sweet spot, at each frequency they SHOULD be reproduced with maximal spatial dispersion consistent with the above, and they SHOULD be reproduced with maximal phase delay variation consistent with the above, and with the psychoacoustics of maximally reverberant sound arriving from the stated principal direction.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order pantophonic Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order periphonic Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 in the ITU+back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 in the Dolby/DTS discrete layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below.&lt;br /&gt;
&lt;br /&gt;
Because there is more variability in the source standards than in the OggPCM specification, different mappings might sometimes be needed. That is why most of this list is to be considered INFORMATIVE. However, the mappings referred to by the section on defaulting, above, are to be considered NORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for stereo with headphone rendering intent:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000C      Channel_type OGG_CHANNEL_BINAURAL_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_BINAURAL_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for two channel ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R&lt;br /&gt;
&lt;br /&gt;
Default mapping for mono compatible ambisonics UHJ:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000102      Channel_type OGG_CHANNEL_UHJ_SIGMA&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000A00      Channel_type OGG_CHANNEL_UHJ_DELTA&lt;br /&gt;
&lt;br /&gt;
Default mapping for mid/side stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000101      Channel_type OGG_CHANNEL_MS_MID&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_MS_SIDE&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby MP matrix stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order pantophonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order periphonic Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diagonal layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal quadraphony in the diamond layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 4.1:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Dolby format 42 (&amp;quot;baby boom&amp;quot;) 4.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000203      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000204      Channel_type OGG_CHANNEL_LFE_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.0 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal pentaphony:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000012      Channel_type OGG_CHANNEL_DOLBY_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000013      Channel_type OGG_CHANNEL_DOLBY_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT, redundant, used to signal the presence of a stereo fallback mix&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 in the layout suggested by THX mastering guidelines:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.0 in the Dolby format 40 layout, used with 70mm film:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000502      Channel_type OGG_CHANNEL_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal hexagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000008      Channel_type OGG_CHANNEL_HEX_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000009      Channel_type OGG_CHANNEL_HEX_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000304      Channel_type OGG_CHANNEL_HEX_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000305      Channel_type OGG_CHANNEL_HEX_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics B+format:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000903      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for Ambisonics G-format:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000900      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00002434      Mixing coefficient 0.2*1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x0000CCCC      Mixing coefficient 0.8&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000901      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0xFFFFCCCD      Mixing coefficient -0.2&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x0000434B      Mixing coefficient 1/(4sin(2pi/5))&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFFBCB5      Mixing coefficient 1/(4sin(-2pi/5))&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00006CE2      Mixing coefficient 1/(4sin(2pi/10))&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000902      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0xFFFF931E      Mixing coefficient 1/(4sin(-2pi/10))&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000000A      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x0000000B      Channel_type OGG_CHANNEL_PENTAGONAL_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000308      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000309      Channel_type OGG_CHANNEL_PENTAGONAL_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000010      Channel_type OGG_CHANNEL_UHJ_L, redundant and only present in G+2 format&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000011      Channel_type OGG_CHANNEL_UHJ_R, redundant and only present in G+2 format&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the Dolby/DTS discrete layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000030A      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000030B      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the THX Advanced Speaker Array (ASA) layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x0000030C      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000030D      Channel_type OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 in the SDDS layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000200      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000602      Channel_type OGG_CHANNEL_SIDE_LEFT_SURROUND&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000603      Channel_type OGG_CHANNEL_SIDE_RIGHT_SURROUND&lt;br /&gt;
&lt;br /&gt;
Default mapping for the CAF cubical layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for horizontal octagonal:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for TMH 10.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000201      Channel_type OGG_CHANNEL_LFE_SIDE_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000202      Channel_type OGG_CHANNEL_LFE_SIDE_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000300      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000301      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000302      Channel_type OGG_CHANNEL_ITU_BACK_LEFT_SURROUND&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000303      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT_SURROUND&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT, only present in extended configuration&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT, only present in extended configuration&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000501      Channel_type OGG_CHANNEL_BACK_CENTER_SURROUND&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000006      Channel_type OGG_CHANNEL_WALL_FRONT_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000007      Channel_type OGG_CHANNEL_WALL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for Hamasaki 22.2:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_QUAD_FRONT_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000003      Channel_type OGG_CHANNEL_QUAD_FRONT_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000205      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_LEFT&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000206      Channel_type OGG_CHANNEL_LFE_FRONT_BOTTOM_CENTER_RIGHT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000306      Channel_type OGG_CHANNEL_QUAD_BACK_LEFT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x00000307      Channel_type OGG_CHANNEL_QUAD_BACK_RIGHT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x00000400      Channel_type OGG_CHANNEL_FRONT_CENTER_LEFT&lt;br /&gt;
 32    0x00000008      Channel 8&lt;br /&gt;
 32    0x00000401      Channel_type OGG_CHANNEL_FRONT_CENTER_RIGHT&lt;br /&gt;
 32    0x00000009      Channel 9&lt;br /&gt;
 32    0x00000500      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
 32    0x0000000A      Channel 10&lt;br /&gt;
 32    0x00000600      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x0000000B      Channel 11&lt;br /&gt;
 32    0x00000601      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x0000000C      Channel 12&lt;br /&gt;
 32    0x00000700      Channel_type OGG_CHANNEL_TOP_CENTER&lt;br /&gt;
 32    0x0000000D      Channel 13&lt;br /&gt;
 32    0x00000701      Channel_type OGG_CHANNEL_FRONT_TOP_LEFT&lt;br /&gt;
 32    0x0000000E      Channel 14&lt;br /&gt;
 32    0x00000702      Channel_type OGG_CHANNEL_FRONT_TOP_CENTER&lt;br /&gt;
 32    0x0000000F      Channel 15&lt;br /&gt;
 32    0x00000703      Channel_type OGG_CHANNEL_FRONT_TOP_RIGHT&lt;br /&gt;
 32    0x00000010      Channel 16&lt;br /&gt;
 32    0x00000704      Channel_type OGG_CHANNEL_BACK_TOP_LEFT&lt;br /&gt;
 32    0x00000011      Channel 17&lt;br /&gt;
 32    0x00000705      Channel_type OGG_CHANNEL_BACK_TOP_CENTER&lt;br /&gt;
 32    0x00000012      Channel 18&lt;br /&gt;
 32    0x00000706      Channel_type OGG_CHANNEL_BACK_TOP_RIGHT&lt;br /&gt;
 32    0x00000013      Channel 19&lt;br /&gt;
 32    0x00000800      Channel_type OGG_CHANNEL_SIDE_TOP_LEFT&lt;br /&gt;
 32    0x00000014      Channel 20&lt;br /&gt;
 32    0x00000801      Channel_type OGG_CHANNEL_SIDE_TOP_RIGHT&lt;br /&gt;
 32    0x00000015      Channel 21&lt;br /&gt;
 32    0x00000802      Channel_type OGG_CHANNEL_FRONT_BOTTOM_LEFT&lt;br /&gt;
 32    0x00000016      Channel 22&lt;br /&gt;
 32    0x00000803      Channel_type OGG_CHANNEL_FRONT_BOTTOM_CENTER&lt;br /&gt;
 32    0x00000017      Channel 23&lt;br /&gt;
 32    0x00000804      Channel_type OGG_CHANNEL_FRONT_BOTTOM_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Standard Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a decoder supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also to support rudimentary downmixing into many different layouts. In the following a set of Channel Conversion Headers are provided which MAY be applied by default.&lt;br /&gt;
&lt;br /&gt;
If this is done, these headers should be considered as having lower priority than any header explicitly provided by the OggPCM stream. That is, if they are incorporated by the decoder, they MUST be added after the last header provided by the OggPCM stream itself.&lt;br /&gt;
&lt;br /&gt;
If they are instead incorporated by the OggPCM encoder, they MUST be fully controllable by the user. Furthermore, the mixing functionality of Channel Conversion Headers MUST NOT be used to override the semantics of defined channel_types.&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain stereo to plain mono:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000001      Channel 1, containing OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000100      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
Default conversion from plain mono to plain stereo:&lt;br /&gt;
 32    0x00000001      Channel Conversion Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
 32    0x00000000      Channel 0, containing OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x0000B504      Mixing coefficient 1/sqrt(2)&lt;br /&gt;
&lt;br /&gt;
===== Further Suggestions for Conversion and Rendering =====&lt;br /&gt;
&lt;br /&gt;
Even when extensive downmixing information is present, it might not cover the precise speaker layout or hardware capabilities needed for precise playback. That is why this INFORMATIVE section gives some extra tips on channel mapping which cannot be expressed using Channel Conversion Headers.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7656</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7656"/>
		<updated>2007-10-22T11:50:34Z</updated>

		<summary type="html">&lt;p&gt;Decoy: since OggPCM now redirects here and the {{draft}} tag had been removed there, I removed it from here as well&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM_Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and ambisonics signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADRAPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing three channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to a mono file by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to a mono file using Mono = W*sqrt(2).&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files by dematrixing W, X and Y.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM2 stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used. If an error is encountered in one of the headers, the header SHOULD be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM2 stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels SHOULD be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type is encountered which is not defined for the given version of the mapping header, this SHOULD be considered an error and parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the player, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the player, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, only the first associated channel_type SHOULD be used. If a channel_type is present more than once in a Channel Mapping Header, only the first associated channel number SHOULD be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, only the first mixing coefficient for the pair SHOULD be used. Readers SHOULD still accept the header without treating it as an error, but SHOULD warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, fixed point numbers. The 16 most significant bits are the integer part (including sign), and 16 least significant parts are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 1 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 2 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 5 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 6 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 7 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 8 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 9 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 10 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 11 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 12 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 13 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 14 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 15 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 16 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 17 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 18 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 19 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 20 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 21 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP = 22 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 23 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 24 (90 degrees left, also used for lfe left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 25 (90 degrees right, also used for lfe right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 26 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM = 27 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 28 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 29 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 30 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 31 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 32 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 33 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 34 (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 35 (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 36 (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 37 (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 38 (back, 5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 39 (fed directly into the left ear canal)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 40 (fed directly into the right ear canal)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 41 (mono, omnidirectional, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT_SURROUND = 42 (back, 60 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT_SURROUND = 43 (back, 60 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 44 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 45 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 46 (90 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 47 (0th order, also used for lfe)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 48 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 49 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 50 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 51 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 52 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 53 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 54 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 55 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 56 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 57 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 58 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 59 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 60 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 61 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 62 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 63 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 64 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_SIGMA = 65 (ambisonics UHJ mono/sum/mid)&lt;br /&gt;
 OGG_CHANNEL_UHJ_DELTA = 66 (ambisonics UHJ side/difference)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 67 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 68 (ambisonics UHJ addition for periphony)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 69 (dolby stereo/surround left)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 70 (dolby stereo/surround right)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 71 (cardioid response straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 49 (figure of eight response left to right, also used for ambisonics Y)&lt;br /&gt;
 OGG_CHANNEL_XY_X = 72 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_Y = 73 (cardioid response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 24 (90 degrees left, also used for side left)&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 25 (90 degrees right, also used for side right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT_LFE = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT_LFE = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_LEFT = 74 (45 degrees lowered, 22.5 degrees left, also used for front left lfe)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_RIGHT = 75 (45 degrees lowered, 22.5 degrees right, also used for front right lfe)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 76 (straight back)&lt;br /&gt;
 OGG_CHANNEL_LFE = 47 (omnidirectional, also used for ambisonics W)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 77 (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 78 (back, 30 degrees right)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM2 streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely three channels and no explicit channel map are assumed to contain 1st order Ambisonics (W, X and Y).&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order Ambisonics (W, X, Y and Z).&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 surround in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 surround in the ITU+EX/ES back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 surround in the Dolby layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM2 channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below. This list is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for three-channel first order Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000030      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000031      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
&lt;br /&gt;
Default mapping for four-channel first order Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000030      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000031      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000032      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 surround in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 surround in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004C      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 surround in the Dolby layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000018      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000019      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004D      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x0000004E      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Example Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a player supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM2 format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also support rudimentary downmixing into many different layouts. However, full downmixing information may not always be available, and in any case the speaker layout rarely supports the exact requirements of all of the different channel_types. That is why some common mappings, conversions and adaptations are outlined in this section. The section is purely INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
*[[Ambisonics]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
*[http://www.mediatwins.com/en/support/kb_topic_11.html Short info about AC-3]&lt;br /&gt;
*[http://www.atsc.org/standards/a_52a.pdf AC-3 spec.] Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
*[http://www.microsoft.com/whdc/device/audio/multichaud.mspx .wav extended headers (WAVE-EX) for multi channel]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/Ambisonic Ambisonics on Wikipedia]&lt;br /&gt;
*[http://www.surroundassociates.com/fqmain.html General surround info]&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7626</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7626"/>
		<updated>2007-10-19T20:29:04Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added full name of the ITU 5.1 recommendation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{draft}}&lt;br /&gt;
&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM_Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and ambisonics signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADROPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to mono files by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files basic ambisonic dematrixing W and X.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM2 stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used. If an error is encountered in one of the headers, the header SHOULD be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM2 stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels SHOULD be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type is encountered which is not defined for the given version of the mapping header, this SHOULD be considered an error and parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the player, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the player, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, only the first associated channel_type SHOULD be used. If a channel_type is present more than once in a Channel Mapping Header, only the first associated channel number SHOULD be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, only the first mixing coefficient for the pair SHOULD be used. Readers SHOULD still accept the header without treating it as an error, but SHOULD warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, fixed point numbers. The 16 most significant bits are the integer part (including sign), and 16 least significant parts are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 1 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 2 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 5 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 6 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 7 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 8 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 9 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 10 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 11 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 12 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 13 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 14 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 15 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 16 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 17 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 18 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 19 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 20 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 21 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP = 22 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 23 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 24 (90 degrees left, also used for lfe left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 25 (90 degrees right, also used for lfe right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 26 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM = 27 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 28 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 29 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 30 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 31 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 32 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 33 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 34 (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 35 (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 36 (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 37 (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 38 (back, 5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 39 (fed directly into the left ear canal)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 40 (fed directly into the right ear canal)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 41 (mono, omnidirectional, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT_SURROUND = 42 (back, 60 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT_SURROUND = 43 (back, 60 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 44 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 45 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 46 (90 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 47 (0th order, also used for lfe)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 48 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 49 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 50 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 51 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 52 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 53 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 54 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 55 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 56 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 57 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 58 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 59 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 60 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 61 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 62 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 63 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 64 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_SIGMA = 65 (ambisonics UHJ mono/sum/mid)&lt;br /&gt;
 OGG_CHANNEL_UHJ_DELTA = 66 (ambisonics UHJ side/difference)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 67 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 68 (ambisonics UHJ addition for periphony)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 69 (dolby stereo/surround left)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 70 (dolby stereo/surround right)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 71 (cardioid response straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 48 (figure of eight response left to right, also used for ambisonics X)&lt;br /&gt;
 OGG_CHANNEL_XY_X = 72 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_Y = 73 (cardioid response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 24 (90 degrees left, also used for side left)&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 25 (90 degrees right, also used for side right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT_LFE = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT_LFE = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_LEFT = 74 (45 degrees lowered, 22.5 degrees left, also used for front left lfe)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_RIGHT = 75 (45 degrees lowered, 22.5 degrees right, also used for front right lfe)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 76 (straight back)&lt;br /&gt;
 OGG_CHANNEL_LFE = 47 (omnidirectional, also used for ambisonics W)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 77 (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 78 (back, 30 degrees right)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM2 streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order Ambisonics.&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 surround in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 surround in the ITU+EX/ES back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 surround in the Dolby layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM2 channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below. This list is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000030      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000031      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000032      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 surround in the ITU-R BS.775-1 layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 surround in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004C      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 surround in the Dolby layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000018      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000019      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004D      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x0000004E      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Example Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a player supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM2 format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also support rudimentary downmixing into many different layouts. However, full downmixing information may not always be available, and in any case the speaker layout rarely supports the exact requirements of all of the different channel_types. That is why some common mappings, conversions and adaptations are outlined in this section. The section is purely INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
== Related Links ==&lt;br /&gt;
Short info about AC-3: http://www.mediatwins.com/en/support/kb_topic_11.html&lt;br /&gt;
&lt;br /&gt;
AC-3 spec: http://www.atsc.org/standards/a_52a.pdf &amp;lt;br&amp;gt;&lt;br /&gt;
Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
&lt;br /&gt;
.wav extended headers for multi channel: http://www.microsoft.com/whdc/device/audio/multichaud.mspx&lt;br /&gt;
&lt;br /&gt;
General surround info: http://www.surroundassociates.com/fqmain.html&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7625</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7625"/>
		<updated>2007-10-19T20:28:28Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added full name of the ITU 5.1 recommendation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{draft}}&lt;br /&gt;
&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM_Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and ambisonics signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADROPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to mono files by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files basic ambisonic dematrixing W and X.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM2 stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used. If an error is encountered in one of the headers, the header SHOULD be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM2 stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels SHOULD be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type is encountered which is not defined for the given version of the mapping header, this SHOULD be considered an error and parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the player, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the player, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, only the first associated channel_type SHOULD be used. If a channel_type is present more than once in a Channel Mapping Header, only the first associated channel number SHOULD be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, only the first mixing coefficient for the pair SHOULD be used. Readers SHOULD still accept the header without treating it as an error, but SHOULD warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, fixed point numbers. The 16 most significant bits are the integer part (including sign), and 16 least significant parts are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 1 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 2 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 5 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 6 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 7 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 8 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 9 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 10 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 11 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 12 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 13 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 14 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 15 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 16 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 17 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 18 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 19 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 20 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 21 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP = 22 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 23 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 24 (90 degrees left, also used for lfe left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 25 (90 degrees right, also used for lfe right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 26 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM = 27 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 28 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 29 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 30 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 31 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 32 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 33 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 34 (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 35 (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 36 (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 37 (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 38 (back, 5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 39 (fed directly into the left ear canal)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 40 (fed directly into the right ear canal)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 41 (mono, omnidirectional, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT_SURROUND = 42 (back, 60 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT_SURROUND = 43 (back, 60 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 44 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 45 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 46 (90 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 47 (0th order, also used for lfe)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 48 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 49 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 50 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 51 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 52 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 53 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 54 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 55 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 56 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 57 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 58 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 59 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 60 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 61 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 62 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 63 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 64 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_SIGMA = 65 (ambisonics UHJ mono/sum/mid)&lt;br /&gt;
 OGG_CHANNEL_UHJ_DELTA = 66 (ambisonics UHJ side/difference)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 67 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 68 (ambisonics UHJ addition for periphony)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 69 (dolby stereo/surround left)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 70 (dolby stereo/surround right)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 71 (cardioid response straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 48 (figure of eight response left to right, also used for ambisonics X)&lt;br /&gt;
 OGG_CHANNEL_XY_X = 72 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_Y = 73 (cardioid response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 24 (90 degrees left, also used for side left)&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 25 (90 degrees right, also used for side right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT_LFE = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT_LFE = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_LEFT = 74 (45 degrees lowered, 22.5 degrees left, also used for front left lfe)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_RIGHT = 75 (45 degrees lowered, 22.5 degrees right, also used for front right lfe)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 76 (straight back)&lt;br /&gt;
 OGG_CHANNEL_LFE = 47 (omnidirectional, also used for ambisonics W)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 77 (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 78 (back, 30 degrees right)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM2 streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order Ambisonics.&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 surround in the ITU-R BS.775-1 layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 surround in the ITU+EX/ES back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 surround in the Dolby layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM2 channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below. This list is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000030      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000031      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000032      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 surround in the ITU layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 surround in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004C      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 surround in the Dolby layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000018      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000019      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004D      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x0000004E      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Example Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a player supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM2 format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also support rudimentary downmixing into many different layouts. However, full downmixing information may not always be available, and in any case the speaker layout rarely supports the exact requirements of all of the different channel_types. That is why some common mappings, conversions and adaptations are outlined in this section. The section is purely INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
== Related Links ==&lt;br /&gt;
Short info about AC-3: http://www.mediatwins.com/en/support/kb_topic_11.html&lt;br /&gt;
&lt;br /&gt;
AC-3 spec: http://www.atsc.org/standards/a_52a.pdf &amp;lt;br&amp;gt;&lt;br /&gt;
Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
&lt;br /&gt;
.wav extended headers for multi channel: http://www.microsoft.com/whdc/device/audio/multichaud.mspx&lt;br /&gt;
&lt;br /&gt;
General surround info: http://www.surroundassociates.com/fqmain.html&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7624</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7624"/>
		<updated>2007-10-19T19:19:01Z</updated>

		<summary type="html">&lt;p&gt;Decoy: added  the first version of draft2 channel mapping&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{draft}}&lt;br /&gt;
&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM_Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and ambisonics signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADROPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to mono files by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files basic ambisonic dematrixing W and X.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, proposed draft 2 ====&lt;br /&gt;
&lt;br /&gt;
This proposal has not yet gained the support of the Xiph community. It should be considered EXPERIMENTAL.&lt;br /&gt;
&lt;br /&gt;
Channel mappings are used to convey the meaning of the PCM signals stored in an OggPCM2 stream. They have been designed so that commonly used transmission formats like stereo, 5.1 and Ambisonics can be accurately tagged and distinguished from each other. Rudimentary downmixing from multichannel formats to stereo and mono and interoperability with compatibility formats like Dolby Surround and Ambisonics UHJ are also supported.&lt;br /&gt;
&lt;br /&gt;
A channel mapping can be given in two forms, using one of two headers. The Channel Mapping header tags any subset of the transmitted channels with its intended playback semantics. The Channel Conversion Header additionally provides a mixing matrix which can be applied to the channels before interpretation as a target, logical channel type.&lt;br /&gt;
&lt;br /&gt;
An arbitrary number of mapping and conversion headers can be present, including none at all. The header types can be mixed and they can appear in any order. When neither header is present, the defaults spelled out in the section below on defaulting apply. When more than one header is present, they describe alternative mappings in a decreasing preferential order, and the first supported one SHOULD be used. If an error is encountered in one of the headers, the header SHOULD be discarded and parsing SHOULD continue with the next header. If mapping headers are present but they are all erroneous, defaulting MUST NOT be applied.&lt;br /&gt;
&lt;br /&gt;
The channel mapping header lists physical channels and their associated logical channels, identified by a channel_type value. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000000      Channel Mapping Header ID&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x2N [uint]          Channel number - channel_type pairs&lt;br /&gt;
&lt;br /&gt;
The channel conversion header adds a mixing coefficient to each physical-logical routing, and explicitly allows many-to-many mappings between the two sets of channels. It is defined as:&lt;br /&gt;
&lt;br /&gt;
 32    0x00000001      Channel Conversion Header Id&lt;br /&gt;
 16    0x0000          Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16    0x0000          Version Minor (backwards compatible, e.g. more supported format id&#039;s)&lt;br /&gt;
 32x3N 2*[uint]+[sint] Channel number - channel_type - mixing coefficient triplets&lt;br /&gt;
&lt;br /&gt;
Channel numbers refer to the physical channels transmitted in the OggPCM2 stream. They start at zero, denoting the first channel transmitted in a frame, and range to the number of channels indicated in the main header packet minus one. References to absent channels SHOULD be treated as an error. If a physical channel is not referenced in any of the channel maps and defaulting is not being used, its semantics are unknown. Such channels SHOULD NOT be played without user intervention, and SHOULD NOT be routed to audio outputs which are currently in use.&lt;br /&gt;
&lt;br /&gt;
Channel_types refer to logical channels with a clear interpretation on how the sound data routed to them is to be reproduced. All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions. This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names. If a channel_type is encountered which is not defined for the given version of the mapping header, this SHOULD be considered an error and parsing SHOULD continue with the next header. If a channel_type is encountered which is defined but is not supported by the player, parsing SHOULD also continue with the next header. If a channel_type is encountered which is both valid and supported by the player, but cannot be rendered accurately, parsing SHOULD continue with the next header. Furthermore, writers SHOULD include appropriate Channel Conversion Headers at least into stereo and mono, if possible. Finally, if no header is found which leads to an accurate rendering but at least one valid, supported header is present, approximate conversion MAY be attempted, as outlined in the section on compatibility below. &lt;br /&gt;
&lt;br /&gt;
The mapping rows SHOULD be written sorted first by channel number, then by channel_type, and then by mixing coefficient. If a channel number is present more than once in a Channel Mapping Header, only the first associated channel_type SHOULD be used. If a channel_type is present more than once in a Channel Mapping Header, only the first associated channel number SHOULD be used. If a channel number - channel_type pair is present more than once in a Channel Conversion Header, only the first mixing coefficient for the pair SHOULD be used. Readers SHOULD still accept the header without treating it as an error, but SHOULD warn the user.&lt;br /&gt;
&lt;br /&gt;
The mixing coefficients are 32 bit signed, fixed point numbers. The 16 most significant bits are the integer part (including sign), and 16 least significant parts are the fraction. Note that the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
For major version 0, minor version 0 of the Channel Mapping and Channel Conversion headers, the following channel_type values are defined:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0 (ear level, straight ahead)&lt;br /&gt;
 OGG_CHANNEL_STEREO_LEFT = 1 (30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_STEREO_RIGHT = 2 (30 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_LEFT = 5 (45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_FRONT_RIGHT = 6 (45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_LEFT = 7 (back, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_QUAD_BACK_RIGHT = 8 (back, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_LEFT = 9 (60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_FRONT_RIGHT = 10 (60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT = 11 (back, 60 degrees left)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT = 12 (back, 60 degrees right)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_LEFT = 13 (back, 70 degrees left)&lt;br /&gt;
 OGG_CHANNEL_ITU_BACK_RIGHT = 14 (back, 70 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_CENTER = 15 (45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_LEFT = 16 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_TOP_RIGHT = 17 (45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER = 18 (45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_LEFT = 19 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_RIGHT = 20 (45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_LEFT = 21 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP = 22 (90 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_SIDE_TOP_RIGHT = 23 (45 degrees elevated, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT = 24 (90 degrees left, also used for lfe left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT = 25 (90 degrees right, also used for lfe right)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_LEFT = 26 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM = 27 (90 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_SIDE_BOTTOM_RIGHT = 28 (45 degrees lowered, 90 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_CENTER = 29 (back, 45 degrees elevated)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_LEFT = 30 (back, 45 degrees elevated, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_TOP_RIGHT = 31 (back, 45 degrees elevated, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_CENTER = 32 (back, 45 degrees lowered)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_LEFT = 33 (back, 45 degrees lowered, 45 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_BOTTOM_RIGHT = 34 (back, 45 degrees lowered, 45 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_LEFT = 35 (5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_STEREO_DIPOLE_RIGHT = 36 (5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_LEFT = 37 (back, 5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_DIPOLE_RIGHT = 38 (back, 5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_LEFT = 39 (fed directly into the left ear canal)&lt;br /&gt;
 OGG_CHANNEL_BINAURAL_RIGHT = 40 (fed directly into the right ear canal)&lt;br /&gt;
 OGG_CHANNEL_SURROUND = 41 (mono, omnidirectional, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_LEFT_SURROUND = 42 (back, 60 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_HEX_BACK_RIGHT_SURROUND = 43 (back, 60 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER_SURROUND = 44 (straight back, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_LEFT_SURROUND = 45 (90 degrees left, diffuse)&lt;br /&gt;
 OGG_CHANNEL_SIDE_RIGHT_SURROUND = 46 (90 degrees right, diffuse)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_W = 47 (0th order, also used for lfe)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_X = 48 (1st order, also used for mid/side side)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Y = 49 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Z = 50 (1st order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_R = 51 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_S = 52 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_T = 53 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_U = 54 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_V = 55 (2nd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_K = 56 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_L = 57 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_M = 58 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_N = 59 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_O = 60 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_P = 61 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_AMBISONICS_Q = 62 (3rd order)&lt;br /&gt;
 OGG_CHANNEL_UHJ_L = 63 (ambisonics UHJ left)&lt;br /&gt;
 OGG_CHANNEL_UHJ_R = 64 (ambisonics UHJ right)&lt;br /&gt;
 OGG_CHANNEL_UHJ_SIGMA = 65 (ambisonics UHJ mono/sum/mid)&lt;br /&gt;
 OGG_CHANNEL_UHJ_DELTA = 66 (ambisonics UHJ side/difference)&lt;br /&gt;
 OGG_CHANNEL_UHJ_T = 67 (ambisonics UHJ addition for pantophony)&lt;br /&gt;
 OGG_CHANNEL_UHJ_Q = 68 (ambisonics UHJ addition for periphony)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_LEFT = 69 (dolby stereo/surround left)&lt;br /&gt;
 OGG_CHANNEL_DOLBY_STEREO_RIGHT = 70 (dolby stereo/surround right)&lt;br /&gt;
 OGG_CHANNEL_MS_MID = 71 (cardioid response straight ahead)&lt;br /&gt;
 OGG_CHANNEL_MS_SIDE = 48 (figure of eight response left to right, also used for ambisonics X)&lt;br /&gt;
 OGG_CHANNEL_XY_X = 72 (cardioid response 45 degrees to the left)&lt;br /&gt;
 OGG_CHANNEL_XY_Y = 73 (cardioid response 45 degrees to the right)&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 24 (90 degrees left, also used for side left)&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 25 (90 degrees right, also used for side right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_LEFT_LFE = 3 (22.5 degrees left)&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER_RIGHT_LFE = 4 (22.5 degrees right)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_LEFT = 74 (45 degrees lowered, 22.5 degrees left, also used for front left lfe)&lt;br /&gt;
 OGG_CHANNEL_FRONT_BOTTOM_CENTER_RIGHT = 75 (45 degrees lowered, 22.5 degrees right, also used for front right lfe)&lt;br /&gt;
 OGG_CHANNEL_BACK_CENTER = 76 (straight back)&lt;br /&gt;
 OGG_CHANNEL_LFE = 47 (omnidirectional, also used for ambisonics W)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_LEFT = 77 (back, 30 degrees left)&lt;br /&gt;
 OGG_CHANNEL_BACK_STEREO_RIGHT = 78 (back, 30 degrees right)&lt;br /&gt;
&lt;br /&gt;
Unless otherwise indicated, the logical channels are assumed to be speaker feeds, with the speaker lying in the indicated direction. The direction is referenced to either the front center, or where indicated, the back center speaker. By default all of the speakers SHOULD be at the same distance from the listener, or the so called &amp;quot;sweet spot&amp;quot;, so that temporally coincident signals give rise to temporally coincident sound at the listening position. Where the channel_type indicates an interpretation other than a speaker feed, temporal coincidence SHOULD still hold.&lt;br /&gt;
&lt;br /&gt;
Some of the base standards used to derive the channel mappings are sensitive to speaker distance in addition to any possible time delay, and some are not. In any case interoperability between the different standards calls for setting the distance. The base standards used to derive the channel map rarely take a stance on that, so for the purposes of this specification the speaker distance, the listening area, and the Ambisonics coding radius are all idealized as being infinite. Hence, the field produced by any speaker near the sweet spot SHOULD approximate a planar wave, and if this cannot be achieved, an effort SHOULD be made to compensate for the difference e.g. electronically.&lt;br /&gt;
&lt;br /&gt;
===== Defaulting =====&lt;br /&gt;
&lt;br /&gt;
OggPCM2 streams were originally defined without channel maps, so for compatibility purposes, the simplest cases are defaulted based on the number of physical channels present. The precise Channel Mapping Headers and Channel Conversion headers that are implied can be found below, in the list of standard mappings.&lt;br /&gt;
&lt;br /&gt;
* Files containing precisely one channel and no explicit channel map are assumed to contain plain mono.&lt;br /&gt;
* Files containing precisely two channels and no explicit channel map are assumed to contain plain stereo.&lt;br /&gt;
* Files containing precisely four channels and no explicit channel map are assumed to contain 1st order Ambisonics.&lt;br /&gt;
* Files containing precisely six channels and no explicit channel map are assumed to contain 5.1 surround in the ITU layout.&lt;br /&gt;
* Files containing precisely seven channels and no explicit channel map are assumed to contain 6.1 surround in the ITU+EX/ES back channel layout.&lt;br /&gt;
* Files containing precisely eight channels and no explicit channel map are assumed to contain 7.1 surround in the Dolby layout.&lt;br /&gt;
&lt;br /&gt;
===== Standard Mappings =====&lt;br /&gt;
&lt;br /&gt;
The OggPCM2 channel mapping approach is based on supersetting existing standards, and logical extension where appropriate. Hence a large number of shared channel_types exists, which can make it difficult to find the right set even when encoding to an existing standard. To ease this task, default mappings for several existing standards are set out below. This list is INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain mono:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for plain stereo:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for first order Ambisonics:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_AMBISONICS_W&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000030      Channel_type OGG_CHANNEL_AMBISONICS_X&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000031      Channel_type OGG_CHANNEL_AMBISONICS_Y&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x00000032      Channel_type OGG_CHANNEL_AMBISONICS_Z&lt;br /&gt;
&lt;br /&gt;
Default mapping for 5.1 surround in the ITU layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
&lt;br /&gt;
Default mapping for 6.1 surround in the ITU+EX/ES back channel layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x0000000D      Channel_type OGG_CHANNEL_ITU_BACK_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x0000000E      Channel_type OGG_CHANNEL_ITU_BACK_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004C      Channel_type OGG_CHANNEL_BACK_CENTER&lt;br /&gt;
&lt;br /&gt;
Default mapping for 7.1 surround in the Dolby layout:&lt;br /&gt;
 32    0x00000000      Channel Mapping Header&lt;br /&gt;
 16    0x0000          Version Major 0&lt;br /&gt;
 16    0x0000          Version Minor 0&lt;br /&gt;
 32    0x00000000      Channel 0&lt;br /&gt;
 32    0x00000001      Channel_type OGG_CHANNEL_STEREO_LEFT&lt;br /&gt;
 32    0x00000001      Channel 1&lt;br /&gt;
 32    0x00000002      Channel_type OGG_CHANNEL_STEREO_RIGHT&lt;br /&gt;
 32    0x00000002      Channel 2&lt;br /&gt;
 32    0x00000000      Channel_type OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
 32    0x00000003      Channel 3&lt;br /&gt;
 32    0x0000002F      Channel_type OGG_CHANNEL_LFE&lt;br /&gt;
 32    0x00000004      Channel 4&lt;br /&gt;
 32    0x00000018      Channel_type OGG_CHANNEL_SIDE_LEFT&lt;br /&gt;
 32    0x00000005      Channel 5&lt;br /&gt;
 32    0x00000019      Channel_type OGG_CHANNEL_SIDE_RIGHT&lt;br /&gt;
 32    0x00000006      Channel 6&lt;br /&gt;
 32    0x0000004D      Channel_type OGG_CHANNEL_BACK_STEREO_LEFT&lt;br /&gt;
 32    0x00000007      Channel 7&lt;br /&gt;
 32    0x0000004E      Channel_type OGG_CHANNEL_BACK_STEREO_RIGHT&lt;br /&gt;
&lt;br /&gt;
===== Example Conversions =====&lt;br /&gt;
&lt;br /&gt;
Even if a player supports a given channel_type, it is not always possible to recreate the precise intention of the coder because of differences and uncertainties in the available speaker layout. The first fallback offered by the OggPCM2 format is the preferential hierarchy of Channel Mapping and Channel Conversion Headers, which allow the coder to both include multiple separate mixes for different layouts, and also support rudimentary downmixing into many different layouts. However, full downmixing information may not always be available, and in any case the speaker layout rarely supports the exact requirements of all of the different channel_types. That is why some common mappings, conversions and adaptations are outlined in this section. The section is purely INFORMATIVE.&lt;br /&gt;
&lt;br /&gt;
== Related Links ==&lt;br /&gt;
Short info about AC-3: http://www.mediatwins.com/en/support/kb_topic_11.html&lt;br /&gt;
&lt;br /&gt;
AC-3 spec: http://www.atsc.org/standards/a_52a.pdf &amp;lt;br&amp;gt;&lt;br /&gt;
Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
&lt;br /&gt;
.wav extended headers for multi channel: http://www.microsoft.com/whdc/device/audio/multichaud.mspx&lt;br /&gt;
&lt;br /&gt;
General surround info: http://www.surroundassociates.com/fqmain.html&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7623</id>
		<title>OggPCM</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=OggPCM&amp;diff=7623"/>
		<updated>2007-10-19T14:27:23Z</updated>

		<summary type="html">&lt;p&gt;Decoy: made channel mappings a section, intend to add a refined, competing version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{draft}}&lt;br /&gt;
&#039;&#039;&#039;This page was created as an alternative to the original [[OggPCM_Draft1]]. After a [http://lists.xiph.org/pipermail/ogg-dev/2005-November/thread.html heated debate] most developers are now working on this version of the spec.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Draft format 2 for OggPCM ==&lt;br /&gt;
&lt;br /&gt;
The following is an draft format for OggPCM. This is a work in progress and not a final proposal. In particular, there is no agreement yet on the channel mapping extra headers.&lt;br /&gt;
&lt;br /&gt;
OggPCM is an encapsulation of PCM audio data into an Ogg logical bitstream. An OggPCM bistream may be concurrently multiplexed with other Ogg logical bitstreams such as [[OggUVS]] video or [[CMML]] metadata,&lt;br /&gt;
&lt;br /&gt;
Note that unless otherwise noted, all multi-byte fields use the network byte order (big endian). The first packet in a stream MUST be the main header packet. The second packet MUST be the comment packet. Some extra header packets MAY be included after the comment header, provided this is identified in the main header. The packets that follow MUST all be data packets.&lt;br /&gt;
&lt;br /&gt;
=== Main Header Packet ===&lt;br /&gt;
Multibyte fields in the header packets are packed in big endian order, to be consistent with network byte order. A header packet contains the following fields: &lt;br /&gt;
&lt;br /&gt;
 64  &amp;quot;PCM     &amp;quot; Codec identifier&lt;br /&gt;
 16  0x00   Version Major (breaks backwards compatibility to increment)&lt;br /&gt;
 16  0x00   Version Minor (backwards compatible, ie, more supported format id&#039;s)&lt;br /&gt;
 32  [uint] PCM format&lt;br /&gt;
 32  [uint] Sampling rate [Hz]&lt;br /&gt;
 8   [uint] Number of significant bits&lt;br /&gt;
 8   [uint] Number of Channels (&amp;lt; 256)&lt;br /&gt;
 16  [uint] Maximum number of frames per packet&lt;br /&gt;
 32  [uint] Number of extra header packets&lt;br /&gt;
&lt;br /&gt;
A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Codec identifier&amp;quot; is 64 bit long since most other Ogg codecs specify their identifier within the first 64 bits rather than the first 32 bits, so this allows applications to match on all 64 bits consistently.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Maximum number of frames per packet&amp;quot; field is meant to notify an application reading the file that no data packet will contain more than a certain number of frames.  This not only makes implementation easier, but also provides information on how much needs to be buffered when streaming PCM files. A value of 0 means a maximum of 65536 frames. Implementations SHOULD make this field such that packets do not get split into multiple pages.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;Number of significant bits&amp;quot; field specifies how many bits are actually used. The other bits MUST be zero. This can be used to support audio with any resolution. For example, 12-bit PCM can be supported as &amp;quot;16 bit PCM&amp;quot; for the format and 12 for the number of significant bits.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is the same as the bit width specified by the format, the significant bits field may be set to zero.&lt;br /&gt;
&lt;br /&gt;
For streams where the number of significant bits is less than that specified by the bit width, the data shall be justified to fill the most significant bits. For 12 bit PCM in a 16 bit format, the 12 valid bits will occupy the 12 most significant bits of the 16 bit word and the least significant 4 bits shall be zero.&lt;br /&gt;
&lt;br /&gt;
Since the main header packet and the comment packet are mandatory, the &amp;quot;extra header packets&amp;quot; field counts any additional header packets (aside from these two) that can be provided before the start of the data packets.&lt;br /&gt;
&lt;br /&gt;
==== Supported PCM Formats ====&lt;br /&gt;
&lt;br /&gt;
  Format ID     Short Name             Description&lt;br /&gt;
  -- Integer coding&lt;br /&gt;
  0x00000000    OGGPCM_FMT_S8          Signed integer 8 bit&lt;br /&gt;
  0x00000001    OGGPCM_FMT_U8          Unsigned integer 8 bit&lt;br /&gt;
  0x00000002    OGGPCM_FMT_S16_LE      Signed integer 16 bit little endian&lt;br /&gt;
  0x00000003    OGGPCM_FMT_S16_BE      Signed integer 16 bit big endian&lt;br /&gt;
  0x00000004    OGGPCM_FMT_S24_LE      Signed integer 24 bit little endian&lt;br /&gt;
  0x00000005    OGGPCM_FMT_S24_BE      Signed integer 24 bit big endian&lt;br /&gt;
  0x00000006    OGGPCM_FMT_S32_LE      Signed integer 32 bit little endian&lt;br /&gt;
  0x00000007    OGGPCM_FMT_S32_BE      Signed integer 32 bit big endian&lt;br /&gt;
  --&lt;br /&gt;
  -- Compressed PCM&lt;br /&gt;
  0x00000010    OGGPCM_FMT_ULAW        G.711 u-law encoding (8 bit)&lt;br /&gt;
  0x00000011    OGGPCM_FMT_ALAW        G.711 A-law encoding (8 bit)&lt;br /&gt;
  --&lt;br /&gt;
  -- IEEE Floating point coding&lt;br /&gt;
  0x00000020    OGGPCM_FMT_FLT32_LE    IEEE Float [-1,1] 32 bit little endian&lt;br /&gt;
  0x00000021    OGGPCM_FMT_FLT32_BE    IEEE Float [-1,1] 32 bit big endian&lt;br /&gt;
  0x00000022    OGGPCM_FMT_FLT64_LE    IEEE Float [-1,1] 64 bit little endian&lt;br /&gt;
  0x00000023    OGGPCM_FMT_FLT64_BE    IEEE Float [-1,1] 64 bit big endian&lt;br /&gt;
&lt;br /&gt;
Format IDs below 0x80000000 are reserved for use by Xiph and all the ones above are allowed for application-specific formats.&lt;br /&gt;
&lt;br /&gt;
=== Comment packet ===&lt;br /&gt;
&lt;br /&gt;
The codec header is followed by a &amp;quot;vorbis comment&amp;quot; packet and by optional extra headers, if any. The format used is the same as for Vorbis with the exception that there is no packet identifier (so the packet is exactly like it is for Speex).&lt;br /&gt;
&lt;br /&gt;
=== Data Packets ===&lt;br /&gt;
&lt;br /&gt;
Data packets contain the raw PCM audio in interleaved format (complete frames are encoded sequentially) with the following definitions/restrictions:&lt;br /&gt;
&lt;br /&gt;
* A PCM &amp;quot;frame&amp;quot; is composed of samples for all channels at a given time.&lt;br /&gt;
* Any OggPCM packet MUST only contain complete frames (ie samples for all channels at a given sampling instance). Partial frames are forbidden. It is RECOMMENDED that decoders that come across an invalid packet containing a partial frame to drop the partial frame (at the end) and issue an error.&lt;br /&gt;
* There is no padding allowed in a frame except when some bits (&amp;lt;8) are needed to complete a byte. This means that packet size has a direct relationship to the number of frames in the packet (for purposes of seeking).&lt;br /&gt;
* Recommended packet size is smaller than 4k since interleaving and seeking in Ogg bitstreams is done on the resolution of packets and thus larger packet sizes create suboptimal bitstreams.&lt;br /&gt;
&lt;br /&gt;
=== Extra Headers (optional) ===&lt;br /&gt;
&lt;br /&gt;
Extra header packets contain additional information about the OggPCM stream, and must come after the Comment Packet and before the first Data Packet. Each extra header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32  [uint] Header ID&lt;br /&gt;
 ...        Header data&lt;br /&gt;
&lt;br /&gt;
The first optional headers to be defined handle mappings from physically stored channels to logical channels, such as speaker feeds and ambisonics signals.&lt;br /&gt;
&lt;br /&gt;
==== Channel Mapping, draft 1 ====&lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Header =====&lt;br /&gt;
&lt;br /&gt;
The channel mapping header is defined as:&lt;br /&gt;
&lt;br /&gt;
 32 0x00000000   Header ID&lt;br /&gt;
 16 [uint]   Major version&lt;br /&gt;
 16 [uint]   Minor version&lt;br /&gt;
 32 [uint]   Channel type&lt;br /&gt;
 32x2N [uint]Channel map (channel-target pairs)&lt;br /&gt;
&lt;br /&gt;
All channel_types less than 0x80000000 are reserved for use by Xiph; 0x80000000 and above are allowed for application specific extensions.&lt;br /&gt;
&lt;br /&gt;
This scheme allows for 2^31 -1 Xiph defined channel map types and 2^32 distinct channel names.&lt;br /&gt;
&lt;br /&gt;
Exampe values for channel types might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_MAP_MONO = 0&lt;br /&gt;
 OGG_CHANNEL_MAP_STEREO = 1&lt;br /&gt;
 OGG_CHANNEL_MAP_MS_WAVE = 2&lt;br /&gt;
 OGG_CHANNEL_MAP_QUADROPHONIC = 3&lt;br /&gt;
&lt;br /&gt;
and defined channels might be:&lt;br /&gt;
&lt;br /&gt;
 OGG_CHANNEL_FRONT_CENTER = 0&lt;br /&gt;
 OGG_CHANNEL_FRONT_LEFT = 1&lt;br /&gt;
 OGG_CHANNEL_FRONT_RIGHT = 2&lt;br /&gt;
 OGG_CHANNEL_SURROUND_LEFT = 3&lt;br /&gt;
 OGG_CHANNEL_SURROUND_RIGHT = 4&lt;br /&gt;
 OGG_CHANNEL_SURROUND_REAR = 5&lt;br /&gt;
 OGG_CHANNEL_REAR_LEFT = 6&lt;br /&gt;
 OGG_CHANNEL_REAR_RIGHT = 7&lt;br /&gt;
 OGG_CHANNEL_LFE_CENTER = 8&lt;br /&gt;
 OGG_CHANNEL_LFE_LEFT = 9&lt;br /&gt;
 OGG_CHANNEL_LFE_RIGHT = 10&lt;br /&gt;
&lt;br /&gt;
A stereo file could thus be defined as:&lt;br /&gt;
&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
The channel map in this case is: &amp;quot;0 1 1 2&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
===== Channel Mapping Defaults =====&lt;br /&gt;
&lt;br /&gt;
(ideas by JMV, not yet approved by anyone else. Should be merged in respective header definition above if approved)&lt;br /&gt;
&lt;br /&gt;
In order to simplify implementations when it comes to channel mappings, several defaults are defined when no extra header is present.&lt;br /&gt;
&lt;br /&gt;
* Files containing one channel are assumed to be plain mono files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_MONO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_CENTER&lt;br /&gt;
&lt;br /&gt;
* Files containing two channels are assumed to be stereo files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_STEREO&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_FRONT_LEFT&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_FRONT_RIGHT&lt;br /&gt;
&lt;br /&gt;
* Files containing four channels are assumed to be B-format ambisonic files with:&lt;br /&gt;
 channel_type = OGG_CHANNEL_MAP_B_FORMAT&lt;br /&gt;
 channel_map [0] = OGG_CHANNEL_W&lt;br /&gt;
 channel_map [1] = OGG_CHANNEL_X&lt;br /&gt;
 channel_map [2] = OGG_CHANNEL_Y&lt;br /&gt;
 channel_map [3] = OGG_CHANNEL_Z&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Header =====&lt;br /&gt;
&lt;br /&gt;
Any number of channel conversion headers can be specified. This header specifies how to down-mix the data to another format.&lt;br /&gt;
&lt;br /&gt;
 32 0x00000001 Remixing Header Id&lt;br /&gt;
 16 [uint]     Major version&lt;br /&gt;
 16 [uint]     Minor version&lt;br /&gt;
 32 [uint]     Target Channel type&lt;br /&gt;
 32xMxN [sint] Target Channel (M) x Src Channel (N) Gain array&lt;br /&gt;
&lt;br /&gt;
The ordering of the mixing matrix is such that source channel gains are consecutive. The gain (note: *signed* integer) has the 16 MSBs for the integer part (including sign) and 16 bits for the fracional part of the gain. Note: the gain can be negative.&lt;br /&gt;
&lt;br /&gt;
===== Channel Conversion Defaults =====&lt;br /&gt;
&lt;br /&gt;
* Stereo files SHOULD be converted to mono files by averaging the left channel and the right channel&lt;br /&gt;
* Ambisonic files SHOULD be converted to stereo files basic ambisonic dematrixing W and X.&lt;br /&gt;
&lt;br /&gt;
== Related Links ==&lt;br /&gt;
Short info about AC-3: http://www.mediatwins.com/en/support/kb_topic_11.html&lt;br /&gt;
&lt;br /&gt;
AC-3 spec: http://www.atsc.org/standards/a_52a.pdf &amp;lt;br&amp;gt;&lt;br /&gt;
Note: around p34/140 it appears to be how the channel mapping is encoded.&lt;br /&gt;
&lt;br /&gt;
.wav extended headers for multi channel: http://www.microsoft.com/whdc/device/audio/multichaud.mspx&lt;br /&gt;
&lt;br /&gt;
General surround info: http://www.surroundassociates.com/fqmain.html&lt;/div&gt;</summary>
		<author><name>Decoy</name></author>
	</entry>
</feed>