Coder Social home page Coder Social logo

fcodelabs / surround_sound Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 5.0 186 KB

A flutter package that can be used to create surround sound with a frequency generator

License: MIT License

Kotlin 0.90% Swift 2.88% Objective-C 0.27% Dart 95.96%
hacktoberfest

surround_sound's People

Contributors

jinapriyam avatar ramesh-x avatar tharindunm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

surround_sound's Issues

iOS problem

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

No sound plays

Hi fcodelabs,

I am getting the below error when using your package. No sound plays unfortunately.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G2005, locale en-GB)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.48.2)
[✓] Connected device (1 available)

• No issues found!
(base) georgeleidig@iMac hearing4 %

[VERBOSE-2:platform_view_layer.cc(40)] Trying to embed a platform view but the PaintContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(25)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(40)] Trying to embed a platform view but the PaintContext does not support embedding
[VERBOSE-2:ui_dart_state.cc(166)] 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})
#0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:572
#1 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:161

#2 MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:334
#3 MethodChannelWebViewPlatform.evaluateJavascript
package:webview_flutter/src/webview_method_channel.dart:115
#4 WebViewController.evaluateJavascript
package:webview_flutter/webview_flutter.dart:672
#5 SoundController.init
package:surround_sound/src/sound_controller.dart:31

#6 <…>
[VERBOSE-2:platform_view_layer.cc(25)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(40)] Trying to embed a platform view but the PaintContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(25)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(40)] Trying to embed a platform view but the PaintContext does not support embedding

Thanks for your help,

G

Critical Exception when running example code

[VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'Panner8739941456'
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: Panner8739941456, WKJavaScriptExceptionColumnNumber=17, WKJavaScriptExceptionSourceURL=undefined, NSLocalizedDescription=A JavaScript exception occurred}, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:581:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)

#2 MethodChannelWebViewPlatform.evaluateJavascript. (package:webview_flutter/src/webview_method_channel.dart)

"Uncaught TypeError: Cannot read property 'connect' of undefined" and some others

"Uncaught ReferenceError: init_sound is not defined", source: data:text/html;base64...
"Uncaught ReferenceError: set_freq is not defined", source: data:text/html;base64...
"Uncaught TypeError: Cannot read property 'gain' of undefined", source: data:text/html;base64...
"Uncaught TypeError: Cannot read property 'positionX' of undefined", source: data:text/html;base64...
I/chromium(28052): [INFO:CONSOLE(104)] "Uncaught TypeError: Cannot read property 'connect' of undefined", source: data:text/html;base64,

Any help with this? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.