Search code examples
superpowered

SuperpoweredAdvancedAudioPlayer cannot open some files via File Path


Calling SuperpoweredAdvancedAudioPlayer::open("/data/user/0/com.superpowered.crossexample/files/CROSS/tune.wav") for an audio file (.wav) with duration 2.53 Minutes and file size 45.8 MB results in SuperpoweredAdvancedAudioPlayerEvent_LoadError.

It works fine if the file is put in assets and loaded with AssetFileDescriptor

But if loaded via file path on of it fails. (files links attached)

playerB->open("/data/user/0/com.superpowered.crossexample/files/CROSS/tune.wav");

but loaded with file path exist in-app and returns true for file object with file exist.

have two files loaded via string path, attached both the files. one of it loads perfectly and another doesn't.

this file opens via file path and AssetFileDescriptor both https://drive.google.com/open?id=1rpPIB3Q2EmSzcTnD_9pPecrF7zGt3Xkr

this file opens via only AssetFileDescriptor and not file path open->("/data/user/0/com.superpowered.crossexample/files/CROSS/tune.wav"); https://drive.google.com/open?id=18HKSmYHx3CDNfKmd4hWFuKj_AF1AIKyW

Please help.


Solution

  • I was able to open with the above code. my mistake was to not set crossfader value.

    Thank you