Hi.
Thank you for your reply。
Here is the details:
Enviroment:
- Tuanjie 1.2.0 (2022.3.2t13)
- FMOD for Unity 2.02.22
- DevEco Studio 4.1 Release
Reproducing:
- Default configuration for FMOD
- Attach "FMOD Studio Bank Loader“
- Export with “Development Build“ Checked and deploy on an OpenHarmony device。
As you metioned, we had ticked API Error logging and set the Logging Level to “Log”, but the Log looks no difference from the earlier one.
07-20 12:15:47.212 15439-15439 C03F01/NAPI pid-15439 I [(native_module_manager.cpp:576)(LoadNativeModule)] key is default/fmodL
07-20 12:15:47.213 15439-15439 A0FF0D/fmod pid-15439 I FMOD_NAPI_RegisterCallback : Registering FMOD module properties
07-20 12:15:47.222 15439-15439 A00001/Tuanjie pid-15439 I fmod_init
07-20 12:15:49.699 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] System::create : Header version = 2.02.22. Current version = 2.02.22.
07-20 12:15:49.699 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.701 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::setOutputInternal : Setting output to 'FMOD OpenHarmony Audio Output'
07-20 12:15:49.701 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.702 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Manager::init : maxchannels = 128 studioflags = 00000008 flags 00000000 extradriverdata 0.
07-20 12:15:49.702 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.704 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::init : Initialize version=20222 (142841), maxchannels=128, flags=0x00020000
07-20 12:15:49.704 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.752 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] OHAudio_Init : Output buffer size: 1114 samples, DSP buffer: 1024 * 4.
07-20 12:15:49.752 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.756 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD stream thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFB, Stack Size: 98304, Semaphore: No, Sleep Time: 10, Looping: Yes.
07-20 12:15:49.756 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.758 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] SystemI::DSPCodecPoolRegister : register codec pool for pool type 7
07-20 12:15:49.758 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.783 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.783 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.784 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD mixer thread. Affinity: 0x4000000000000001, Priority: 0xFFFF7FFA, Stack Size: 81920, Semaphore: Yes, Sleep Time: 0, Looping: Yes.
07-20 12:15:49.784 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.787 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] AsyncManager::init : manager 0x5c4e8d7808 isAsync 1 updatePeriod 0.02
07-20 12:15:49.787 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.790 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio update thread. Affinity: 0x4000000000000002, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.790 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.790 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.790 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.792 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] AsyncManager::init : done
07-20 12:15:49.792 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.793 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] PlaybackSystem::init :
07-20 12:15:49.793 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.795 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio sample load thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.795 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.797 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] PlaybackSystem::init : done
07-20 12:15:49.797 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.798 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Thread::initThread : Init FMOD Studio bank load thread. Affinity: 0x4000000000000003, Priority: 0xFFFF7FFD, Stack Size: 98304, Semaphore: No, Sleep Time: 1, Looping: No.
07-20 12:15:49.798 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.800 15439-15462 A00001/Tuanjie com.Defau...yproject I [FMOD] Manager::init : done.
07-20 12:15:49.800 15439-15462 A00001/Tuanjie com.Defau...yproject I FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.826 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.826 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.837 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] FOpenFile::open : fopen failed to open 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank', errno = 2
07-20 12:15:49.837 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.839 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] RuntimeBankModel::openFile : Failed to open file 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank'
07-20 12:15:49.839 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.905 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:49.905 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:49.993 15439-15462 A00001/Tuanjie com.Defau...yproject E [FMOD] System::loadBankFile(jar:file://rawfile/Data/StreamingAssets/Master.strings.bank, 0, 0x5c465a5b90) returned ERR_FILE_NOTFOUND for STUDIO_SYSTEM (0x1FFF1F).
07-20 12:15:49.993 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:ERROR_CALLBACK(IntPtr, SYSTEM_CALLBACK_TYPE, IntPtr, IntPtr, IntPtr)
07-20 12:15:50.006 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.006 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E BankLoadException: [FMOD] Could not load bank 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank' : ERR_FILE_NOTFOUND : File not found.
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.RegisterLoadedBank (FMODUnity.RuntimeManager+LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBanks (FMODUnity.Settings fmodSettings) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.Initialize () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.get_Instance () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.Load () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.HandleGameEvent (FMODUnity.LoaderGameEvent gameEvent) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:LoadBanks(Settings)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:Initialize()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:get_Instance()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:LoadBank(String, Boolean, String)
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:Load()
07-20 12:15:50.009 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:HandleGameEvent(LoaderGameEvent)
07-20 12:15:50.044 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] FOpenFile::open : fopen failed to open 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank', errno = 2
07-20 12:15:50.044 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.047 15439-15563 A00001/Tuanjie com.Defau...yproject E [FMOD] RuntimeBankModel::openFile : Failed to open file 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank'
07-20 12:15:50.047 15439-15563 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.112 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.112 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.194 15439-15558 A00001/Tuanjie com.Defau...yproject W [FMOD] OutputRingBuffer::read : Insufficient buffer size detected, requested 35664 bytes, buffer size is 32768 bytes.
07-20 12:15:50.194 15439-15558 A00001/Tuanjie com.Defau...yproject W FMODUnity.RuntimeManager:DEBUG_CALLBACK(DEBUG_FLAGS, IntPtr, Int32, IntPtr, IntPtr)
07-20 12:15:50.198 15439-15462 A00001/Tuanjie com.Defau...yproject E [FMOD] System::loadBankFile(jar:file://rawfile/Data/StreamingAssets/Master.strings.bank, 0, 0x5c465a5dc0) returned ERR_FILE_NOTFOUND for STUDIO_SYSTEM (0x1FFF1F).
07-20 12:15:50.198 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.RuntimeManager:ERROR_CALLBACK(IntPtr, SYSTEM_CALLBACK_TYPE, IntPtr, IntPtr, IntPtr)
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E BankLoadException: [FMOD] Could not load bank 'jar:file://rawfile/Data/StreamingAssets/Master.strings.bank' : ERR_FILE_NOTFOUND : File not found.
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.RegisterLoadedBank (FMODUnity.RuntimeManager+LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.RuntimeManager.LoadBank (System.String bankName, System.Boolean loadSamples, System.String bankId) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.Load () [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E at FMODUnity.StudioBankLoader.HandleGameEvent (FMODUnity.LoaderGameEvent gameEvent) [0x00000] in <00000000000000000000000000000000>:0
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:Load()
07-20 12:15:50.207 15439-15462 A00001/Tuanjie com.Defau...yproject E FMODUnity.StudioBankLoader:HandleGameEvent(LoaderGameEvent)
The doc (https://www.fmod.com/docs/2.02/api/platforms-openharmony.html#javascript) says “initializing the FMOD JavaScript interface will allow loading assets from the App package”. We have done this in this project but still can’t load embedded assets.
In Tuanjie Engine, “Application.streamingAssetsPath” returns “jar: file://rawfile/Data/StreamingAssets”. We doubt that path does not meet the FMOD’s requirements for loading embedded assets.