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 19 RecorderApp::~RecorderApp() 20 { 21 } 22 23 24 status_t 25 RecorderApp::InitCheck() 26 { 27 if (fRecorderWin) 28 return fRecorderWin->InitCheck(); 29 return B_OK; 30 } 31 32 33 int 34 main() 35 { 36 RecorderApp app("application/x-vnd.Haiku-SoundRecorder"); 37 if (app.InitCheck() == B_OK) 38 app.Run(); 39 return 0; 40 } 41