Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote

I've been working on integrating WWise into an Android Java app via JNI, following the Integration Demo Sample project. My current initialization function is as follows:

    // Memory Manager
    AkMemSettings memSettings;
    memSettings.uMaxNumPools = 20;
    AK::MemoryMgr::Init(&memSettings); // AK_Success

    // Stream Manager
    AkStreamMgrSettings stmSettings;
    AK::StreamMgr::GetDefaultSettings(stmSettings);
    AK::StreamMgr::Create(stmSettings);

    // Streaming device (pLowLevelIO points to a CAkFilePackageLowLevelIOBlocking object)
    AkDeviceSettings deviceSettings;
    AK::StreamMgr::GetDefaultDeviceSettings(deviceSettings);
    pLowLevelIO->Init(deviceSettings); // AK_Success
    pLowLevelIO->SetBasePath( "soundbanks" );

    // Sound Engine
    AK::SoundEngine::Init(NULL, NULL); // AK_Success

    // Music Engine
    AkMusicSettings musicSettings;
    AK::MusicEngine::GetDefaultInitSettings(musicSettings);
    AK::MusicEngine::Init(&musicSettings);

    // Communication device
    AkCommSettings commSettings;
    AK::Comm::GetDefaultInitSettings(commSettings);
    AK::Comm::Init(commSettings); // AK_Fail
 
According to the documentation, AK::Comm::Init returns: 
    AK_Success when everything went well
    AK_InvalidParameter if one of the given settings is invalid
    AK_InsufficientMemory when given poolsize is too small
    AK_Fail for other errors  <--------
Does anybody have any clue of why AK::Comm::Init returns AK_Fail?
 
Help is much appreciated!
Thanks.
 
EDIT AK::Comm::Init prints this error:
    I/AKDEBUG: AK::Comm -> DiscoveryChannel::Init() -> m_socket.Bind() failed, requested port == 24024 (AkCommSettings::ports.uDiscoveryBroadcast) 
in General Discussion by tomasito665 (220 points)
edited by tomasito665

Please sign-in or register to answer this question.

...