Sending Audio Frames
// See notes above
uint8_t* p_audio_data;
uint32_t audio_data_size;
// See notes above
uint8_t* p_audio_extra_data;
uint32_t audio_extra_data_size;
// Compute the total size of the structure
uint32_t packet_size = sizeof(NDIlib_compressed_packet_t) + audio_data_size +
audio_extra_data_size;
// Allocate the structure
NDIlib_compressed_packet_t* p_packet = (NDIlib_compressed_packet_t*)malloc(packet_size);
// Fill in the settings
p_packet->version = NDIlib_compressed_packet_t::version_0;
p_packet->fourCC = NDIlib_FourCC_type_AAC;
p_packet->pts = 0; // These should be filled in correctly if possible.
p_packet->dts = 0;Last updated
Was this helpful?

