Add TAL-Reverb-II plugin to test
[juce-lv2.git] / juce / source / extras / JuceDemo / Source / demos / AudioDemoTabComponent.h
blobe2c3fba3ec584a503ea4e776c6f5d24c07d21319
1 /*
2 ==============================================================================
4 This is an automatically generated file created by the Jucer!
6 Creation date: 1 May 2011 12:07:35pm
8 Be careful when adding custom code to these files, as only the code within
9 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
10 and re-saved.
12 Jucer version: 1.12
14 ------------------------------------------------------------------------------
16 The Jucer is part of the JUCE library - "Jules' Utility Class Extensions"
17 Copyright 2004-6 by Raw Material Software ltd.
19 ==============================================================================
22 #ifndef __JUCER_HEADER_AUDIODEMOTABCOMPONENT_AUDIODEMOTABCOMPONENT_ADE99E0E__
23 #define __JUCER_HEADER_AUDIODEMOTABCOMPONENT_AUDIODEMOTABCOMPONENT_ADE99E0E__
25 //[Headers] -- You can add your own extra header files here --
26 #include "../jucedemo_headers.h"
29 //==============================================================================
30 /* This component scrolls a continuous waveform showing the audio that's currently
31 coming into the audio input.
33 class LiveAudioInputDisplayComp : public Component,
34 public AudioIODeviceCallback,
35 public Timer
37 public:
38 //==============================================================================
39 LiveAudioInputDisplayComp();
40 ~LiveAudioInputDisplayComp();
42 void paint (Graphics& g);
43 void timerCallback();
45 void audioDeviceAboutToStart (AudioIODevice* device);
46 void audioDeviceStopped();
47 void audioDeviceIOCallback (const float** inputChannelData, int numInputChannels,
48 float** outputChannelData, int numOutputChannels, int numSamples);
49 private:
50 float samples [1024];
51 int nextSample, subSample;
52 float accumulator;
54 LiveAudioInputDisplayComp (const LiveAudioInputDisplayComp&);
55 LiveAudioInputDisplayComp& operator= (const LiveAudioInputDisplayComp&);
58 //[/Headers]
62 //==============================================================================
63 /**
64 //[Comments]
65 This component creates the set of tabs that hold the various
66 audio demo pages..
67 //[/Comments]
69 class AudioDemoTabComponent : public Component
71 public:
72 //==============================================================================
73 AudioDemoTabComponent ();
74 ~AudioDemoTabComponent();
76 //==============================================================================
77 //[UserMethods] -- You can add your own custom methods in this section.
78 //[/UserMethods]
80 void paint (Graphics& g);
81 void resized();
85 //==============================================================================
86 juce_UseDebuggingNewOperator
88 private:
89 //[UserVariables] -- You can add your own custom variables in this section.
90 AudioDeviceManager deviceManager;
91 //[/UserVariables]
93 //==============================================================================
94 TabbedComponent* tabbedComponent;
97 //==============================================================================
98 // (prevent copy constructor and operator= being generated..)
99 AudioDemoTabComponent (const AudioDemoTabComponent&);
100 const AudioDemoTabComponent& operator= (const AudioDemoTabComponent&);
104 #endif // __JUCER_HEADER_AUDIODEMOTABCOMPONENT_AUDIODEMOTABCOMPONENT_ADE99E0E__