OpenTok C SDK
audio_data.h
Go to the documentation of this file.
1 
6 #ifndef audio_data_h
7 #define audio_data_h
8 
9 #include <stddef.h>
10 
11 #include "config.h"
12 
13 OTC_BEGIN_DECL
14 
20  const void* sample_buffer;
21  const int bits_per_sample;
22  const int sample_rate;
23  const size_t number_of_channels;
24  const size_t number_of_samples;
25 };
26 
33 typedef void (*audio_transform_callback)(void* user_data,
34  struct otc_audio_data* frame);
35 
36 OTC_END_DECL
37 
38 #endif /* audio_data_h */
39 
Definition: audio_data.h:19
void(* audio_transform_callback)(void *user_data, struct otc_audio_data *frame)
The callback that will perform the custom transformation.
Definition: audio_data.h:33
const size_t number_of_channels
Definition: audio_data.h:23
const void * sample_buffer
Definition: audio_data.h:20
const size_t number_of_samples
Definition: audio_data.h:24
const int bits_per_sample
Definition: audio_data.h:21
const int sample_rate
Definition: audio_data.h:22