xref: /haiku/src/apps/soundrecorder/RecorderApp.cpp (revision 4f00613311d0bd6b70fa82ce19931c41f071ea4e)
1 /*
2  * Copyright 2005, Jérôme Duval. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Inspired by SoundCapture from Be newsletter (Media Kit Basics: Consumers and Producers)
6  */
7 
8 #include "RecorderApp.h"
9 #include "RecorderWindow.h"
10 
11 
12 RecorderApp::RecorderApp(const char * signature) :
13 	BApplication(signature), fRecorderWin(NULL)
14 {
15 	fRecorderWin = new RecorderWindow();
16 }
17 
18 RecorderApp::~RecorderApp()
19 {
20 }
21 
22 
23 status_t
24 RecorderApp::InitCheck()
25 {
26 	if (fRecorderWin)
27 		return fRecorderWin->InitCheck();
28 	return B_OK;
29 }
30 
31 
32 int
33 main()
34 {
35 	RecorderApp app("application/x-vnd.Haiku-SoundRecorder");
36 	if (app.InitCheck() == B_OK)
37 		app.Run();
38 	return 0;
39 }
40