mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
perf(cue): parse SAF previews without copying audio
This commit is contained in:
1 parent
1387a28d66
commit
91ef538c87
8 files changed
+282
-65
No files matched your search
@@ -54,6 +54,20 @@ impl ExtensionManager {
|
||||
.map_err(ExtensionManagerError::Operation)
|
||||
}
|
||||
|
||||
pub fn parse_cue_file_json_with_resolved_audio(
|
||||
&self,
|
||||
path: String,
|
||||
audio_path: String,
|
||||
lease: Option<Arc<RequestLease>>,
|
||||
) -> Result<String, ExtensionManagerError> {
|
||||
self.inner
|
||||
.parse_cue_file_json_with_resolved_audio(&path, &audio_path, &|| {
|
||||
check_lease(lease.as_deref())
|
||||
})
|
||||
.map(|value| value.to_string())
|
||||
.map_err(ExtensionManagerError::Operation)
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn scan_cue_file_for_library(
|
||||
&self,
|
||||
|
||||
Reference in new issue
Block a user