-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 0.17.12 | ||
## 0.17.13 | ||
|
||
- ## The [CHANGELOG file is here](https://tau.canardoux.xyz/etau_CHANGELOG.html) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
For information about how to write a good package README, see the guide for | ||
[writing package pages](https://dart.dev/tools/pub/writing-package-pages). | ||
|
||
For general information about developing packages, see the Dart guide for | ||
[creating packages](https://dart.dev/guides/libraries/create-packages) | ||
and the Flutter guide for | ||
[developing packages and plugins](https://flutter.dev/to/develop-packages). | ||
--> | ||
|
||
# Tauwar | ||
|
||
`Tauwar` is an [Etau](https://pub.dev/packages/etau) implementation for Flutter on Flutter Web. | ||
|
||
[Etau](https://pub.dev/packages/etau) is the interface and this is what see the App. | ||
So, there are not many things to say about `Tauweb` because this is just an implementation. | ||
The only verb used by the App is `tau()`, which gives the implementation. | ||
|
||
You can see all the [Etau project documentation](https://etau.canardoux.xyz/) here. | ||
|
||
Example | ||
```dart | ||
import 'package:etau/etau.dart'; | ||
import 'package:tau_war/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 Flutter Web And Flutter on mobiles: | ||
```dart | ||
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(); | ||
}); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters