Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player initialization params, voice groups, filters for single sounds. #105

Merged
merged 7 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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