diff options
author | Orangerot <purple@orangerot.dev> | 2024-12-23 03:18:39 +0100 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-12-23 03:18:39 +0100 |
commit | 1415f91fa5f32b53f69332c7f1ef1129a3d9f454 (patch) | |
tree | b8988e9a40fe01c38806aea422945b33f1a0424f /linux/flutter | |
parent | d397b62b5b6f6db45a2cc0ae6ca4e03ff04c54b2 (diff) |
feat: play audio on entering level and pause button
Diffstat (limited to 'linux/flutter')
-rw-r--r-- | linux/flutter/generated_plugin_registrant.cc | 4 | ||||
-rw-r--r-- | linux/flutter/generated_plugins.cmake | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index e71a16d..1830e5c 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -6,6 +6,10 @@ #include "generated_plugin_registrant.h" +#include <audioplayers_linux/audioplayers_linux_plugin.h> void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) audioplayers_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "AudioplayersLinuxPlugin"); + audioplayers_linux_plugin_register_with_registrar(audioplayers_linux_registrar); } diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index 2e1de87..e9abb91 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + audioplayers_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST |