ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrKlang
forum topic indicator What does this error mean?
person icon
wij
Registered User
Quote
2022-08-27 16:32:32

I compiled my application with 0 errors
but when I try to run my mp3 I get
irrKlang sound library version 1.6.0
Loaded plugin: ikpMP3.so
Using ALSA driver
irrKlang sound library version 1.6.0
Loaded plugin: ikpMP3.so
Using ALSA driver
irrKlang sound library version 1.6.0
Loaded plugin: ikpMP3.so
Using ALSA driver
Assertion 'pa_atomic_load(&(s)->_ref) >= 1' failed at ../pulseaudio/src/pulse/stream.c:342, function pa_stream_get_state(). Aborting.
Aborted (core dumped)

The code I used to get and play the mp3 looks like this:

include<irrKlang.h>
using namespace std;
using namespace irrklang;
int AUDIO_play (const char* file,bool looping) {
ISoundEngine* engine = createIrrKlangDevice();
if (!engine) {
// printf("Audio -> FATAL : could not init audio engine");
return 1;
}
engine->play2D(file,looping);
engine->drop();
return 0;
}

I run the code in a while loop(because sdl stuff)
and call it by AUDIO_play("file.mp3",false);
so why is it segfaulting and is there a possible way to fix this?

person icon
wij
Registered User
Quote
2022-08-28 03:02:25

fixed it


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |