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