CSL
6.0
|
#include <CSL_ServerComponent.h>
Public Member Functions | |
CSLServerComponent () | |
~CSLServerComponent () | |
void | audioDeviceIOCallback (const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples) |
void | audioDeviceAboutToStart (AudioIODevice *device) |
void | audioDeviceStopped () |
void | timerCallback () |
void | recordOnOff () |
void | paint (Graphics &g) |
void | resized () |
void | buttonClicked (Button *buttonThatWasClicked) |
void | sliderValueChanged (Slider *sliderThatWasMoved) |
Static Public Attributes | |
static const char * | create_logo_sm_gif = (const char*) resource_CSLServerComponent_create_logo_sm_gif |
static const int | create_logo_sm_gifSize = 4973 |
Private Member Functions | |
CSLServerComponent (const CSLServerComponent &) | |
const CSLServerComponent & | operator= (const CSLServerComponent &) |
Private Attributes | |
AudioDeviceManager | mAudioDeviceManager |
csl::Buffer | outBuffer |
bool | recrding |
bool | playing |
float | amplValue |
TextButton * | playButton |
TextButton * | stopButton |
Label * | label |
TextButton * | prefsButton |
ToggleButton * | RecordButton |
TextButton * | quitButton |
Label * | cpuLabel |
Slider * | amplSlider |
Image * | internalCachedImage1 |
[Comments] An auto-generated component, created by the Jucer.
Describe your class and how it works here! [/Comments]
Definition at line 48 of file CSL_ServerComponent.h.
CSLServerComponent::CSLServerComponent | ( | ) |
Definition at line 77 of file CSL_ServerComponent.cpp.
References amplSlider, cpuLabel, create_logo_sm_gif, create_logo_sm_gifSize, error(), gAudioDeviceManager, gCPULabel, internalCachedImage1, label, mAudioDeviceManager, oscServer(), playButton, prefsButton, quitButton, RecordButton, recrding, and stopButton.
CSLServerComponent::~CSLServerComponent | ( | ) |
Definition at line 168 of file CSL_ServerComponent.cpp.
References amplSlider, cpuLabel, csl::Mixer::deleteInputs(), csl::Buffer::freeBuffers(), gFileBuffer, internalCachedImage1, label, mAudioDeviceManager, playButton, playing, prefsButton, quitButton, RecordButton, and stopButton.
|
private |
void CSLServerComponent::audioDeviceIOCallback | ( | const float ** | inputChannelData, |
int | totalNumInputChannels, | ||
float ** | outputChannelData, | ||
int | totalNumOutputChannels, | ||
int | numSamples | ||
) |
Definition at line 330 of file CSL_ServerComponent.cpp.
References amplValue, gSampIndex, csl::kLogError, csl::logMsg(), csl::Buffer::mBuffers, csl::IO::mGraph, csl::Buffer::mNumFrames, outBuffer, playing, csl::IO::pullInput(), recrding, SAMPS_TO_WRITE, csl::Buffer::setSize(), and csl::CException::what().
void CSLServerComponent::audioDeviceAboutToStart | ( | AudioIODevice * | device | ) |
Definition at line 418 of file CSL_ServerComponent.cpp.
void CSLServerComponent::audioDeviceStopped | ( | ) |
Definition at line 421 of file CSL_ServerComponent.cpp.
void CSLServerComponent::timerCallback | ( | ) |
Definition at line 426 of file CSL_ServerComponent.cpp.
References gAudioDeviceManager, and gCPULabel.
void CSLServerComponent::recordOnOff | ( | ) |
Definition at line 391 of file CSL_ServerComponent.cpp.
References csl::Buffer::allocateBuffers(), gSampIndex, kSoundFileFormatAIFF, csl::logMsg(), csl::Buffer::mNumFrames, recrding, and SAMPS_TO_WRITE.
Referenced by buttonClicked().
void CSLServerComponent::paint | ( | Graphics & | g | ) |
Definition at line 196 of file CSL_ServerComponent.cpp.
References internalCachedImage1.
void CSLServerComponent::resized | ( | ) |
Definition at line 212 of file CSL_ServerComponent.cpp.
References amplSlider, cpuLabel, label, playButton, prefsButton, quitButton, RecordButton, and stopButton.
void CSLServerComponent::buttonClicked | ( | Button * | buttonThatWasClicked | ) |
wait for it to start
Definition at line 226 of file CSL_ServerComponent.cpp.
References csl::IO::clearRoot(), csl::CThread::createThread(), mainOSCLoop(), mAudioDeviceManager, playButton, playing, prefsButton, quitButton, RecordButton, recordOnOff(), recrding, csl::sleepMsec(), csl::sleepSec(), and stopButton.
void CSLServerComponent::sliderValueChanged | ( | Slider * | sliderThatWasMoved | ) |
Definition at line 308 of file CSL_ServerComponent.cpp.
References amplSlider, and amplValue.
|
private |
|
static |
Definition at line 80 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent().
|
static |
Definition at line 81 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent().
|
private |
Definition at line 89 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), and ~CSLServerComponent().
|
private |
Definition at line 90 of file CSL_ServerComponent.h.
Referenced by audioDeviceIOCallback().
|
private |
Definition at line 91 of file CSL_ServerComponent.h.
Referenced by audioDeviceIOCallback(), buttonClicked(), CSLServerComponent(), and recordOnOff().
|
private |
Definition at line 91 of file CSL_ServerComponent.h.
Referenced by audioDeviceIOCallback(), buttonClicked(), and ~CSLServerComponent().
|
private |
Definition at line 92 of file CSL_ServerComponent.h.
Referenced by audioDeviceIOCallback(), and sliderValueChanged().
|
private |
Definition at line 97 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 98 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 99 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 100 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 101 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 102 of file CSL_ServerComponent.h.
Referenced by buttonClicked(), CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 103 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent(), resized(), and ~CSLServerComponent().
|
private |
Definition at line 104 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent(), resized(), sliderValueChanged(), and ~CSLServerComponent().
|
private |
Definition at line 105 of file CSL_ServerComponent.h.
Referenced by CSLServerComponent(), paint(), and ~CSLServerComponent().