From d53e951ae415a3af2fd2eeea1eb0cb138ba151f2 Mon Sep 17 00:00:00 2001 From: Marco Bavagnoli Date: Tue, 22 Oct 2024 21:23:18 +0200 Subject: [PATCH] changed `deviceID` type of the `init` method --- lib/src/soloud.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/soloud.dart b/lib/src/soloud.dart index cd529b0..9625cd7 100644 --- a/lib/src/soloud.dart +++ b/lib/src/soloud.dart @@ -314,7 +314,7 @@ interface class SoLoud { // TODO(filip): remove deprecation? @Deprecated('timeout is not used anymore.') Duration timeout = const Duration(seconds: 10), - int deviceId = -1, + PlaybackDevice? device, bool automaticCleanup = false, int sampleRate = 44100, int bufferSize = 2048, @@ -341,7 +341,7 @@ interface class SoLoud { _initializeNativeCallbacks(); final error = _controller.soLoudFFI.initEngine( - deviceId, + device?.id ?? -1, sampleRate, bufferSize, channels,