#include <icy/av/packet.h>Inherits:
MediaPacketSubclassed by:PlanarAudioPacket
Audio packet for interleaved formats.
| Return | Name | Description |
|---|---|---|
size_t | numSamples | Number of audio samples per channel. |
AVPacket * | avpacket | Non-owning pointer to the encoded AVPacket from FFmpeg. Set by AudioEncoder, read by MultiplexEncoder. |
size_t numSamplesNumber of audio samples per channel.
AVPacket * avpacket = nullptrNon-owning pointer to the encoded AVPacket from FFmpeg. Set by AudioEncoder, read by MultiplexEncoder.
| Return | Name | Description |
|---|---|---|
AudioPacket inline | Construct an audio packet with an interleaved sample buffer. | |
std::unique_ptr< IPacket > | clone virtual const inline | #### Returns |
uint8_t * | samples virtual const inline | #### Returns |
const char * | className virtual const inline | Returns the class name of this packet type for logging and diagnostics. |
inline
inline AudioPacket(uint8_t * data, size_t size, size_t numSamples, int64_t time)Construct an audio packet with an interleaved sample buffer.
data Pointer to the interleaved sample buffer (may be null).
size Size of the buffer in bytes.
numSamples Number of samples per channel.
time Presentation timestamp in microseconds.
virtual const inline
virtual inline std::unique_ptr< IPacket > clone() constA heap-allocated copy of this packet.
virtual const inline
virtual inline uint8_t * samples() constA pointer to the raw interleaved sample buffer.
virtual const inline
virtual inline const char * className() constReturns the class name of this packet type for logging and diagnostics.