Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

GVRAudioEngine: Can't play audio files from external Storage. #626

Open
sarathsi opened this issue Mar 22, 2019 · 0 comments
Open

GVRAudioEngine: Can't play audio files from external Storage. #626

sarathsi opened this issue Mar 22, 2019 · 0 comments

Comments

@sarathsi
Copy link

VR sdK: com.google.vr:sdk-audio:1.190.0

I am trying to play audio files from devices /sdcard/, but createSoundObject() & createSoundfield() both are failing with / without preloadSoundFile().

final File file = new File(Environment.getExternalStorageDirectory(), "HelloVR_Loop.ogg");
// file path in the device:  "/storage/emulated/0/HelloVR_Loop.ogg"
final String filename = file.getAbsolutePath();
mGvrAudioEngine.preloadSoundFile(filename);
...
int soundId = mGvrAudioEngine.createSoundObject(filename);

soundId is INVALID_ID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant