1 /** 2 * Copyright (c) 2006-2011 LOVE Development Team 3 * 4 * This software is provided 'as-is', without any express or implied 5 * warranty. In no event will the authors be held liable for any damages 6 * arising from the use of this software. 7 * 8 * Permission is granted to anyone to use this software for any purpose, 9 * including commercial applications, and to alter it and redistribute it 10 * freely, subject to the following restrictions: 11 * 12 * 1. The origin of this software must not be misrepresented; you must not 13 * claim that you wrote the original software. If you use this software 14 * in a product, an acknowledgment in the product documentation would be 15 * appreciated but is not required. 16 * 2. Altered source versions must be plainly marked as such, and must not be 17 * misrepresented as being the original software. 18 * 3. This notice may not be removed or altered from any source distribution. 19 **/ 20 21 #include "Audio.h" 22 23 namespace love 24 { 25 namespace audio 26 { 27 namespace null 28 { Audio()29 Audio::Audio() 30 { 31 } 32 ~Audio()33 Audio::~Audio() 34 { 35 } 36 getName() const37 const char * Audio::getName() const 38 { 39 return "love.audio.null"; 40 } 41 newSource(love::sound::Decoder *)42 love::audio::Source * Audio::newSource(love::sound::Decoder *) 43 { 44 return new Source(); 45 } 46 newSource(love::sound::SoundData *)47 love::audio::Source * Audio::newSource(love::sound::SoundData *) 48 { 49 return new Source(); 50 } 51 getNumSources() const52 int Audio::getNumSources() const 53 { 54 return 0; 55 } 56 getMaxSources() const57 int Audio::getMaxSources() const 58 { 59 return 0; 60 } 61 play(love::audio::Source *)62 void Audio::play(love::audio::Source *) 63 { 64 } 65 play()66 void Audio::play() 67 { 68 } 69 stop(love::audio::Source *)70 void Audio::stop(love::audio::Source *) 71 { 72 } 73 stop()74 void Audio::stop() 75 { 76 } 77 pause(love::audio::Source *)78 void Audio::pause(love::audio::Source *) 79 { 80 } 81 pause()82 void Audio::pause() 83 { 84 } 85 resume(love::audio::Source *)86 void Audio::resume(love::audio::Source *) 87 { 88 } 89 resume()90 void Audio::resume() 91 { 92 } 93 rewind(love::audio::Source *)94 void Audio::rewind(love::audio::Source *) 95 { 96 } 97 rewind()98 void Audio::rewind() 99 { 100 } 101 setVolume(float volume)102 void Audio::setVolume(float volume) 103 { 104 this->volume = volume; 105 } 106 getVolume() const107 float Audio::getVolume() const 108 { 109 return volume; 110 } 111 getPosition(float *) const112 void Audio::getPosition(float *) const 113 { 114 } 115 setPosition(float *)116 void Audio::setPosition(float *) 117 { 118 } 119 getOrientation(float *) const120 void Audio::getOrientation(float *) const 121 { 122 } 123 setOrientation(float *)124 void Audio::setOrientation(float *) 125 { 126 } 127 getVelocity(float *) const128 void Audio::getVelocity(float *) const 129 { 130 } 131 setVelocity(float *)132 void Audio::setVelocity(float *) 133 { 134 } 135 record()136 void Audio::record() 137 { 138 } 139 getRecordedData()140 love::sound::SoundData * Audio::getRecordedData() 141 { 142 return NULL; 143 } 144 stopRecording(bool)145 love::sound::SoundData * Audio::stopRecording(bool) 146 { 147 return NULL; 148 } 149 canRecord()150 bool Audio::canRecord() 151 { 152 return false; 153 } 154 155 } // null 156 } // audio 157 } // love 158