int pjmedia_snd_stream_get_info(pjmedia_snd_stream *strm, pjmedia_snd_stream_info *pi)
# sound port
struct pjmedia_port
struct pjmedia_snd_port
- int pjmedia_snd_port_create(pj_pool_t *pool, int rec_id, int play_id, int clock_rate, int channel_count, int samples_per_frame, int bits_per_sample, int options, pjmedia_snd_port **p_port)
+ int pjmedia_snd_port_create(pj_pool_t *pool, int rec_id, int play_id, int clock_rate, int channel_count,
+ int samples_per_frame, int bits_per_sample, int options, pjmedia_snd_port **p_port)
int pjmedia_snd_port_connect(pjmedia_snd_port *snd_port, pjmedia_port *port)
int pjmedia_snd_port_disconnect(pjmedia_snd_port *snd_port)
int pjmedia_snd_port_set_ec(pjmedia_snd_port *snd_port, pj_pool_t *pool, unsigned int tail_ms, int options)
int pjmedia_snd_port_destroy(pjmedia_snd_port *snd_port)
- int pjmedia_null_port_create(pj_pool_t *pool, unsigned int sampling_rate, unsigned int channel_count, unsigned int samples_per_frame, unsigned int bits_per_sample, pjmedia_port **p_port)
+ int pjmedia_null_port_create(pj_pool_t *pool, unsigned int sampling_rate, unsigned int channel_count,
+ unsigned int samples_per_frame, unsigned int bits_per_sample, pjmedia_port **p_port)
# master port
struct pjmedia_master_port
- int pjmedia_master_port_create(pj_pool_t *pool, pjmedia_port *u_port, pjmedia_port *d_port, unsigned int options, pjmedia_master_port **p_m)
+ int pjmedia_master_port_create(pj_pool_t *pool, pjmedia_port *u_port, pjmedia_port *d_port,
+ unsigned int options, pjmedia_master_port **p_m)
int pjmedia_master_port_start(pjmedia_master_port *m)
int pjmedia_master_port_destroy(pjmedia_master_port *m, int destroy_ports)
# conference bridge
enum pjmedia_conf_option:
PJMEDIA_CONF_NO_DEVICE
struct pjmedia_conf
- int pjmedia_conf_create(pj_pool_t *pool, int max_slots, int sampling_rate, int channel_count, int samples_per_frame, int bits_per_sample, int options, pjmedia_conf **p_conf)
+ int pjmedia_conf_create(pj_pool_t *pool, int max_slots, int sampling_rate, int channel_count,
+ int samples_per_frame, int bits_per_sample, int options, pjmedia_conf **p_conf)
- int pjmedia_transport_udp_create3(pjmedia_endpt *endpt, int af, char *name, pj_str_t *addr, int port, unsigned int options, pjmedia_transport **p_tp)
+ int pjmedia_transport_udp_create3(pjmedia_endpt *endpt, int af, char *name, pj_str_t *addr, int port,
+ unsigned int options, pjmedia_transport **p_tp)
int pjmedia_transport_get_info(pjmedia_transport *tp, pjmedia_transport_info *info)
int pjmedia_transport_close(pjmedia_transport *tp)
- int pjmedia_transport_media_create(pjmedia_transport *tp, pj_pool_t *sdp_pool, unsigned int options, pjmedia_sdp_session *rem_sdp, unsigned int media_index)
- int pjmedia_transport_encode_sdp(pjmedia_transport *tp, pj_pool_t *sdp_pool, pjmedia_sdp_session *sdp, pjmedia_sdp_session *rem_sdp, unsigned int media_index)
- int pjmedia_transport_media_start(pjmedia_transport *tp, pj_pool_t *tmp_pool, pjmedia_sdp_session *sdp_local, pjmedia_sdp_session *sdp_remote, unsigned int media_index)
+ int pjmedia_transport_media_create(pjmedia_transport *tp, pj_pool_t *sdp_pool, unsigned int options,
+ pjmedia_sdp_session *rem_sdp, unsigned int media_index)
+ int pjmedia_transport_encode_sdp(pjmedia_transport *tp, pj_pool_t *sdp_pool, pjmedia_sdp_session *sdp,
+ pjmedia_sdp_session *rem_sdp, unsigned int media_index)
+ int pjmedia_transport_media_start(pjmedia_transport *tp, pj_pool_t *tmp_pool, pjmedia_sdp_session *sdp_local,
+ pjmedia_sdp_session *sdp_remote, unsigned int media_index)
int pjmedia_transport_media_stop(pjmedia_transport *tp)
- int pjmedia_endpt_create_sdp(pjmedia_endpt *endpt, pj_pool_t *pool, unsigned int stream_cnt, pjmedia_sock_info *sock_info, pjmedia_sdp_session **p_sdp)
+ int pjmedia_endpt_create_sdp(pjmedia_endpt *endpt, pj_pool_t *pool, unsigned int stream_cnt,
int pjmedia_stream_destroy(pjmedia_stream *stream)
int pjmedia_stream_get_port(pjmedia_stream *stream, pjmedia_port **p_port)
int pjmedia_stream_start(pjmedia_stream *stream)
int pjmedia_stream_dial_dtmf(pjmedia_stream *stream, pj_str_t *ascii_digit)
- int pjmedia_stream_set_dtmf_callback(pjmedia_stream *stream, void cb(pjmedia_stream *stream, void *user_data, int digit) with gil, void *user_data)
+ int pjmedia_stream_set_dtmf_callback(pjmedia_stream *stream,
+ void cb(pjmedia_stream *stream, void *user_data, int digit) with gil,
+ void *user_data)
int pjmedia_stream_pause(pjmedia_stream *stream, pjmedia_dir dir)
int pjmedia_stream_resume(pjmedia_stream *stream, pjmedia_dir dir)
# wav player
enum:
PJMEDIA_FILE_NO_LOOP
int pjmedia_port_destroy(pjmedia_port *port)
- int pjmedia_wav_player_port_create(pj_pool_t *pool, char *filename, unsigned int ptime, unsigned int flags, unsigned int buff_size, pjmedia_port **p_port)
- int pjmedia_wav_player_set_eof_cb(pjmedia_port *port, void *user_data, int cb(pjmedia_port *port, void *usr_data) with gil)
+ int pjmedia_wav_player_port_create(pj_pool_t *pool, char *filename, unsigned int ptime, unsigned int flags,
+ unsigned int buff_size, pjmedia_port **p_port)
+ int pjmedia_wav_player_set_eof_cb(pjmedia_port *port, void *user_data,
+ int cb(pjmedia_port *port, void *usr_data) with gil)
int pjmedia_wav_player_port_set_pos(pjmedia_port *port, unsigned int offset)
# wav recorder
enum pjmedia_file_writer_option:
PJMEDIA_FILE_WRITE_PCM
- int pjmedia_wav_writer_port_create(pj_pool_t *pool, char *filename, unsigned int clock_rate, unsigned int channel_count, unsigned int samples_per_frame, unsigned int bits_per_sample, unsigned int flags, int buff_size, pjmedia_port **p_port)
+ int pjmedia_wav_writer_port_create(pj_pool_t *pool, char *filename, unsigned int clock_rate,
+ unsigned int channel_count, unsigned int samples_per_frame,
+ unsigned int bits_per_sample, unsigned int flags, int buff_size,
+ pjmedia_port **p_port)
# tone generator
struct pjmedia_tone_digit:
char digit
short on_msec
short off_msec
short volume
- int pjmedia_tonegen_create(pj_pool_t *pool, unsigned int clock_rate, unsigned int channel_count, unsigned int samples_per_frame, unsigned int bits_per_sample, unsigned int options, pjmedia_port **p_port)
- int pjmedia_tonegen_play_digits(pjmedia_port *tonegen, unsigned int count, pjmedia_tone_digit digits[], unsigned int options)
+ int pjmedia_tonegen_create(pj_pool_t *pool, unsigned int clock_rate, unsigned int channel_count,
+ unsigned int samples_per_frame, unsigned int bits_per_sample,
+ unsigned int options, pjmedia_port **p_port)
+ int pjmedia_tonegen_play_digits(pjmedia_port *tonegen, unsigned int count,
+ pjmedia_tone_digit digits[], unsigned int options)
int pjmedia_tonegen_stop(pjmedia_port *tonegen)
cdef extern from "pjmedia-codec.h":
# codecs
enum:
PJMEDIA_SPEEX_NO_UWB
PJMEDIA_SPEEX_NO_WB
int pjmedia_codec_gsm_init(pjmedia_endpt *endpt)
int pjmedia_codec_gsm_deinit()
int pjmedia_codec_g722_init(pjmedia_endpt *endpt)
int pjmedia_codec_g722_deinit()
int pjmedia_codec_ilbc_init(pjmedia_endpt *endpt, int mode)
int pjmedia_codec_ilbc_deinit()
int pjmedia_codec_speex_init(pjmedia_endpt *endpt, int options, int quality, int complexity)