Thu May 24 14:32:02 2007

Asterisk developer's documentation


ast_translator Struct Reference

#include <translate.h>

Collaboration diagram for ast_translator:

Collaboration graph
[legend]

Data Fields

int cost
void(* destroy )(struct ast_translator_pvt *pvt)
int dstfmt
int(* framein )(struct ast_translator_pvt *pvt, struct ast_frame *in)
ast_frame *(* frameout )(struct ast_translator_pvt *pvt)
char name [80]
ast_translator_pvt *(* newpvt )(void)
ast_translatornext
ast_frame *(* sample )(void)
int srcfmt

Detailed Description

data structure associated with a translator

Definition at line 39 of file translate.h.


Field Documentation

int cost

Cost in milliseconds for encoding/decoding 1 second of sound

Definition at line 58 of file translate.h.

void(* destroy)(struct ast_translator_pvt *pvt)

Destroy translator callback

int dstfmt

Destination format

Definition at line 45 of file translate.h.

int(* framein)(struct ast_translator_pvt *pvt, struct ast_frame *in)

Input frame callback

struct ast_frame*(* frameout)(struct ast_translator_pvt *pvt)

Output frame callback

char name[80]

Name of translator

Definition at line 41 of file translate.h.

struct ast_translator_pvt*(* newpvt)(void)

Private data associated with the translator

struct ast_translator* next

For linking, not to be modified by the translator

Definition at line 60 of file translate.h.

struct ast_frame*(* sample)(void)

Generate an example frame

int srcfmt

Source format

Definition at line 43 of file translate.h.


The documentation for this struct was generated from the following file:
Generated on Thu May 24 14:32:02 2007 for Asterisk - the Open Source PBX by  doxygen 1.5.1