≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Problems with reverb and recurring sounds
Posted by:
(you are not logged in)
Enter the missing letter in: "In?ernational"
(you are not logged in)
Text:
[quote][b]3darkman[/b] wrote: Hello, I'm new here. First of all, I would like to thank Ambiera for making this library available, it is really helping a lot in what i am doing. I am making an application that keeps playing different sounds constantly, including some being recurrent and sometimes even simultaneous, this works smoothly. Whenever I play a sound, I add a reverb effect, if it exists, it can be the same, or a different one, and there is an inconsistency in that, the same sound, playing with the same reverb, sometimes playing without the effect, sometimes with the effect. In addition, if I change the reverb values, it continues to play with the previous values, even though it is a new instance of the same sound. Below is the code used. [code] if (this.element.Is3d) { var position = this.GetPosition(); sound = ElementPlayer.engine.Play3D(soundPath, position.X, 0, position.Y, false, true, StreamMode.Streaming, !this.element.BypassEffects); } else { sound = ElementPlayer.engine.Play2D(soundPath, false, true, StreamMode.Streaming, !this.element.BypassEffects); } if (reverb != null) { var control = sound.SoundEffectControl; if (control != null) { control.EnableI3DL2ReverbSoundEffect(reverb.Room, reverb.RoomHf, reverb.RoomRolloffFactor, reverb.DecayTime, reverb.DecayHfRatio, reverb.Reflections, reverb.ReflectionsDelay, reverb.Reverb, reverb.ReverbDelay, reverb.Diffusion, reverb.Density, reverb.HfReference); } } sound.Paused = false; [/code] some extra information: 1 - I already debugged the code and checked that reserb is never null 2 - if, before calling the Play* function, I place a call to the RemoveAllSoundSources function, the reverb works correctly, but I suppose it is a bad practice, since other sounds will be playing at the moment.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact