‘’’
Hi what are the steps to alter this code with the new OS7 EFFECT_LOOP_SOUND to get a looped sound with the syle code, also where does the wav file go on sd card?
I know very little about coding, any help appreciated
Yeah, I didn’t find it as you’d typed LOOP_SOUND, not SOUND_LOOP.
Seems like you’d use it in a blade style to toggle the playback of a sound named trloop.wav on and off each time you do it.
So as part of a transition layer, you’d include something like: TrDoEffect<TrInstant,EFFECT_SOUND_LOOP>
EFFECT_SOUND_LOOP also needs support from the prop to actually do something, the Fett263 is the only prop that does something with this effect right now.
EFFECT_SOUND_LOOP probably won’t work very well with the above style as you’d be turning it on and off with each pass. EFFECT_SOUND_LOOP is intended for a “state” change that you want to have run on a loop for a period of time until you toggle that “state” off, it’s used like a user-defined Lockup state in coordination with a control and visual effect.
If you just have a sound you want to play within that transition you’d use EFFECT_TRANSITION_SOUND.
If you can explain what you’re looking to do it will be easier to direct you.
Hi Fett! the code is from your thunder and lightning style, i was trying to loop a sound like you did in one of your videos.
It sortof worked but when you switch off the saber the sound loop continues.
Wow thanks for the help, you are a legend😁