#include <synth.h>
Public Member Functions | |
| Queue () | |
| uint8_t | read (uint32_t *x) |
| uint8_t | write (uint32_t x) |
Private Member Functions | |
| int | size (void) |
| int | empty (void) |
| int | full (void) |
Private Attributes | |
| int | wpointer |
| int | rpointer |
| uint32_t | buffer [BUFSIZE] |
A queue containing unsigned 32-bit samples. WARNING: This class provides NO protection against interrupts. That must be done by the user:
Internal implementation is a fixed-size circular buffer.
|
inlineprivate |
|
inlineprivate |
| uint8_t Queue::read | ( | uint32_t * | x | ) |
Read a sample from the queue.
| x | a pointer to the variable to store the sample in |
Definition at line 100 of file synth.cpp.
Referenced by Synth::get_sample().


|
inlineprivate |
| uint8_t Queue::write | ( | uint32_t | x | ) |
Write a sample to the queue.
| x | the sample to be written |
Definition at line 107 of file synth.cpp.
Referenced by Synth::write_sample().


|
private |
|
private |
|
private |
1.8.6