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,