xref: /haiku/src/apps/cortex/addons/Flanger/FlangerApp.cpp (revision d2e1e872611179c9cfaa43ce11bd58b1e3554e4b)
1 // FlangerApp.cpp
2 // e.moon 16jun99
3 
4 #include "MediaNodeControlApp.h"
5 #include <cstdio>
6 #include <cstring>
7 #include <cstdlib>
8 
9 const char* const 	g_pAppSignature = "application/x-vnd.moon-Flanger.media_addon";
10 
11 int main(int argc, char** argv) {
12 	if(argc < 2 || strstr(argv[1], "node=") != argv[1]) {
13 		fprintf(stderr, "Sorry, not a standalone application.\n");
14 		return -1;
15 	}
16 
17 	// start node control panel
18 	media_node_id id = atol(argv[1] + 5);
19 	MediaNodeControlApp app(g_pAppSignature, id);
20 	app.Run();
21 
22 	return 0;
23 }
24 
25 // END -- FlangerApp.cpp --
26