1 /*********************************************************************** 2 * AUTHOR: Marcus Overhagen 3 * FILE: Sound.cpp 4 * DESCR: 5 ***********************************************************************/ 6 7 #include <Sound.h> 8 #include "debug.h" 9 10 /************************************************************* 11 * public BSound 12 *************************************************************/ 13 14 BSound::BSound( void * data, 15 size_t size, 16 const media_raw_audio_format & format, 17 bool free_when_done) 18 { 19 UNIMPLEMENTED(); 20 } 21 22 BSound::BSound( const entry_ref * sound_file, 23 bool load_into_memory) 24 { 25 UNIMPLEMENTED(); 26 } 27 28 status_t 29 BSound::InitCheck() 30 { 31 UNIMPLEMENTED(); 32 33 return B_ERROR; 34 } 35 36 BSound * 37 BSound::AcquireRef() 38 { 39 UNIMPLEMENTED(); 40 return NULL; 41 } 42 43 bool 44 BSound::ReleaseRef() 45 { 46 UNIMPLEMENTED(); 47 return false; 48 } 49 50 int32 51 BSound::RefCount() const 52 { 53 UNIMPLEMENTED(); 54 return 0; 55 } // unreliable! 56 57 /* virtual */ bigtime_t 58 BSound::Duration() const 59 { 60 UNIMPLEMENTED(); 61 return 0; 62 } 63 64 /* virtual */ const media_raw_audio_format & 65 BSound::Format() const 66 { 67 UNIMPLEMENTED(); 68 return _m_format; 69 } 70 71 /* virtual */ const void * 72 BSound::Data() const 73 { 74 UNIMPLEMENTED(); 75 return NULL; 76 } /* returns NULL for files */ 77 78 /* virtual */ off_t 79 BSound::Size() const 80 { 81 UNIMPLEMENTED(); 82 return 0; 83 } 84 85 /* virtual */ bool 86 BSound::GetDataAt(off_t offset, 87 void * into_buffer, 88 size_t buffer_size, 89 size_t * out_used) 90 { 91 UNIMPLEMENTED(); 92 return false; 93 } 94 95 /************************************************************* 96 * protected BSound 97 *************************************************************/ 98 99 BSound::BSound(const media_raw_audio_format & format) 100 { 101 UNIMPLEMENTED(); 102 } 103 104 /* virtual */ status_t 105 BSound::Perform(int32 code,...) 106 { 107 UNIMPLEMENTED(); 108 return B_ERROR; 109 } 110 111 /************************************************************* 112 * private BSound 113 *************************************************************/ 114 115 /* 116 BSound::BSound(const BSound &); // unimplemented 117 BSound & BSound::operator=(const BSound &); // unimplemented 118 */ 119 120 void 121 BSound::Reset() 122 { 123 UNIMPLEMENTED(); 124 } 125 126 /* virtual */ 127 BSound::~BSound() 128 { 129 UNIMPLEMENTED(); 130 } 131 132 void 133 BSound::free_data() 134 { 135 UNIMPLEMENTED(); 136 } 137 138 /* static */ status_t 139 BSound::load_entry(void * arg) 140 { 141 UNIMPLEMENTED(); 142 return B_ERROR; 143 } 144 145 void 146 BSound::loader_thread() 147 { 148 UNIMPLEMENTED(); 149 } 150 151 bool 152 BSound::check_stop() 153 { 154 UNIMPLEMENTED(); 155 return false; 156 } 157 158 /************************************************************* 159 * public BSound 160 *************************************************************/ 161 162 /* virtual */ status_t 163 BSound::BindTo(BSoundPlayer * player, 164 const media_raw_audio_format & format) 165 { 166 UNIMPLEMENTED(); 167 return B_ERROR; 168 } 169 170 /* virtual */ status_t 171 BSound::UnbindFrom(BSoundPlayer * player) 172 { 173 UNIMPLEMENTED(); 174 return B_ERROR; 175 } 176 177 /************************************************************* 178 * private BSound 179 *************************************************************/ 180 181 status_t BSound::_Reserved_Sound_0(void *) { return B_ERROR; } 182 status_t BSound::_Reserved_Sound_1(void *) { return B_ERROR; } 183 status_t BSound::_Reserved_Sound_2(void *) { return B_ERROR; } 184 status_t BSound::_Reserved_Sound_3(void *) { return B_ERROR; } 185 status_t BSound::_Reserved_Sound_4(void *) { return B_ERROR; } 186 status_t BSound::_Reserved_Sound_5(void *) { return B_ERROR; } 187 188