Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > irrKlang
What does this error mean?
Author Text

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?


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

fixed it


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (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© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact