mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
Windows and Linux now create a libmpv deck through media_kit; macOS, Android and iOS keep audioplayers. Without libmpv the runtime falls back to audioplayers. - The equalizer becomes one libavfilter graph behind mpv's lavfi filter (input gain, peaking bands, balance, compressor, -0.5 dBFS limiter) after a planar float conversion. Changes set the af property again. Filters a libmpv build lacks are probed once and left out; the input gain then moves to mpv's volume. Filter failures are reported per player. - Deck volume is scaled by the in-app output volume on mpv's cubic curve, position updates run on a timer, DSD sources throw when libmpv cannot open them, and exclusive output has a hook for a later setting. - The in-app output volume persists across launches on every desktop OS. - Previews go through the runtime's preview deck, so desktop previews follow the in-app volume. - Linux publishes MPRIS over D-Bus and Windows uses SMTC through smtc_windows, both driven by the audio handler. - The Linux CI job installs libmpv-dev.
44 lines
2.5 KiB
C++
44 lines
2.5 KiB
C++
//
|
|
// Generated file. Do not edit.
|
|
//
|
|
|
|
// clang-format off
|
|
|
|
#include "generated_plugin_registrant.h"
|
|
|
|
#include <app_links_linux/app_links_plugin_linux.h>
|
|
#include <audioplayers_linux/audioplayers_linux_plugin.h>
|
|
#include <dynamic_color/dynamic_color_plugin.h>
|
|
#include <ffmpeg_kit_flutter_new_audio/f_fmpeg_kit_flutter_plugin.h>
|
|
#include <flutter_secure_storage_linux/flutter_secure_storage_linux_plugin.h>
|
|
#include <media_kit_libs_linux/media_kit_libs_linux_plugin.h>
|
|
#include <url_launcher_linux/url_launcher_plugin.h>
|
|
#include <volume_controller/volume_controller_plugin.h>
|
|
|
|
void fl_register_plugins(FlPluginRegistry* registry) {
|
|
g_autoptr(FlPluginRegistrar) app_links_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "AppLinksPluginLinux");
|
|
app_links_plugin_linux_register_with_registrar(app_links_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) audioplayers_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "AudioplayersLinuxPlugin");
|
|
audioplayers_linux_plugin_register_with_registrar(audioplayers_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) dynamic_color_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "DynamicColorPlugin");
|
|
dynamic_color_plugin_register_with_registrar(dynamic_color_registrar);
|
|
g_autoptr(FlPluginRegistrar) ffmpeg_kit_flutter_new_audio_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FFmpegKitFlutterPlugin");
|
|
f_fmpeg_kit_flutter_plugin_register_with_registrar(ffmpeg_kit_flutter_new_audio_registrar);
|
|
g_autoptr(FlPluginRegistrar) flutter_secure_storage_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterSecureStorageLinuxPlugin");
|
|
flutter_secure_storage_linux_plugin_register_with_registrar(flutter_secure_storage_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) media_kit_libs_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKitLibsLinuxPlugin");
|
|
media_kit_libs_linux_plugin_register_with_registrar(media_kit_libs_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
|
|
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
|
|
g_autoptr(FlPluginRegistrar) volume_controller_registrar =
|
|
fl_plugin_registry_get_registrar_for_plugin(registry, "VolumeControllerPlugin");
|
|
volume_controller_plugin_register_with_registrar(volume_controller_registrar);
|
|
}
|