Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > irrKlang
Play2D with enableSoundEffects not playing some wav files
Author Text

virtualDrummer
Guest
Quote
2019-11-14 21:51:47

I've a problem playing some wave files form Memory with Play2D.

Following source code works with all my wave files:

byte[] sample = File.LoadAllBytes(wavfilename);

_eninge.Play2D(sample,false,false, false);

If I only change last parameter to enable SoundEffects (but not assigning anyone) some wave files are working and some not:

byte[] sample = File.LoadAllBytes(wavfilename);

_eninge.Play2D(sample, false, false, true);

Whats going wrong?


virtualDrummer
Guest
Quote
2019-11-14 22:33:13

I've found out, that this issue appears only with very short/small wave files (under 0,25 seconds). Is there a minimum size for wave files that can be used with effects?


erik
Registered User
Quote
2019-11-16 06:00:09

I guess some sound effects need a minimum length to work. But heard this problem the first time.


Create reply:


Posted by: (you are not logged in)


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


Text:

 

  

Forum 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