GVnc.AudioSample

Fields

Name

Type

Access

Description

capacity

int

r/w

data

int

r/w

length

int

r/w

Methods

class

new (capacity)

copy ()

free ()

Details

class GVnc.AudioSample
classmethod new(capacity)
Parameters:

capacity (int) – the sample size in bytes

Returns:

the new audio sample.

Return type:

GVnc.AudioSample

Allocate a new audio sample able to store capacity bytes of audio data.

The returned sample must be freed with GVnc.AudioSample.free when no longer required.

copy()
Returns:

the new audio sample.

Return type:

GVnc.AudioSample

Allocate a new audio sample, initializing it with a copy of the data in self.

The returned sample must be freed with GVnc.AudioSample.free when no longer required.

free()

Release memory associated with the audio sample self