Lines Matching refs:so
222 soundObject *so = (soundObject*)(((AXVPB*)p)->userContext); in voiceDrop() local
224 if (so) in voiceDrop()
227 so->voice = NULL; in voiceDrop()
230 AXARTRemoveSound(&so->axartSound); in voiceDrop()
246 static void startSound(soundObject *so, SPSoundTable *st, u32 i) in startSound() argument
249 so->voice = AXAcquireVoice(15, &voiceDrop, (u32)so); in startSound()
251 if (so->voice) in startSound()
254 so->sound = SPGetSoundEntry(st, i); in startSound()
256 if (so->sound) in startSound()
259 SPPrepareSound(so->sound, so->voice, 0); in startSound()
262 AXARTInitSound (&so->axartSound, so->voice, so->sound->sampleRate); in startSound()
265 AXARTInitArt3D (&so->axart3d); in startSound()
266 AXARTInitArtPitch (&so->axartPitch); in startSound()
267 AXARTInitArtVolume (&so->axartVolume); in startSound()
268 AXARTInitArtAuxAVolume (&so->axartAuxAVolume); in startSound()
269 AXARTInitArtAuxBVolume (&so->axartAuxBVolume); in startSound()
270 AXARTInitArtAuxCVolume (&so->axartAuxCVolume); in startSound()
273 so->axartAuxAVolume.attenuation = -904 << 16; in startSound()
274 so->axartAuxBVolume.attenuation = -904 << 16; in startSound()
275 so->axartAuxCVolume.attenuation = -904 << 16; in startSound()
278 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axart3d); in startSound()
279 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartPitch); in startSound()
280 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartVolume); in startSound()
281 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxAVolume); in startSound()
282 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxBVolume); in startSound()
283 AXARTAddArticulator (&so->axartSound, (AXART_ART*)&so->axartAuxCVolume); in startSound()
286 AXARTAddSound(&so->axartSound); in startSound()
289 AXSetVoiceState(so->voice, AX_PB_STATE_RUN); in startSound()
294 AXFreeVoice(so->voice); in startSound()
337 static void killSound(soundObject *so) in killSound() argument
339 if (so->voice) in killSound()
342 AXARTRemoveSound(&so->axartSound); in killSound()
345 AXFreeVoice(so->voice); in killSound()
348 so->voice = NULL; in killSound()