BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

sound.h File Reference

Legacy sound device API. More...

Data Structures

struct  pjmedia_snd_dev_info
 
struct  pjmedia_snd_stream_info
 

Typedefs

typedef struct pjmedia_snd_stream pjmedia_snd_stream
 
typedef pj_status_t(* pjmedia_snd_play_cb) (void *user_data, pj_uint32_t timestamp, void *output, unsigned size)
 
typedef pj_status_t(* pjmedia_snd_rec_cb) (void *user_data, pj_uint32_t timestamp, void *input, unsigned size)
 

Functions

pj_status_t pjmedia_snd_init (pj_pool_factory *factory)
 
int pjmedia_snd_get_dev_count (void)
 
const pjmedia_snd_dev_infopjmedia_snd_get_dev_info (unsigned index)
 
pj_status_t pjmedia_snd_set_latency (unsigned input_latency, unsigned output_latency)
 
pj_status_t pjmedia_snd_open (int rec_id, int play_id, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, pjmedia_snd_rec_cb rec_cb, pjmedia_snd_play_cb play_cb, void *user_data, pjmedia_snd_stream **p_snd_strm)
 
pj_status_t pjmedia_snd_open_rec (int index, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, pjmedia_snd_rec_cb rec_cb, void *user_data, pjmedia_snd_stream **p_snd_strm)
 
pj_status_t pjmedia_snd_open_player (int index, unsigned clock_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, pjmedia_snd_play_cb play_cb, void *user_data, pjmedia_snd_stream **p_snd_strm)
 
pj_status_t pjmedia_snd_stream_get_info (pjmedia_snd_stream *strm, pjmedia_snd_stream_info *pi)
 
pj_status_t pjmedia_snd_stream_start (pjmedia_snd_stream *stream)
 
pj_status_t pjmedia_snd_stream_stop (pjmedia_snd_stream *stream)
 
pj_status_t pjmedia_snd_stream_close (pjmedia_snd_stream *stream)
 
pj_status_t pjmedia_snd_deinit (void)
 

 


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