Lines Matching refs:so

213     soundObject *so = (soundObject*)(((AXVPB*)p)->userContext);  in voiceDrop()  local
215 if (so) in voiceDrop()
218 so->voice = NULL; in voiceDrop()
221 AXARTRemoveSound(&so->axartSound); in voiceDrop()
237 static void startSound(soundObject *so, SPSoundTable *st, u32 i) in startSound() argument
240 so->voice = AXAcquireVoice(15, &voiceDrop, (u32)so); in startSound()
242 if (so->voice) in startSound()
245 so->sound = SPGetSoundEntry(st, i); in startSound()
247 if (so->sound) in startSound()
250 SPPrepareSound(so->sound, so->voice, 0); in startSound()
253 AXARTInitSound (&so->axartSound, so->voice, so->sound->sampleRate); in startSound()
256 AXARTInitArt3D (&so->axart3d); in startSound()
257 AXARTInitArtPitch (&so->axartPitch); in startSound()
258 AXARTInitArtVolume (&so->axartVolume); in startSound()
259 AXARTInitArtAuxAVolume (&so->axartAuxAVolume); in startSound()
260 AXARTInitArtAuxBVolume (&so->axartAuxBVolume); in startSound()
261 AXARTInitArtAuxCVolume (&so->axartAuxCVolume); in startSound()
264 so->axartAuxAVolume.attenuation = -904 << 16; in startSound()
265 so->axartAuxBVolume.attenuation = -904 << 16; in startSound()
266 so->axartAuxCVolume.attenuation = -904 << 16; in startSound()
269 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axart3d); in startSound()
270 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartPitch); in startSound()
271 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartVolume); in startSound()
272 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxAVolume); in startSound()
273 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxBVolume); in startSound()
274 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxCVolume); in startSound()
277 AXARTAddSound(&so->axartSound); in startSound()
280 AXSetVoiceState(so->voice, AX_PB_STATE_RUN); in startSound()
285 AXFreeVoice(so->voice); in startSound()
328 static void killSound(soundObject *so) in killSound() argument
330 if (so->voice) in killSound()
333 AXARTRemoveSound(&so->axartSound); in killSound()
336 AXFreeVoice(so->voice); in killSound()
339 so->voice = NULL; in killSound()