Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
ast_audiohook Struct Reference

Data Fields

enum ast_audiohook_direction direction
 
unsigned int flags
 
struct ast_formatformat
 
unsigned int hook_internal_samp_rate
 
enum ast_audiohook_init_flags init_flags
 
struct {
   struct ast_audiohook *   next
 
list
 
ast_mutex_t lock
 
ast_audiohook_manipulate_callback manipulate_callback
 
struct ast_audiohook_options options
 
struct ast_slinfactory read_factory
 
struct timeval read_time
 
const char * source
 
enum ast_audiohook_status status
 
struct ast_trans_pvttrans_pvt
 
ast_cond_t trigger
 
enum ast_audiohook_type type
 
struct ast_slinfactory write_factory
 
struct timeval write_time
 

Detailed Description

Definition at line 104 of file audiohook.h.

Field Documentation

enum ast_audiohook_direction direction

Intended audiohook direction, BOTH by default on init

Definition at line 121 of file audiohook.h.

Referenced by ast_audiohook_init(), ast_audiohook_set_frame_feed_direction(), and ast_audiohook_write_frame().

unsigned int flags

Flags on the audiohook

Definition at line 111 of file audiohook.h.

struct ast_format* format

Format translation path is setup as

Definition at line 116 of file audiohook.h.

Referenced by ast_audiohook_destroy().

unsigned int hook_internal_samp_rate

internal read/write sample rate on the audiohook.

Definition at line 120 of file audiohook.h.

Referenced by ast_audiohook_write_frame(), and audiohook_list_set_hook_rate().

enum ast_audiohook_init_flags init_flags

Init flags

Definition at line 109 of file audiohook.h.

Referenced by ast_audiohook_init().

struct { ... } list

Lock that protects the audiohook structure

Definition at line 105 of file audiohook.h.

Referenced by ast_audiohook_destroy(), ast_audiohook_init(), and ast_audiohook_trigger_wait().

ast_audiohook_manipulate_callback manipulate_callback

Manipulation callback

Definition at line 118 of file audiohook.h.

Referenced by ast_audiohook_detach_list(), audio_audiohook_write_list(), audiohook_volume_get(), and dtmf_audiohook_write_list().

struct ast_audiohook_options options

Applicable options

Definition at line 119 of file audiohook.h.

struct ast_slinfactory read_factory

Factory where frames read from the channel, or read from the whisper source will go through

Definition at line 112 of file audiohook.h.

Referenced by ast_audiohook_destroy(), ast_audiohook_write_frame(), and audio_audiohook_write_list().

struct timeval read_time

Last time read factory was fed

Definition at line 114 of file audiohook.h.

Referenced by ast_audiohook_write_frame().

const char* source
enum ast_audiohook_status status
struct ast_trans_pvt* trans_pvt

Translation path for reading frames

Definition at line 117 of file audiohook.h.

Referenced by ast_audiohook_destroy().

ast_cond_t trigger
enum ast_audiohook_type type

Type of audiohook

Definition at line 107 of file audiohook.h.

Referenced by ast_audiohook_attach(), ast_audiohook_destroy(), ast_audiohook_init(), and ast_audiohook_remove().

struct ast_slinfactory write_factory

Factory where frames written to the channel will go through

Definition at line 113 of file audiohook.h.

Referenced by ast_audiohook_destroy(), ast_audiohook_write_frame(), and audio_audiohook_write_list().

struct timeval write_time

Last time write factory was fed

Definition at line 115 of file audiohook.h.

Referenced by ast_audiohook_write_frame().


The documentation for this struct was generated from the following file: