2 ==============================================================================
4 This is an automatically generated file created by the Jucer!
6 Creation date: 1 May 2011 12:08:14pm
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
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_AUDIODEMOPLAYBACKPAGE_AUDIODEMOPLAYBACKPAGE_81B4F279__
23 #define __JUCER_HEADER_AUDIODEMOPLAYBACKPAGE_AUDIODEMOPLAYBACKPAGE_81B4F279__
25 //[Headers] -- You can add your own extra header files here --
26 #include "../jucedemo_headers.h"
27 class DemoThumbnailComp
;
32 //==============================================================================
35 An auto-generated component, created by the Jucer.
37 Describe your class and how it works here!
40 class AudioDemoPlaybackPage
: public Component
,
41 public FileBrowserListener
,
42 public ButtonListener
,
46 //==============================================================================
47 AudioDemoPlaybackPage (AudioDeviceManager
& deviceManager_
);
48 ~AudioDemoPlaybackPage();
50 //==============================================================================
51 //[UserMethods] -- You can add your own custom methods in this section.
53 // These methods are our FileBrowserListener implementation:
54 void selectionChanged();
55 void fileClicked (const File
& file
, const MouseEvent
& e
);
56 void fileDoubleClicked (const File
& file
);
57 void showFile (const File
& file
);
60 void paint (Graphics
& g
);
62 void buttonClicked (Button
* buttonThatWasClicked
);
63 void sliderValueChanged (Slider
* sliderThatWasMoved
);
67 //==============================================================================
68 juce_UseDebuggingNewOperator
71 //[UserVariables] -- You can add your own custom variables in this section.
72 AudioDeviceManager
& deviceManager
;
73 TimeSliceThread thread
;
74 DirectoryContentsList directoryList
;
76 AudioSourcePlayer audioSourcePlayer
;
77 AudioTransportSource transportSource
;
78 ScopedPointer
<AudioFormatReaderSource
> currentAudioFileSource
;
80 void loadFileIntoTransport (const File
& audioFile
);
83 //==============================================================================
85 DemoThumbnailComp
* thumbnail
;
86 TextButton
* startStopButton
;
87 FileTreeComponent
* fileTreeComp
;
92 //==============================================================================
93 // (prevent copy constructor and operator= being generated..)
94 AudioDemoPlaybackPage (const AudioDemoPlaybackPage
&);
95 const AudioDemoPlaybackPage
& operator= (const AudioDemoPlaybackPage
&);
99 #endif // __JUCER_HEADER_AUDIODEMOPLAYBACKPAGE_AUDIODEMOPLAYBACKPAGE_81B4F279__