gvPlayPacket

GameSpy SDK

gvPlayPacket

Plays a packet retrieved from the capture buffer.

void gvPlayPacket(
GVDevice device,
const GVByte * packet,
int len,
GVSource source,
GVFrameStamp frameStamp,
GVBool mute );
RoutineRequired HeaderDistribution
gvPlayPacket<gv.h>SDKZIP

Parameters

device
[in] The handle to the playback device.
packet
[in] The packet with audio data.
len
[in] The packet's length.
source
[in] The source that originated the audio.
frameStamp
[in] The packet's frame stamp.
mute
[in] Mutes the packet - allows having a player muted, but keeping track of the fact that the source is really speaking

Remarks

GV will schedule the packet to be played soon. A short delay is added which enables the packets to be synchronized before they are played, allowing for variations in Internet transit time and application timing. The packet is synchronized based on its source, so you must ensure that each unique talker has his own unique source, and all packets are played using the correct source. Note that the same packet can be played on multiple playback devices.

The application must also call gvThink on a regular basis to ensure that the packets are actually played.

Section Reference: Gamespy Voice SDK

See Also: gvCapturePacket, gvThink