Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Weird crunch at end of certain sounds

fair
Registered User
Quote
2016-02-09 07:30:54

I'm probably missing something obvious here but certain sounds appear to have a nasty static crunch at the end of them.

I've checked using audacity and the crunch doesnt exist in the sound file so I believe I've failed at implementing irrKlang correctly.

One of the sounds in question;

https://www.dropbox.com/s/ykbvt7...

and the code I am using to start the playback on a selected sound;


//starting engine//
SoundEngine engines = new ISoundEngine();
//playing the track//
private void soundselected(string track)
{
for (int i = 0; i < this.engines.Count; i++)
{
this.engines[i].StopAllSounds();
if (track != "Stop Playback")
{
this.engines[i].Play2D(track);


}
}
}


Playing the track is fine but it ends with a rather nasty noise.

Any ideas how to fix it?

Thanks for reading.

Edit: Further playing around has found its only the 64bit version that has this issue. 32 bit is clear. Tried it with the C musicplayer example you gave and the problem is there as well.

However I cannot distinguish how this track differs from any others(there are others that do it too apparantly).

Edit2: I have found by opening and exporting the file in question with Audacity the problem no longer exists. However despite trying multiple settings I cannot work out why one file does and the other doesn't work in the 64bit engine.


niko
Moderator
Quote
2016-02-10 03:51:40

Thanks for reporting, sounds like a bug. You can likely work around this by adding some silence to the end of that file. But I'll see if/how this can be fixed for the next irrklang update.


Fair
Guest
Quote
2016-02-10 04:17:18

Hey. Sorry to be the bearer of bad news.

I've done my absolute best but I don't know enough about MP3 files to find any differences between the pre and post audacity version. I set audacity up to export at the same standards as the pre file and it still fixes it despite being as far as I can tell identical.

Not sure if there is different encoding engines for the MP3 format :/.

Do you want me to post the post audacity file as well?

Sorry to ask but how often is irrklang updated?

Would the pro version be any different?

Kind regards and sorry again.


superku
Registered User
Quote
2016-02-16 22:25:14

I've been experiencing some crunching/ crackles and static noise in my project too but so far I couldn't really tell when or with which sound in particular this is happening - assuming it's related to a specific file at all.
I'm going to update this with hopefully new findings.


niko
Moderator
Quote
2016-02-17 14:05:56

No, pro version would be the same. You could send me a file causing this, and I'll have a closer look.


taco24
Registered User
Quote
2016-02-24 12:03:36

I got a crunch at the end of every playing looped file. It doesn't seem to have to do anything with the file-format (wav, ogg, mp3). When playing the file looped in audacity the crackle does not exist.

I use irrKlang-64bit-1.5.0 sound library version 1.5.0 Using ALSA driver.
The application is running under Linux 3.13.0-77-generic 121-Ubuntu SMP. x86_64
Compiling with gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)


Fair
Guest
Quote
2016-02-24 15:07:58

Hello,

One of the files in question is linked in the OP.

I can't seem to find the cause of it. Loading the file in WMP, Audacity, VLC doesn't appear to give the same noise at the end. Exporting the same track from Audacity keeping settings appears to fix the issue for irrKlang.

I cannot find a link between the files that have the issue all have different bitrates and item types.

I only experience the issue with the 64bit DLL.

If you'd like I can upload more instances of files that cause issue.

It's weird as IrrKlang is fine for 99/100 files.

Thank you for looking into it and sorry for the late reply.


capnramses2
Registered User
Quote
2016-02-24 17:45:57

confirm i have this too. it seems to be fairly random and happens after many sounds have played, rather than being an isolated thing with particular sounds. i had a very similar problem with openAL with small repeated sounds (like footsteps) overflowing some internal buffers.

i'm building a game on OS X (64-bit), linux (64-bit and 32-bit), windows (32-bit). i do not have the problem at all on windows or 64-bit linux. it's very noticeably bad on OS X. i also get the problem on a 32-bit linux machine but i don't really care about that.

i'm not 100% sure it's irrklang causing this - it could very well be the coreaudio system not coping with lots of sounds being thrown at it - i don't have a comparison library to test against.


Fair
Guest
Quote
2016-02-24 19:41:47

Sounds like yours may be a different issue then(although related).

The one I'm facing is consistent regardless of number of sounds prior.


taco24
Registered User
Quote
2016-02-24 20:36:46

When I use the sad_trombone.mp3 audio file in this thread and loop it in my application I get a very loud crunch every time the file loops.
My code looks like this:

ISoundEngine* sndEngine = createIrrKlangDevice();
core::stringc sndFile1(mediaPath + "sounds/sadtrombone.mp3");
ISound* carNoise = sndEngine->play2D(sndFile1.c_str(), true, false, true);
if (carNoise)
carNoise->setVolume(0.5f);



Fair
Guest
Quote
2016-04-14 12:46:40

Hello,

Have you had any luck recreating the problem?


andrewch
Registered User
Quote
2016-06-06 10:14:01

I am not sure if this helps -- sometime ago I had what seems to be a similar problem. I my case I was able to fix the symptom that I had by making the sound file I was looping into a mono sound file (whereas it had previously been stereo).

I am not sure why this works, or why there should have been a nasty sound at the repeat point. But for what I was doing, making the file mono was fine.


Fair
Guest
Quote
2016-06-10 23:21:09

Ill give this a try thanks for letting me know :).


nicolredmay
Registered User
Quote
2016-08-13 15:06:29

I really take issue with others who complain about me chewing too loudly despite the fact that I try to keep it under control; this is why I prefer to either eat alone or in environments with at least a small amount of background noise...

Thanks , :)
www.3d-architectural-rendering.com/3D-Floor-Plan.html


shadynl
Registered User
Quote
2016-08-15 16:18:22

maybe you can cut the sound a bit? there are many tools online where you can cut your mp3 within seconds:)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (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