fcodelabs / surround_sound

A flutter package that can be used to create surround sound with a frequency generator
MIT License
8 stars 5 forks source link

iOS problem #7

Open app-vrb opened 2 years ago

app-vrb commented 2 years ago

Hi, when I run the app on iOS the first time I press Play or I move one of the slider I get this error:

[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'init_sound()' Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a result of an unsupported type}, null)

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)

#2 SoundController.init (package:surround_sound/src/sound_controller.dart:31:5) #3 SoundController._check (package:surround_sound/src/sound_controller.dart:36:7) #4 SoundController.play (package:surround_sound/src/sound_controller.dart:41:5) #5 _HomePageState.build. (package:surroundsound/main.dart:44:19) Then it works correct, instead of on Android it's ok
emmanuel-montoya commented 12 months ago

I already fix it in fork for this repo in case you want to use it. https://github.com/Cyberneom/surround_frequency_generator