tau_web 0.17.9 copy "tau_web: ^0.17.9" to clipboard
tau_web: ^0.17.9 copied to clipboard

unlisted

A Etau implementation for the Web. This is just an implementation. All the API is in the `Etau` plugin. Member of the `Tau` family. Europe Stands With Ukraine. Pray for Ukraine.

import 'package:etau/etau.dart';
import 'package:tau_web/tau_web.dart';

  @override
  void initState() 
  {
        super.initState();
        tau().init().then 
        ((e){
                audioCtx = tau().newAudioContext();
        });
  }

  ...
        // Then all the code depends only on the interface (`etau`)
        dest = audioCtx.destination;
        source = audioCtx.createBufferSource();
        source!.buffer = audioBuffer;
        pannerNode = audioCtx.createStereoPanner();
        pannerNode!.pan.value = pannerValue;
        source!.connect(pannerNode!).connect(dest!);

if your App needs to support at the same time Fliutter Web And Flutter on mobiles:

import 'package:etau/etau.dart';
import 'package:etau/dummy.dart'
  if (dart.library.js_interop) 'package:tau_web/tau_web.dart'
  if (dart.library.io) 'package:tau_war/tau_war.dart';

  @override
  void initState() 
  {
        super.initState();
        tau().init().then 
        ((e){
                audioCtx = tau().newAudioContext();
        });
  }
0
likes
0
points
5.11k
downloads

Publisher

verified publishertau.canardoux.xyz

Weekly Downloads

A Etau implementation for the Web. This is just an implementation. All the API is in the `Etau` plugin. Member of the `Tau` family. Europe Stands With Ukraine. Pray for Ukraine.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

etau, flutter, logger, web

More

Packages that depend on tau_web