Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Static in sounds?

thedevilsjester
Registered User
Quote
2012-01-30 00:35:27

When using irrKlang to play sounds often the sounds come out scratchy as if they were being played on an FM stereo with poor reception. When this happens, any and all sounds I play that session, come out scratchy. If I restart my executable, and try again, sometimes they will play perfectly.

I get this behavior in two (completely) separate applications, on two completely different computers, on (at least) Linux and Mac OS X.

I initialize irrKlang, and play sounds with the following code:

ISoundEngine engine = createIrrKlangDevice();
engine->play2D(file_path.c_str());

Is there something I am doing wrong?

All audio is in WAV or OGG format and MONO sound and it does it on both formats.

I should note that when it plays it scratchy like, it also has a weird echo that is about a second behind the original.


niko
Moderator
Quote
2012-01-30 19:30:02

Hm, that sounds strange. Maybe it's a problem with the decoder and your audio is somehow unusual? Or another idea: Is your software heavily using the CPU? Maybe irrKlang doesn't get enough time to decode and mix the audio?


thedevilsjester
Registered User
Quote
2012-01-31 00:55:04

I have two applications that exhibit this behavior, one hits the CPU pretty hard, and the other barely touches it because its just a GUI that plays a sound when the "Play" button is pressed (and is not doing anything task other than playing the sound).

In the case of the one application, I can try and call update() (if it will do anything when iirKlang is in multi thread mode), but the other has no need of this...


niko
Moderator
Quote
2012-02-01 08:07:55

Hm, no, update is only useful in single threaded mode. Not sure what is causing this at all.


thedevilsjester
Registered User
Quote
2012-02-19 06:21:06

I have noticed that it not only makes the irrKlang played audio play this way, but it affects any audio I am playing (for example while listening to music and testing my app that uses irrKlang).

I hope you can fix this.


niko
Moderator
Quote
2012-02-20 19:22:04

Woha, that's evil. I can only guess this must be a driver issue then, there is no way irrKlang itself can cause that. Have you tried updating your audio driver?


thedevilsjester
Registered User
Quote
2012-02-21 16:33:45

I think the fact that it happens on both my Gateway laptop running Linux and my Mac Book Pro running OS X negate the possibility of a driver issue, at least on my end.

It might be that iirKlang is not initializing the driver properly, or something has changed in newer versions of the libraries that iirKlang uses that iirKlang isnt taking into account. I do know that iirKlang is not updated to use modern library paths on Linux (I am forced to create symlinks where iirKlang thinks the libs should be), so its not a stretch to think that it might be behind in some other area. If there is anything I can do to help figure out the issue, including running testing builds, I would be more than happy to do so as I want iirKlang to work.


PoliteKlingon
Guest
Quote
2022-06-05 13:46:17

Hello,
did you manage to overcome this issue? I am experiencing something very similar - except for that the sound is distorted every time, it does not play correctly even sometimes. It also affects all audio, not just the files played by Irrklang (just like you said).
I am using a derivative of Arch Linux ~> my driver (ALSA) is always the newest version. Could it be that Irrklang does not cooperate with newer versions of ALSA correctly?


TheBlek
Guest
Quote
2024-03-20 05:00:08

Hello,
Did you manage to solve this issue? I am too experiencing it on my Arch Linux with Pipewire installed (with pipewire-alsa). I see that irrKlang is using ALSA backend, could that mismatch be the problem?
Of note: I do not experience any audio problems anywhere else and my friend on Fedora has the same problem. They also have pipewire with pipewire-alsa.
Is there a similar documented problem?


Create reply:


Posted by: (you are not logged in)


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