#7625 closed bug (duplicate)
BSimpleSound -> loading mixer.media_addon failed
Reported by: | cipri | Owned by: | jackburton |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Game Kit | Version: | R1/Development |
Keywords: | BSimpleSound | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
I'm trying to use the BSimpleSound class. I'm using hrev41759 and the oss drives (because the auchi driver doesnt work for me), that means i have sound using oss drivers.
My programm compiles but when i start it in terminal i see the message:
BMediaRoster::InstantiateDormantNode: addon-id 6, flavor_id 0, flags 0x0 resolve symbol "__tf11BTimeSource" returned: -2147478780 DormantNodeManager::LoadAddon: loading "/boot/system/add-ons/media/mixer.media_addon" failed: Symbol not found DormantNodeManager::GetAddon: can't load add-on 6 from path /boot/system/add-ons/media/mixer.media_addon BMediaRosterEx::InstantiateDormantNode: GetAddon failed
Change History (11)
comment:1 by , 14 years ago
Description: | modified (diff) |
---|---|
Version: | R1/alpha2 → R1/Development |
comment:2 by , 14 years ago
comment:3 by , 14 years ago
This sounds like a GCC mismatch between the application and the mixer. Is it possible that you're using a GCC4 app under a GCC2 Haiku or the other way around, respectively a GCC4 app under a GCC2 based hybrid or the other way around?
comment:4 by , 14 years ago
I'm using hrev41759 which is r1a3-rc. I guess this means, it's a hybrid. I used setgcc gcc4 to switch to gcc4. That means, my program is compiled with gcc4 on r1a3-rc
comment:5 by , 14 years ago
That's probably the issue then...media add-ons aren't currently built for both compilers since in most cases they're just instantiated in the media add-on server, so the apps aren't directly exposed to the ABI. Looks like BSimpleGameSound is an exception.
comment:6 by , 14 years ago
Yes. It seems so. I did a little test-application... and compiling it with gcc2 and it worked. But for my game i really need gcc4.
Is there a hope to see this fixed before A3 is released?
follow-up: 9 comment:7 by , 14 years ago
I just found on the haiku-forum that more than a year ago somebody had exactly that problem, but didnt write a bug-report.
http://haiku-os.org/community/forum/problem_getting_sound_bsimplegamesound
I guess, it would be important to solve that bug before r1a3 is released
comment:8 by , 14 years ago
I did a little research and the issue seems to lie in the utility class BGameSoundDevice, which instantiates it's own mixer. There is a comment from Marcus from #575 saying this was a bad idea, so it should be fixed:
http://dev.haiku-os.org/browser/haiku/trunk/src/kits/game/GameSoundDevice.cpp#L305
Doing that should allow a GCC4 compiled game to play sound using BSimpleGameSound on a GCC2 Haiku.
In general the game kit really needs some love I think.
comment:9 by , 14 years ago
Replying to cipri:
I guess, it would be important to solve that bug before r1a3 is released
I don't want to come as a blow, but this probably won't happen before.
comment:11 by , 13 years ago
The duplicase #7351 was closed as fixed (i didnt check it), but on hrev43942 (gcc2h) it still doesnt work. I have now the errors:
resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed resolve symbol "nothrow" returned: -2147478780 PluginManager: Error, load_add_on(): Symbol not found PluginManager: Error, loading PlugIn ffmpeg failed PluginManager::CreateReader: GetPlugin failed
I mean of course BSimpleGameSound (BSimpleSound doesn't exist).