BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

tonegen.h File Reference

Tone (sine, MF, DTMF) generator media port. More...

Data Structures

struct  pjmedia_tone_desc
 
struct  pjmedia_tone_digit
 
struct  pjmedia_tone_digit_map
 

Enumerations

enum  {
  PJMEDIA_TONEGEN_LOOP = 1 ,
  PJMEDIA_TONEGEN_NO_LOCK = 2
}
 

Functions

pj_status_t pjmedia_tonegen_create (pj_pool_t *pool, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, unsigned options, pjmedia_port **p_port)
 
pj_status_t pjmedia_tonegen_create2 (pj_pool_t *pool, const pj_str_t *name, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, unsigned options, pjmedia_port **p_port)
 
pj_bool_t pjmedia_tonegen_is_busy (pjmedia_port *tonegen)
 
pj_status_t pjmedia_tonegen_stop (pjmedia_port *tonegen)
 
pj_status_t pjmedia_tonegen_stop_loop (pjmedia_port *tonegen)
 
pj_status_t pjmedia_tonegen_rewind (pjmedia_port *tonegen)
 
pj_status_t pjmedia_tonegen_play (pjmedia_port *tonegen, unsigned count, const pjmedia_tone_desc tones[], unsigned options)
 
pj_status_t pjmedia_tonegen_play_digits (pjmedia_port *tonegen, unsigned count, const pjmedia_tone_digit digits[], unsigned options)
 
pj_status_t pjmedia_tonegen_get_digit_map (pjmedia_port *tonegen, const pjmedia_tone_digit_map **m)
 
pj_status_t pjmedia_tonegen_set_digit_map (pjmedia_port *tonegen, pjmedia_tone_digit_map *m)
 

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.