repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / soundrecorder / RecorderApp.cpp
blob8561daf8a145affc63e83bb3059b6b2ca3773428
1 /*
2 * Copyright 2005, Jérôme Duval. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Inspired by SoundCapture from Be newsletter (Media Kit Basics: Consumers and Producers)
6 */
8 #include "RecorderApp.h"
9 #include "RecorderWindow.h"
12 RecorderApp::RecorderApp(const char* signature)
13 : BApplication(signature), fRecorderWin(NULL)
15 fRecorderWin = new RecorderWindow();
19 RecorderApp::~RecorderApp()
24 status_t
25 RecorderApp::InitCheck()
27 if (fRecorderWin)
28 return fRecorderWin->InitCheck();
29 return B_OK;
33 int
34 main()
36 RecorderApp app("application/x-vnd.Haiku-SoundRecorder");
37 if (app.InitCheck() == B_OK)
38 app.Run();
39 return 0;