Documentation ¶
Index ¶
- type FrameHeader
- func (f FrameHeader) BitrateIndex() int
- func (f FrameHeader) Copyright() int
- func (f FrameHeader) Emphasis() int
- func (f FrameHeader) FrameSize() int
- func (f FrameHeader) ID() consts.Version
- func (f FrameHeader) IsValid() bool
- func (f FrameHeader) Layer() consts.Layer
- func (f FrameHeader) Mode() consts.Mode
- func (f FrameHeader) NumberOfChannels() int
- func (f FrameHeader) OriginalOrCopy() int
- func (f FrameHeader) PaddingBit() int
- func (f FrameHeader) PrivateBit() int
- func (f FrameHeader) ProtectionBit() int
- func (f FrameHeader) SamplingFrequency() consts.SamplingFrequency
- func (f FrameHeader) UseIntensityStereo() bool
- func (f FrameHeader) UseMSStereo() bool
- type FullReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrameHeader ¶
type FrameHeader uint32
A mepg1FrameHeader is MPEG1 Layer 1-3 frame header
func Read ¶
func Read(source FullReader, position int64) (h FrameHeader, startPosition int64, err error)
func (FrameHeader) BitrateIndex ¶
func (f FrameHeader) BitrateIndex() int
BirateIndex returns the bitrate index stored in position 15,12
func (FrameHeader) Copyright ¶
func (f FrameHeader) Copyright() int
Copyright returns whether or not this recording is copywritten - stored in position 3
func (FrameHeader) Emphasis ¶
func (f FrameHeader) Emphasis() int
Emphasis returns emphasis - the emphasis indication is here to tell the decoder that the file must be de-emphasized - stored in position 0,1
func (FrameHeader) FrameSize ¶
func (f FrameHeader) FrameSize() int
func (FrameHeader) ID ¶
func (f FrameHeader) ID() consts.Version
ID returns this header's ID stored in position 20,19
func (FrameHeader) IsValid ¶
func (f FrameHeader) IsValid() bool
IsValid returns a boolean value indicating whether the header is valid or not.
func (FrameHeader) Layer ¶
func (f FrameHeader) Layer() consts.Layer
Layer returns the mpeg layer of this frame stored in position 18,17
func (FrameHeader) Mode ¶
func (f FrameHeader) Mode() consts.Mode
Mode returns the channel mode, stored in position 7,6
func (FrameHeader) NumberOfChannels ¶
func (f FrameHeader) NumberOfChannels() int
func (FrameHeader) OriginalOrCopy ¶
func (f FrameHeader) OriginalOrCopy() int
OriginalOrCopy returns whether or not this is an Original recording or a copy of one - stored in position 2
func (FrameHeader) PaddingBit ¶
func (f FrameHeader) PaddingBit() int
PaddingBit returns the padding bit stored in position 9
func (FrameHeader) PrivateBit ¶
func (f FrameHeader) PrivateBit() int
PrivateBit returns the private bit stored in position 8 - this bit may be used to store arbitrary data to be used by an application
func (FrameHeader) ProtectionBit ¶
func (f FrameHeader) ProtectionBit() int
ProtectionBit returns the protection bit stored in position 16
func (FrameHeader) SamplingFrequency ¶
func (f FrameHeader) SamplingFrequency() consts.SamplingFrequency
SamplingFrequency returns the SamplingFrequency in Hz stored in position 11,10
func (FrameHeader) UseIntensityStereo ¶
func (f FrameHeader) UseIntensityStereo() bool
UseIntensityStereo returns a boolean value indicating whether the frame uses intensity stereo.
func (FrameHeader) UseMSStereo ¶
func (f FrameHeader) UseMSStereo() bool
UseMSStereo returns a boolean value indicating whether the frame uses middle/side stereo.