Objective Systems, Inc.  

oosndrtp.h File Reference

This file contains functions to read from sound device and playback. More...

#include <stdlib.h>
#include "ootypes.h"
#include <dlfcn.h>

Go to the source code of this file.

Typedefs

typedef int(*) MediaAPI_CreateTxRTPChan (int *channelId, char *destip, int port)
 Signature for function to Create Tx RTP channel.
typedef int(*) MediaAPI_CloseTxRTPChan (int)
 Signature for function to Close Tx RTP channel.
typedef int(*) MediaAPI_CreateRecvRTPChan (int *channelId, char *localip, int localport)
 Signature for function to Create Rx RTP channel.
typedef int(*) MediaAPI_CloseRecvRTPChan (int)
 Signature for function to Close Rx RTP channel.
typedef int(*) MediaAPI_StartTxWaveFile (int channelId, char *filename)
 Signature for function to Start transmission of media file.
typedef int(*) MediaAPI_StopTxWaveFile (int channelId)
 Signature for function to Stop transmission of media file.
typedef int(*) MediaAPI_StartTxMic (int channelId)
 Signature for function to Start transmitting captured audio from microphone.
typedef int(*) MediaAPI_StopTxMic (int channelId)
 Signature for function to Stop transmitting microphone data.
typedef int(*) MediaAPI_StartRecvAndPlayback (int channelId)
 Signature for function to Start receiving rtp data and playback.
typedef int(*) MediaAPI_StopRecvAndPlayback (int channelId)
 Signature for function to stop receiving rtp data.
typedef int(*) MediaAPI_InitializePlugin ()
 Signature for function to Initialize the media plug-in.

Functions

EXTERN int ooLoadSndRTPPlugin (char *name)
 Loads the media plugin into the process space.
EXTERN int ooReleaseSndRTPPlugin ()
 Unloads the plug-in from process space.
EXTERN int ooCreateTransmitRTPChannel (char *destip, int port)
 Creates a transmit RTP channel.
EXTERN int ooCloseTransmitRTPChannel ()
 Closes a transmit RTP channel.
EXTERN int ooCreateReceiveRTPChannel (char *localip, int localport)
 Creates a receive RTP channel.
EXTERN int ooCloseReceiveRTPChannel ()
 Closes a receive RTP channel.
EXTERN int ooStartTransmitWaveFile (char *filename)
 Start transmitting a audio file.
EXTERN int ooStopTransmitWaveFile ()
 Stop transmission of a audio file.
EXTERN int ooStartTransmitMic ()
 Starts capturing audio data from mic and transmits it as rtp stream.
EXTERN int ooStopTransmitMic ()
 Stop transmission of mic audio data.
EXTERN int ooStartReceiveAudioAndPlayback ()
 Starts receiving rtp stream data and play it on the speakers.
EXTERN int ooStopReceiveAudioAndPlayback ()
 Stop receiving rtp stream data.This calls corresponding interface function of the plug-in library.
EXTERN int ooStartReceiveAudioAndRecord ()
 Not suuported currently.
EXTERN int ooStopReceiveAudioAndRecord ()
 Not supported currently.
EXTERN int ooSetLocalRTPAndRTCPAddrs ()
 Set local RTP and RTCP addresses for the session.
EXTERN int ooRTPShutDown ()
 Closes transmit and receive RTP channels, if open.

Variables

void * media


Detailed Description

This file contains functions to read from sound device and playback.

It also provides a wrapper for oRTP function calls and creates threads for receiving and sending rtp packets.

Definition in file oosndrtp.h.


This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1