musikr: connect metajni lib to app
This commit is contained in:
parent
f50d9680a9
commit
4655e314b9
2 changed files with 2 additions and 4 deletions
|
@ -38,8 +38,6 @@ private object MetadataExtractorImpl : MetadataExtractor {
|
|||
withContext(Dispatchers.IO) {
|
||||
val fis = FileInputStream(fd.fileDescriptor)
|
||||
val input = NativeInputStream(deviceFile, fis)
|
||||
Log.d("MetadataExtractorImpl", MetadataJNI.openFile(input))
|
||||
// MetadataJNI.open(deviceFile, fis).also { fis.close() }
|
||||
null
|
||||
MetadataJNI.openFile(input).also { fis.close() }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,5 +24,5 @@ internal object MetadataJNI {
|
|||
}
|
||||
|
||||
// This is a rust function, Android Studio has no idea how to link to it
|
||||
external fun openFile(input: NativeInputStream): String
|
||||
external fun openFile(input: NativeInputStream): Metadata?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue