1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-29 02:40:05 +00:00

Added AudioAppExample file in examples

This commit is contained in:
Felix Faire 2014-10-30 12:59:58 +00:00
parent 06b9bdefb6
commit c81ee3b5be
1140 changed files with 442849 additions and 10 deletions

View file

@ -25,29 +25,39 @@ public:
MainContentComponent()
{
setSize (500, 400);
// the the input and output channels (currently Mono in and out)
setAudioChannels (1, 1);
}
~MainContentComponent()
{
shutdownAudio();
}
//=======================================================================
// HANDLE AUDIO
void prepareToPlay (int samplesPerBlockExpected, double sampleRate)
{
}
void releaseResources()
{
// This is called externally with the native paramters when the
// device is ready.
}
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill)
{
// Process your Audio here.
}
void releaseResources()
{
// This gets automatically called when audio device paramters change
// or device is restarted.
}
//=======================================================================
// HANDLE DRAWING
void paint (Graphics& g)
{
// fill background