Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal

otc_audio_data Struct Reference

#include <audio_data.h>

Data Fields

const void * sample_buffer
const int bits_per_sample
const int sample_rate
const size_t number_of_channels
const size_t number_of_samples

Detailed Description

This struct represents subscriber PCM audio data, reported periodically by the otc_subscriber_callbacks.on_audio_data callback function.

Field Documentation

◆ bits_per_sample

const int bits_per_sample

The number of bits per sample.

◆ number_of_channels

const size_t number_of_channels

The number of channels.

◆ number_of_samples

const size_t number_of_samples

The number of audio samples in the sample buffer.

◆ sample_buffer

const void* sample_buffer

The pointer to binary audio sample buffer.

◆ sample_rate

const int sample_rate

The sample rate (number of times audio is sampled per second).