1 /*********************************************************************** 2 * AUTHOR: Marcus Overhagen 3 * FILE: !missing_symbols.cpp 4 * DESCR: Some undocumented symboles that libmedia.so exports. 5 * All return codes are guessed!!! (void most times means it's still wrong) 6 ***********************************************************************/ 7 #include <MediaTrack.h> 8 #include "debug.h" 9 10 #if 0 11 // SoundPlay 4.8 is evil, uses undocumented media kit API 12 extern "C" void *__get_decoder_manager__Fv(void); 13 void *__get_decoder_manager__Fv(void) { return 0; } 14 extern "C" void ScanDirs__Q28BPrivate13_AddonManager(void *); 15 void ScanDirs__Q28BPrivate13_AddonManager(void *) { } 16 #endif 17 18 /* According to the normal headers, these symbols should neither be 19 * included in libmedia.so, nor used by anything. 20 * But BeOS R5 has them, and they are required to load the BeOS R5 21 * emu10k.media_addon, that might have been compiled with strange headers. 22 * They should be removed once the emu10k.media_addon is no longer used. 23 */ 24 extern "C" void Connect__15BBufferProducerlRC12media_sourceRC17media_destinationRC12media_formatPc(void *); 25 extern "C" status_t Connected__15BBufferConsumerRC12media_sourceRC17media_destinationRC12media_formatP11media_input(void *); 26 27 void Connect__15BBufferProducerlRC12media_sourceRC17media_destinationRC12media_formatPc(void *) 28 { 29 } 30 31 status_t Connected__15BBufferConsumerRC12media_sourceRC17media_destinationRC12media_formatP11media_input(void *) 32 { 33 return B_OK; 34 } 35 36 /* 37 38 used by libgame.so 39 BPrivate::BTrackReader::CountFrames(void) 40 BPrivate::BTrackReader::Format(void) const 41 BPrivate::BTrackReader::FrameSize(void) 42 BPrivate::BTrackReader::ReadFrames(void *, long) 43 BPrivate::BTrackReader::SeekToFrame(long long *) 44 BPrivate::BTrackReader::Track(void) 45 BPrivate::BTrackReader::~BTrackReader(void) 46 BPrivate::BTrackReader::BTrackReader(BMediaTrack *, media_raw_audio_format const &) 47 BPrivate::BTrackReader::BTrackReader(BFile *, media_raw_audio_format const &) 48 BPrivate::dec_load_hook(void *, long) 49 BPrivate::extractor_load_hook(void *, long) 50 rtm_create_pool_etc 51 rtm_get_pool 52 53 used by libmidi.so 54 BSubscriber::IsInStream(void) const 55 BSubscriber::BSubscriber(char const *) 56 00036a94 B BSubscriber type_info node 57 BDACStream::SamplingRate(float *) const 58 BDACStream::SetSamplingRate(float) 59 BDACStream::BDACStream(void) 60 00036a88 B BDACStream type_info node 61 62 used by BeIDE 63 BSubscriber::EnterStream(_sub_info *, bool, void *, bool (*)(void *, char *, unsigned long, void *), long (*)(void *, long), bool) 64 BSubscriber::ExitStream(bool) 65 BSubscriber::ProcessLoop(void) 66 BSubscriber::Subscribe(BAbstractBufferStream *) 67 BSubscriber::Unsubscribe(void) 68 BSubscriber::~BSubscriber(void) 69 BSubscriber::_ReservedSubscriber1(void) 70 BSubscriber::_ReservedSubscriber2(void) 71 BSubscriber::_ReservedSubscriber3(void) 72 BSubscriber::BSubscriber(char const *) 73 001132c0 W BSubscriber type_info function 74 00180484 B BSubscriber type_info node 75 BDACStream::SetSamplingRate(float) 76 BDACStream::~BDACStream(void) 77 BDACStream::BDACStream(void) 78 00180478 B BDACStream type_info node 79 80 used by 3dmiX 81 BDACStream::SetSamplingRate(float) 82 BDACStream::BDACStream(void) 83 000706c4 B BDACStream type_info node 84 BSubscriber::BSubscriber(char const *) 85 000706d0 B BSubscriber type_info node 86 */ 87 88 struct _sub_info 89 { 90 uint32 dummy; 91 }; 92 93 namespace BPrivate 94 { 95 96 int32 media_debug; /* is this a function, or a bool, or an int32 ??? */ 97 98 //BPrivate::BTrackReader move to TrackReader.h & TrackReader.cpp 99 100 /* 101 102 Already in MediaFormats.cpp 103 104 void dec_load_hook(void *, long); 105 void extractor_load_hook(void *, long); 106 107 void dec_load_hook(void *, long) 108 { 109 } 110 111 void extractor_load_hook(void *, long) 112 { 113 } 114 */ 115 116 }; 117 118 class _BMediaRosterP 119 { 120 void AddCleanupFunction(void (*)(void *), void *); 121 void RemoveCleanupFunction(void (*)(void *), void *); 122 }; 123 124 void _BMediaRosterP::AddCleanupFunction(void (*)(void *), void *) 125 { 126 UNIMPLEMENTED(); 127 } 128 129 void _BMediaRosterP::RemoveCleanupFunction(void (*)(void *), void *) 130 { 131 UNIMPLEMENTED(); 132 } 133 134 extern "C" { 135 136 int MIDIisInitializingWorkaroundForDoom; 137 /* 138 139 these two moved to RealtimeAlloc.cpp 140 141 void rtm_create_pool_etc(void); 142 int32 rtm_get_pool(int32,int32 **P); 143 144 void rtm_create_pool_etc(void) 145 { 146 UNIMPLEMENTED(); 147 } 148 149 int32 rtm_get_pool(int32,int32 **p) 150 { 151 UNIMPLEMENTED(); 152 *p = (int32*)0x1199; 153 return B_OK; 154 } 155 156 */ 157 158 159 } 160 161