Skip to content

Commit

Permalink
Merge pull request #105 from alnitak/feats
Browse files Browse the repository at this point in the history
player initialization params, voice groups, filters for single sounds.
  • Loading branch information
alnitak committed Jul 22, 2024
2 parents 9a5dfa3 + 7823ec1 commit a5a34ac
Show file tree
Hide file tree
Showing 26 changed files with 1,845 additions and 494 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- added `loadMem()` to read the give audio file bytes buffer (not RAW data). Useful for the Web platform.
- fixed `getFilterParamNames()`.
- added `AudioData` class to manage audio samples.
- added player initialization parameters: sample rate, buffer size, number of channels (mono, stereo, quad, 5.1, 7.1).
- added voice groups.
- it's now possible to set filters not only globally, but also to single audio sources.
- fade and oscillate filter parameters.

### 2.0.2 (23 May 2024)
- Fixed wrong exception raised by `setVolume()` when a handle is no more valid.
Expand Down
4 changes: 2 additions & 2 deletions example/lib/ui/filter_fx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _FilterFxState extends State<FilterFx> {
}
for (var i = 0; i < params.length; i++) {
params[i] = SoLoud.instance
.getFilterParameter(widget.filterType, i);
.getGlobalFilterParameter(widget.filterType, i);
}
} else {
try {
Expand All @@ -102,7 +102,7 @@ class _FilterFxState extends State<FilterFx> {
onChanged: (value) async {
params[index] = value;
SoLoud.instance
.setFilterParameter(widget.filterType, index, value);
.setGlobalFilterParameter(widget.filterType, index, value);
if (mounted) setState(() {});
},
);
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.2"
version: "2.1.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
30 changes: 0 additions & 30 deletions example/test/widget_test.dart

This file was deleted.

Loading

0 comments on commit a5a34ac

Please sign in to comment.