Mon Sep 18 09:15:53 2006

Asterisk developer's documentation


ast_translator Struct Reference

#include <translate.h>


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

Referenced by ast_translator_free_path().

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

Referenced by ast_translate().

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

Referenced by ast_translator_build_path().

struct ast_translator* next

For linking, not to be modified by the translator

Definition at line 60 of file translate.h.

Referenced by ast_unregister_translator().

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 Mon Sep 18 09:15:53 2006 for Asterisk - the Open Source PBX by  doxygen 1.4.7