BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

wav_port.h File Reference

WAV file player and writer. More...

Data Structures

struct  pjmedia_wav_player_info
 

Enumerations

enum  pjmedia_file_player_option { PJMEDIA_FILE_NO_LOOP = 1 }
 
enum  pjmedia_file_writer_option {
  PJMEDIA_FILE_WRITE_PCM = 0 ,
  PJMEDIA_FILE_WRITE_ALAW = 1 ,
  PJMEDIA_FILE_WRITE_ULAW = 2
}
 

Functions

pj_status_t pjmedia_wav_player_port_create (pj_pool_t *pool, const char *filename, unsigned ptime, unsigned flags, pj_ssize_t buff_size, pjmedia_port **p_port)
 
pj_status_t pjmedia_wav_player_get_info (pjmedia_port *port, pjmedia_wav_player_info *i)
 
pj_ssize_t pjmedia_wav_player_get_len (pjmedia_port *port)
 
pj_status_t pjmedia_wav_player_port_set_pos (pjmedia_port *port, pj_uint32_t offset)
 
pj_ssize_t pjmedia_wav_player_port_get_pos (pjmedia_port *port)
 
pj_status_t pjmedia_wav_player_set_eof_cb (pjmedia_port *port, void *user_data, pj_status_t(*cb)(pjmedia_port *port, void *usr_data))
 
pj_status_t pjmedia_wav_player_set_eof_cb2 (pjmedia_port *port, void *user_data, void(*cb)(pjmedia_port *port, void *usr_data))
 
pj_status_t pjmedia_wav_writer_port_create (pj_pool_t *pool, const char *filename, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, unsigned flags, pj_ssize_t buff_size, pjmedia_port **p_port)
 
pj_ssize_t pjmedia_wav_writer_port_get_pos (pjmedia_port *port)
 
pj_status_t pjmedia_wav_writer_port_set_cb (pjmedia_port *port, pj_size_t pos, void *user_data, pj_status_t(*cb)(pjmedia_port *port, void *usr_data))
 
pj_status_t pjmedia_wav_writer_port_set_cb2 (pjmedia_port *port, pj_size_t pos, void *user_data, void(*cb)(pjmedia_port *port, void *usr_data))
 

 


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