fcodelabs / surround_sound Goto Github PK
View Code? Open in Web Editor NEWA flutter package that can be used to create surround sound with a frequency generator
License: MIT License
A flutter package that can be used to create surround sound with a frequency generator
License: MIT License
"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!
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
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
Hi, as of now, there is only a frequency playing in 3d.
Is there any plan/possible to load custom assets to play instead of just using the oscillator?
I want to play it in the background.
Can you give me a hint?
[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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.