Hello,
i have a Problem with the Bass for Android, Bass_Init returns true, but everytime i get the errorcode 2 when i use BASS_StreamCreateFile, but the File exists.
When i try to play the same file with the example projects it works. Permssion for reading the external is granted. I have copied the filepath the i have picked(Logcat-Output) in your app into my project, but allways it fails. I have try to create the stream in a thread too, same result. What can cause this?
File file = new File(filename);
if(file.exists())
{
Log.i(TAG, "FILE EXISTS");
stream = BASS.BASS_StreamCreateFile(filename, 0, 0, BASS.BASS_SAMPLE_FLOAT);
if(stream == 0)
{
Log.i(TAG, String.valueOf(BASS.BASS_ErrorGetCode()));
}
else
{
BASS.BASS_ChannelPlay(stream, false);
}
}
else
{
Log.i(TAG, "FILE NOT EXISTS");
}