Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Simple effect in C#(dot.NET2.0)

ero
Guest
Quote
2009-01-27 16:09:26

i have problem with effects..

ISoundEffectControl fx = null;
            fx = lewyPlayingSound.SoundEffectControl;
            fx.EnableDistortionSoundEffect();

compiler doesnt show any error.. but when i click a effect button debugger light up: x.EnableDistortionSoundEffect();

has anybody any solution?


niko
Moderator
Quote
2009-01-27 16:21:18

Maybe you should test if fx is null? I guess it is.


ero
Guest
Quote
2009-01-27 16:36:25

ISoundEffectControl fx = null;
fx = lewyPlayingSound.SoundEffectControl;
  if (fx.IsDistortionSoundEffectEnabled)
{
  fx.DisableDistortionSoundEffect();
}
else
   fx.EnableDistortionSoundEffect();

i try like this and the same problem.


niko
Moderator
Quote
2009-01-28 09:36:08

When calling play2D or play3D, there is a parameter which you need to set to 'true' in order to enable sound effects on a sound.


ero
Guest
Quote
2009-01-28 10:39:09

for example?


onenight
Registered User
Quote
2012-06-04 20:41:59

ISoundSource sound = Engine.AddSoundSourceFromFile(@"C:\example.xm"", StreamMode.NoStreaming, true);


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internationa?" (you are not logged in)


Text:

 

  

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