Description | Hierarchy | Fields | Methods | Properties |
type unaMpegAudio_layer123 = class(unaObject)
MPEG audio frame parser. Supports MPEG1 and MPEG2 layer I, II and III frames.
constructor create(reader: unaBitReader_abstract); |
|
function nextFrame(var h: unaMpegHeader; out foundAt: int64; out skipOnResynch: int; outBuf: pointer; out frameSize: int; panicOnSmallBuf: bool = false): HRESULT; |
|
procedure ancillary_data(const h: unaMpegHeader); virtual; |
|
procedure audio_data(const h: unaMpegHeader); virtual; |
property mpegChannels: int read f_mpgChannels; |
|
property mpegID: int read f_mpgID; |
|
property mpegLayer: int read f_mpgLayer; |
|
property mpegSamplesPerFrame: int read f_mpgSPF; |
|
property mpegSamplingRate: int read f_mpgSR; |
|
property reader: unaBitReader_abstract read f_reader; |
constructor create(reader: unaBitReader_abstract); |
|
Creates MPEG audio parser. Parameters
|
function nextFrame(var h: unaMpegHeader; out foundAt: int64; out skipOnResynch: int; outBuf: pointer; out frameSize: int; panicOnSmallBuf: bool = false): HRESULT; |
|
Tries to locate and read next audio frame from bitstream.
Parameters
ReturnsS_OK if frame was found, -1 otherwise. |
procedure ancillary_data(const h: unaMpegHeader); virtual; |
|
Parses ancillary part of a frame. |
procedure audio_data(const h: unaMpegHeader); virtual; |
|
Parses audio part of a frame. |
property mpegChannels: int read f_mpgChannels; |
|
Number of channels: 1 for mono, 2 for stereo. Not valid unless first frame is found. |
property mpegID: int read f_mpgID; |
|
MPEG format: 1 for MPEG1, 2 for MPEG2, 3 for MPEG2.5 Not valid unless first frame is found. |
property mpegLayer: int read f_mpgLayer; |
|
Layer: 1 = Layer I, 2 = Layer II, 3 = Layer III. Not valid unless first frame is found. |
property mpegSamplesPerFrame: int read f_mpgSPF; |
|
Number of samples per frame. Not valid unless first frame is found. |
property mpegSamplingRate: int read f_mpgSR; |
|
Number of samples per second. Not valid unless first frame is found. |
property reader: unaBitReader_abstract read f_reader; |
|
Bit-reader provided to parser. |
(c) 2012 Lake of Soft