xref: /haiku/src/add-ons/media/plugins/ape_reader/LibMonkeysAudio/LibMonkeysAudio.cpp (revision 0b8b543af806b0f3622ed9dc00a9ad0f27a8be3d)
1b51fbe43SDavid McPaul #include <InterfaceDefs.h>
2b51fbe43SDavid McPaul 
3b51fbe43SDavid McPaul /*============================================================================*/
4b51fbe43SDavid McPaul const char*	gAppName = "Lib Monkey's Audio";
5b51fbe43SDavid McPaul const char*	gAppVer = "Ver 1.65";
6b51fbe43SDavid McPaul const char*	gCright = "Copyright "B_UTF8_COPYRIGHT" 2003-2008 by SHINTA";
7b51fbe43SDavid McPaul const char*	gOriginal = "MAC library Copyright "B_UTF8_COPYRIGHT" by Matthew T. Ashland";
8b51fbe43SDavid McPaul const char*	gAppSignature = "application/x-vnd.SHINTA-LibMonkeysAudio";
9b51fbe43SDavid McPaul /*============================================================================*/
10b51fbe43SDavid McPaul 
11b51fbe43SDavid McPaul /*=== Memo =====================================================================
12b51fbe43SDavid McPaul ==============================================================================*/
13b51fbe43SDavid McPaul 
14b51fbe43SDavid McPaul //------------------------------------------------------------------------------
15b51fbe43SDavid McPaul #include "LibMonkeysAudio.h"
16b51fbe43SDavid McPaul //------------------------------------------------------------------------------
17b51fbe43SDavid McPaul // BeOS
18b51fbe43SDavid McPaul // C++
19b51fbe43SDavid McPaul #include <string>
20b51fbe43SDavid McPaul // Add2
21b51fbe43SDavid McPaul //===========================================================================
22b51fbe43SDavid McPaul CAPETag*	create_capetag_1(CIO* oIO, BOOL oAnalyze)
23b51fbe43SDavid McPaul {
24b51fbe43SDavid McPaul 	return new CAPETag(oIO, oAnalyze);
25b51fbe43SDavid McPaul }
26b51fbe43SDavid McPaul //------------------------------------------------------------------------------
27b51fbe43SDavid McPaul CAPETag*	create_capetag_2(const char* oFilename, BOOL oAnalyze)
28b51fbe43SDavid McPaul {
29b51fbe43SDavid McPaul 	return new CAPETag(oFilename, oAnalyze);
30b51fbe43SDavid McPaul }
31b51fbe43SDavid McPaul //------------------------------------------------------------------------------
32b51fbe43SDavid McPaul void	destroy_capetag(CAPETag* oAPETag)
33b51fbe43SDavid McPaul {
34b51fbe43SDavid McPaul 	delete oAPETag;
35b51fbe43SDavid McPaul }
36b51fbe43SDavid McPaul //------------------------------------------------------------------------------
37b51fbe43SDavid McPaul const char*	lib_monkeys_audio_components()
38b51fbe43SDavid McPaul {
39b51fbe43SDavid McPaul 	return gOriginal;
40b51fbe43SDavid McPaul }
41b51fbe43SDavid McPaul //------------------------------------------------------------------------------
42b51fbe43SDavid McPaul const char*	lib_monkeys_audio_copyright()
43b51fbe43SDavid McPaul {
44*0b8b543aSIngo Weinhold 	static std::string	saCright;
45b51fbe43SDavid McPaul 
46*0b8b543aSIngo Weinhold 	saCright = std::string(gCright)+"\n"+gOriginal;
47b51fbe43SDavid McPaul 	return saCright.c_str();
48b51fbe43SDavid McPaul }
49b51fbe43SDavid McPaul //------------------------------------------------------------------------------
50b51fbe43SDavid McPaul const char*	lib_monkeys_audio_name()
51b51fbe43SDavid McPaul {
52b51fbe43SDavid McPaul 	return gAppName;
53b51fbe43SDavid McPaul }
54b51fbe43SDavid McPaul //------------------------------------------------------------------------------
55b51fbe43SDavid McPaul const char*	lib_monkeys_audio_version()
56b51fbe43SDavid McPaul {
57b51fbe43SDavid McPaul 	return gAppVer;
58b51fbe43SDavid McPaul }
59b51fbe43SDavid McPaul //===========================================================================
60