WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJMEDIA Reference

pjmedia_aud_dev_factory_op Struct Reference

#include <audiodev_imp.h>

Data Fields

pj_status_t(* init )(pjmedia_aud_dev_factory *f)
 
pj_status_t(* destroy )(pjmedia_aud_dev_factory *f)
 
unsigned(* get_dev_count )(pjmedia_aud_dev_factory *f)
 
pj_status_t(* get_dev_info )(pjmedia_aud_dev_factory *f, unsigned index, pjmedia_aud_dev_info *info)
 
pj_status_t(* default_param )(pjmedia_aud_dev_factory *f, unsigned index, pjmedia_aud_param *param)
 
pj_status_t(* create_stream )(pjmedia_aud_dev_factory *f, const pjmedia_aud_param *param, pjmedia_aud_rec_cb rec_cb, pjmedia_aud_play_cb play_cb, void *user_data, pjmedia_aud_stream **p_aud_strm)
 
pj_status_t(* refresh )(pjmedia_aud_dev_factory *f)
 

Detailed Description

Sound device factory operations.

Field Documentation

◆ init

pj_status_t(* pjmedia_aud_dev_factory_op::init) (pjmedia_aud_dev_factory *f)

Initialize the audio device factory.

Parameters
fThe audio device factory.

◆ destroy

pj_status_t(* pjmedia_aud_dev_factory_op::destroy) (pjmedia_aud_dev_factory *f)

Close this audio device factory and release all resources back to the operating system.

Parameters
fThe audio device factory.

◆ get_dev_count

unsigned(* pjmedia_aud_dev_factory_op::get_dev_count) (pjmedia_aud_dev_factory *f)

Get the number of audio devices installed in the system.

Parameters
fThe audio device factory.

◆ get_dev_info

pj_status_t(* pjmedia_aud_dev_factory_op::get_dev_info) (pjmedia_aud_dev_factory *f, unsigned index, pjmedia_aud_dev_info *info)

Get the audio device information and capabilities.

Parameters
fThe audio device factory.
indexDevice index.
infoThe audio device information structure which will be initialized by this function once it returns successfully.

◆ default_param

pj_status_t(* pjmedia_aud_dev_factory_op::default_param) (pjmedia_aud_dev_factory *f, unsigned index, pjmedia_aud_param *param)

Initialize the specified audio device parameter with the default values for the specified device.

Parameters
fThe audio device factory.
indexDevice index.
paramThe audio device parameter.

◆ create_stream

pj_status_t(* pjmedia_aud_dev_factory_op::create_stream) (pjmedia_aud_dev_factory *f, const pjmedia_aud_param *param, pjmedia_aud_rec_cb rec_cb, pjmedia_aud_play_cb play_cb, void *user_data, pjmedia_aud_stream **p_aud_strm)

Open the audio device and create audio stream. See pjmedia_aud_stream_create()

◆ refresh

pj_status_t(* pjmedia_aud_dev_factory_op::refresh) (pjmedia_aud_dev_factory *f)

Refresh the list of audio devices installed in the system.

Parameters
fThe audio device factory.

The documentation for this struct was generated from the following file:
  • audiodev_imp.h

 


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