Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Macros | Typedefs | Functions
rtp_media.h File Reference
`#include <glib.h>`

Go to the source code of this file.

## Classes
struct | _rtp_packet

## Macros
#define | SAMPLE_MAX G_MAXINT16
#define | SAMPLE_MIN G_MININT16

## Typedefs
typedef gint16 | SAMPLE
typedef struct _rtp_packet | rtp_packet_t

## Functions
GHashTable * | rtp_decoder_hash_table_new (void)
size_t | decode_rtp_packet (rtp_packet_t *rp, SAMPLE **out_buff, GHashTable *decoders_hash, unsigned *channels_ptr, unsigned *sample_rate_ptr)

## Detailed Description

"RTP Player" dialog box common routines.

## Function Documentation

size_t decode_rtp_packet | ( | rtp_packet_t * | rp,
|  | SAMPLE ** | out_buff,
|  | GHashTable * | decoders_hash,
|  | unsigned * | channels_ptr,
|  | unsigned * | sample_rate_ptr
| ) |  |

Decode an RTP packet

Parameters

  rp | Wrapper for per-packet RTP tap data.
  out_buff | Output audio samples.
  decoders_hash | Hash table created with rtp_decoder_hash_table_new.
  channels_ptr | If non-NULL, receives the number of channels in the sample.
  sample_rate_ptr | If non-NULL, receives the sample rate.

Returns
  The number of decoded bytes on success, 0 on failure.

GHashTable* rtp_decoder_hash_table_new | ( | void |  | ) |

Create a new hash table.

Returns
  A new hash table suitable for passing to decode_rtp_packet.