≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Unhandled exception in irrKlang thread
Posted by:
(you are not logged in)
Enter the missing letter in: "Internation?l"
(you are not logged in)
Text:
[quote][b]keycode13[/b] wrote: Hello, I have a strange issue concerning playing a new sound from OnSoundStopped. I have a method that starts playing a new sound, which I call identically from two different threads. When I call it from my main thread it works as expected, however when it's called from the OnSoundStopped method, it gives me the following error "Unhandled exception at 0x00007FFC6F25C658 (irrKlang.dll)" the source of it is the irrKlang thread. The method is executed, the error occures right after. I'm using the unlicensed x64 version, IDE: VisualStudio 2015 Community, OS: Win10 x64. The engine runs in multithreaded mode. I will provide any additional info if needed. Thanks in advance The method I'm calling: [code] int MusicPlayer::playNextMusic(int n) { cout << "Playing " << (n >= 0 ? (n == 0 ? "current" : "next") : "previous") << " music\n"; if (now_playing) now_playing->drop(); engine->removeAllSoundSources(); current_music = engine->addSoundSourceFromFile(playlist->getNextMusic(flags, n)); if (!current_music) { cout << "Failed to load current music\n"; return 0; } now_playing = engine->play2D(current_music, false, false, true); if (!now_playing) { cout << "No music to play\n"; return 0; } now_playing->setSoundStopEventReceiver(stopHnd, this); return 1; } [/code] variables: [code] ISound* now_playing ISoundEngine* engine ISoundSource* current_music stopHnd: an instance of my implementation of ISoundStopEventReceiver playlist->getNextMusic() returns char* [/code][/quote]
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