GVnc.AudioSample¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
capacity |
r/w |
||
data |
r/w |
||
length |
r/w |
Methods¶
class |
|
|
|
|
Details¶
- class GVnc.AudioSample¶
- classmethod new(capacity)¶
- Parameters:
capacity (
int
) – the sample size in bytes- Returns:
the new audio sample.
- Return type:
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:
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