#include <gapeaudioinput.h>
Inheritance diagram for GapeAudioInput::
Public Slots | |
virtual void | receiveTick (const GapeFloat *values, int numValues) |
Gets samples from the sound card, then emits it for any Units hooked up after it. More... | |
virtual void | stop () |
virtual void | start () |
virtual void | setMute (bool b) |
Mutes the unit. More... | |
virtual void | setNumChannels (int nc) |
We override this method, because we can not dynamically change the number of channels we are receivingor sending under most audio API's (ie directx, OSS). More... | |
Public Methods | |
GapeAudioInput (GapeController *c=NULL, int numChannels=1, int device=-1) | |
The constructor. More... | |
virtual | ~GapeAudioInput () |
Protected Methods | |
void | getMoreData () |
Protected Attributes | |
RtAudio* | input |
bool | properlyInitialized |
GapeIntSample* | soundBuffer |
int | soundBufferSize |
int | currentBufferPosition |
bool | properInitializationReportedFlag |
int | tickCounter |
bool | hasBeenMuted |
Its capabilities (ie channels and sample rates supported) are largely dependant on your sound card.
Definition at line 16 of file gapeaudioinput.h.
|
The constructor.
Definition at line 6 of file gapeaudioinput.cpp. |
|
Gets samples from the sound card, then emits it for any Units hooked up after it. Will either mix input data from the card with incoming sample, or if it receives a null sample as a parameter, will act as a generator.
Reimplemented from GapeUnit. Definition at line 70 of file gapeaudioinput.cpp. |
|
Mutes the unit.
Reimplemented from GapeUnit. Definition at line 37 of file gapeaudioinput.cpp. |
|
We override this method, because we can not dynamically change the number of channels we are receivingor sending under most audio API's (ie directx, OSS). You'll need to construct a new object in this case to change num channels Reimplemented from GapeUnit. Definition at line 49 of file gapeaudioinput.h. |