mikeperri / flutter_sequencer

A Flutter plugin for music sequencing.
Other
90 stars 38 forks source link

[iOS] Using the just_audio package to play a specific mp3 is breaking the flutter_sequencer but it doensn't throw any errors. #36

Open dmendoza05 opened 2 years ago

dmendoza05 commented 2 years ago

Whenever I play an mp3 file the whole flutter_sequencer just stops. Currently using the just_audio package to play audio files.

Reproduced this issue on the example project of the flutter_sequencer by adding a simple button widget to play the mp3 file and adding the just_audio package to the pubspec.yaml file.

I crossed referenced the offending mp3 file with other working mp3 files and found out that if an mp3 has these properties the flutter_sequencer package breaks:

Mp3 files: Archive.zip

main.dart

        ...
            ElevatedButton(
              onPressed: () async {
                final player = AudioPlayer();
                var duration = await player.setAsset('assets/mp3/sfx-pop_mono_44k.mp3');
                player.play();
              },
              child: Text('Mono - 44k'),
            ),
            ElevatedButton(
              onPressed: () async {
                final player = AudioPlayer();
                var duration = await player.setAsset('assets/mp3/sfx-pop_mono_48k.mp3');
                player.play();
              },
              child: Text('Mono - 48k'),
            ),
            ElevatedButton(
              onPressed: () async {
                final player = AudioPlayer();
                var duration = await player.setAsset('assets/mp3/sfx-pop_stereo_44k.mp3');
                player.play();
              },
              child: Text('Stereo - 44k'),
            ),
            ElevatedButton(
              onPressed: () async {
                final player = AudioPlayer();
                var duration = await player.setAsset('assets/mp3/sfx-pop_stereo_48k.mp3');
                player.play();
              },
              child: Text('Stereo - 48k'),
            ),
       ...

No erros or logs are produced.


ADDITIONAL INFO: