Public Member Functions | |
def | __init__ (self, size=4096) |
def | extend (self, data) |
def | get (self) |
Private Attributes | |
_buf | |
Ring buffer to hold audio from PortAudio
Definition at line 21 of file snowboydecoder.py.
def snowboy.snowboydecoder.RingBuffer.__init__ | ( | self, | |
size = 4096 |
|||
) |
Definition at line 23 of file snowboydecoder.py.
def snowboy.snowboydecoder.RingBuffer.extend | ( | self, | |
data | |||
) |
Adds data to the end of buffer
Definition at line 26 of file snowboydecoder.py.
def snowboy.snowboydecoder.RingBuffer.get | ( | self | ) |
Retrieves data from the beginning of buffer and clears it
Definition at line 30 of file snowboydecoder.py.
|
private |
Definition at line 24 of file snowboydecoder.py.