class Packet
Defined at line 32 of file ../../src/media/audio/audio_core/packet.h
Public Methods
void ~Packet ()
Defined at line 26 of file ../../src/media/audio/audio_core/packet.cc
Fixed start ()
Accessors for starting and ending presentation time stamps expressed in
units of audio frames (note, not media time), as signed 50.13 fixed point
integers (see kPtsFractionalBits). At 192KHz, this allows for ~186.3
years of usable range when starting from a media time of 0.
AudioPackets consumed by the AudioCore are all expected to have
explicit presentation time stamps. If packets sent by the user are
missing timestamps, appropriate timestamps will be synthesized at this
point in the pipeline.
Note, the |start| is the time (expressed in fractional frames, on the
source's timeline) at which the first frame of audio in the packet should
be presented. The |end| is the time at which the frame after the final
frame in the packet would be presented.
Defined at line 54 of file ../../src/media/audio/audio_core/packet.h
Fixed end ()
Defined at line 55 of file ../../src/media/audio/audio_core/packet.h
int64_t length ()
Defined at line 56 of file ../../src/media/audio/audio_core/packet.h
void * payload ()
Defined at line 58 of file ../../src/media/audio/audio_core/packet.h
void Display ()
Defined at line 60 of file ../../src/media/audio/audio_core/packet.h
Protected Methods
void Packet (fbl::RefPtr<RefCountedVmoMapper> vmo_ref, size_t vmo_offset_bytes, int64_t frame_count, Fixed start_frame, async_dispatcher_t * callback_dispatcher, fit::closure callback)
fbl::SlabAllocated _requires_ instances to be sourced from an fbl::SlabAllocator. Make this
ctor non-public to prevent other ways of instantiation.
Defined at line 13 of file ../../src/media/audio/audio_core/packet.cc
Friends
class SlabAllocator