ultimatepp/bazaar/SoundExample/SoundExample.h
dolik bcd0dcd003 .bazaar/SoundExample: selectable input device for recording
git-svn-id: svn://ultimatepp.org/upp/trunk@3825 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-09-05 18:24:34 +00:00

37 lines
842 B
C++

#ifndef _portaudioTest_AudioTest_h_
#define _portaudioTest_AudioTest_h_
#include <Sound/Sound.h>
#include <plugin/wav/wav.h>
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <SoundExample/SoundExample.lay>
#include <CtrlCore/lay.h>
#define IMAGECLASS SoundImg
#define IMAGEFILE <SoundExample/SoundExample.iml>
#include <Draw/iml_header.h>
#include "Wave.h"
#include "Info.h"
#include "Record.h"
#include "Wav.h"
class AudioApp:public WithAudioLayout<TopWindow>{
public:
typedef AudioApp CLASSNAME;
AudioInfo info;
Wave wave;
Record record;
Wav wav;
AudioApp(){
CtrlLayout(*this,"Audio Example");
Sizeable().Icon(SoundImg::Device());
tabs.Add(info.SizePos(),"Device Info");
tabs.Add(wave.SizePos(),"Device test");
tabs.Add(record.SizePos(),"Record");
tabs.Add(wav.SizePos(),"Wav file");
}
};
#endif