Download

On Audio Single Envelope value and Android

I’m quite new to this forum, so if I posted at the wrong place, sorry in advance and please tell me so

I’m using the new “On Audio Single Envelope value” with UE 4.19.1 and it works perfectly even after packaging… except if it’s package for android. On android, the value will stay at **0 **compared to windows who changes perfectly.

Is there a way to make it work on the android right now, or is it something I should expect in an other release of UE?
It would be great if it worked, it’s a function that I’ve been waiting for a long time. I’m happy it’s finally there for PC.

Did you make sure to set up your config file correctly?

Be sure to refer to the Android setup process in this thread: New Audio Engine: Quick-Start Guide - Audio - Unreal Engine Forums

Setting Up Android via the AndroidEngine.ini file:

  1. In your engine folder, you will want to edit the AndroidEngine.ini file located here:
    \Engine\Config\Android\AndroidEngine.ini
    Or your project folder, here:
    \Config\Android\AndroidEngine.ini
    (If you don’t have one, you can create one)
  2. Enter the following:


[Audio]
AudioDeviceModuleName=AudioMixerAndroid


I completely forgot to do that, I did it for the rest but forgot for android…
Now it works perfectly on both!

Thanks for answering so fast

@dan.reynolds I know that this is an older post but after scouring the interwebs for a week straight, this is the closest thing I have found to my problem. I have tried implementing the solution you mentioned above, which didn’t work, probably because this is outdated info at this point (it was worth a shot). But what I’m trying to do is use the Audio Capture component’s OnAudioEvelopeValue to capture microphone input from the player and use that to add to a float variable depending on how loud they are. The BP’s all work fine in Windows but when I try to deploy it to my android device (yes the project is configured for android and I have added permissions in the project settings as well as check for and then request permissions if they aren’t there), what happens is I get a request for audio recording permissions and after I tap to allow, the game closes and I get the following log errors:

LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: === Critical error: ===
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error:
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: Assertion failed: AudioCapture.IsStreamOpen() [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/AudioCaptureCore/Private/AudioCaptureCore.cpp] [Line: 189]
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error:
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: [Callstack] 0x00000000C14C84BC libUE4.so(0x00000000088C74BC)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1]) ]
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: [Callstack] 0x00000000C0C826DC libUE4.so(0x00000000080816DC)!Audio::FAudioCaptureSynth::StartCapturing() ]
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: [Callstack] 0x00000000BC8B3A1C libUE4.so(0x0000000003CB2A1C)!UAudioCaptureComponent::OnBeginGenerate() ]
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: [Callstack] 0x00000000BEE34BF4 libUE4.so(0x0000000006233BF4)Unknown ]
LogPlayLevel: Error: 09-15 17:18:38.356 22096 31995 D UE4 : [2020.09.15-21.18.38:356] 11]LogAndroid: Error: [Callstack] 0x00000000BEDF6680 libUE4.so(0x00000000061F5680)!Audio::FMixerSourceManager::PumpCommandQueue() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDF5070 libUE4.so(0x00000000061F4070)!Audio::FMixerSourceManager::ComputeNextBlockOfSamples() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDF4A94 libUE4.so(0x00000000061F3A94)!Audio::FMixerDevice::OnProcessAudioStream(TArray<float, TAlignedHeapAllocator<16u> >&) ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDF656C libUE4.so(0x00000000061F556C)!non-virtual thunk to Audio::FMixerDevice::OnProcessAudioStream(TArray<float, TAlignedHeapAllocator<16u> >&) ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDE5200 libUE4.so(0x00000000061E4200)!Audio::FOutputBuffer::MixNextBuffer() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDE6DCC libUE4.so(0x00000000061E5DCC)!Audio::IAudioMixerPlatformInterface::RunInternal() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BEDE6F00 libUE4.so(0x00000000061E5F00)!Audio::IAudioMixerPlatformInterface::Run() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BCBCDFE4 libUE4.so(0x0000000003FCCFE4)!FRunnableThreadPThread::Run() ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000BCB2B300 libUE4.so(0x0000000003F2A300)!FRunnableThreadPThread::_ThreadProc(void*) ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000EED10CDC libc.so(0x00000000000ABCDC)Unknown ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error: [Callstack] 0x00000000EECC7DC4 libc.so(0x0000000000062DC4)Unknown ]
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error:
LogPlayLevel: Error: 09-15 17:18:38.357 22096 31995 D UE4 : [2020.09.15-21.18.38:357] 11]LogAndroid: Error:

Any idea what’s going wrong? I’m just stuck and frustrated. Thanks ahead of time!