Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Procedural Sound experiencing sound bleed.

I'm in the process of building a waveform oscillator; which while not perfect is developing well.

This particular oscillator is supposed to be able to change waveforms (sin,square,saw,triangle) on the fly, but for whatever reason the previous waveform is bleeding into the new sound.

I can manually clear it by setting the oscillator to 0Hz freq, changing waveform, and then raising the frequency back up.

My code doesn't hang onto the sound data longer than to fill the OnSoundWaveProceduralUnderflow.BindLambda method and the data on my end of the code is cleared immediately thereafter. My best guess is that either SoundWaveProcedural or UAudioComponent is retaining data unintentionally (not my intention anyway).

Is there a method in SoundWaveProcedural or UAudioComponent to flush out old data without having to stop the audioComponent from playing?

Product Version: UE 4.13
more ▼

asked Nov 10 '16 at 11:44 PM in C++ Programming

avatar image

11 1 3 3

avatar image Ironvein Nov 11 '16 at 11:45 PM


Found this method this morning and implemented it, but the results are the same; somehow when I change waveshapes, the previous waveshape persists bleeding into the new sound. And with this methodology, there is no point in my code that 'hangs on' to the old data. How do I clear out this 'echo' I'm getting in my sound without having to stop the sound as it eventually drowns out any waveshape I try to change to?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I'm not 100% sure this is the solution but I realized that UAudioComponent added some unwanted Spatialization and/or Attenuation. Setting those flags (bAllowSpatialization/bOverrideAttenuation) to false seemed to get rid of the phantom echo, except when I first changed the waveshape. As soon as I changed the frequency now the echo seems to disappear.

If someone could explain why that's a thing; I'd appreciate it.

more ▼

answered Nov 14 '16 at 06:12 PM

avatar image

11 1 3 3

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question