audio_play_sound_at update position

Kyon

Member
Heya all, I noticed that audio_play_sound_at doesn't update the position.
Let's say, it's x,y,0, the sound doesn't move with the x and y positions, it just starts there.
Is there a way to update the x and y positions without using emitters?


Kyon.
 

obscene

Member
Nope, gotta use emitters. :) They aren't hard though. Create one. Play a sound on it. Move it. Destroy it in object destroy or room end.
 

Kyon

Member
Nope, gotta use emitters. :) They aren't hard though. Create one. Play a sound on it. Move it. Destroy it in object destroy or room end.
Bleh too bad. Thanks though.

(any chance you know how hard those emitters are on CPU?)
Just finished removing all emitters from my particles systems (which helped a lot)


EDIT: also, how to destroy audio emitters. Is that the same as audio_emitter_free ?
 

obscene

Member
I doubt they have much of any effect on CPU. I use a ton and never seen anything audio-related creeping up on the profiler.

Yes, audio_emitter_free(), I mispoke.
 
Top