Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 this issue Jul 19, 2022 · 0 comments

Comments

@dmendoza05
Copy link

dmendoza05 commented Jul 19, 2022

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:

  • Audio Channel: Stereo
  • Sample Rate: 48 kHz

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:

  • Playing a video that has sample rate of 48k break the flutter_sequencer.
  • The SFZ that is currently being used for the flutter_sequencer is in 44.1k
@dmendoza05 dmendoza05 changed the title Using the just_audio package to play a specific mp3 is breaking the flutter_sequencer but it doensn't throw any errors. [iOS] Using the just_audio package to play a specific mp3 is breaking the flutter_sequencer but it doensn't throw any errors. Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant