ukasz123 / soundpool

Soundpool plugin for Flutter
87 stars 64 forks source link

[Feature request] Desktop like Linux/Windows support? #46

Open liudonghua123 opened 3 years ago

liudonghua123 commented 3 years ago

I saw this package support android/ios/macos, and it seems lack of support for Linux/Windows desktop platform. Is there any plans or schedules for support them?

ukasz123 commented 3 years ago

Unfortunately I have no plans for adding Linux/Windows support. It would require me spending some time learning how to implement native part of this plugin and I have not much time to spend at the moment.

ukasz123 commented 3 years ago

I am trying to implement the feature using Rust through FFI and rodio crate. Still, help is surely needed.

ukasz123 commented 2 years ago

I prepared native implementation that uses rodio on windows_linux_support branch. This is an experimental implementation and may cause issues (may even not compile on some environments). It is compatible with soundpool_platform_interface 2.1.0. To add dependency add following code in pubspec.yaml:

dependencies:
  soundpool_windux:
    git:
      url: https://github.com/ukasz123/soundpool.git
      ref: windows_linux_support
      path: soundpool_windux