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

The simplest type of media port which does nothing. More...

Functions

pj_status_t pjmedia_null_port_create (pj_pool_t *pool, unsigned sampling_rate, unsigned channel_count, unsigned samples_per_frame, unsigned bits_per_sample, pjmedia_port **p_port)
 

Detailed Description

Function Documentation

◆ pjmedia_null_port_create()

pj_status_t pjmedia_null_port_create ( pj_pool_t pool,
unsigned  sampling_rate,
unsigned  channel_count,
unsigned  samples_per_frame,
unsigned  bits_per_sample,
pjmedia_port **  p_port 
)

Create Null port.

Parameters
poolPool to allocate memory.
sampling_rateSampling rate of the port.
channel_countNumber of channels.
samples_per_frameNumber of samples per frame.
bits_per_sampleNumber of bits per sample.
p_portPointer to receive the port instance.
Returns
PJ_SUCCESS on success.

References PJ_END_DECL.

 


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