Skip to content

Commit

Permalink
changed deviceID type of the init method
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Oct 22, 2024
1 parent 3385b72 commit d53e951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/soloud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -341,7 +341,7 @@ interface class SoLoud {
_initializeNativeCallbacks();

final error = _controller.soLoudFFI.initEngine(
deviceId,
device?.id ?? -1,
sampleRate,
bufferSize,
channels,
Expand Down

0 comments on commit d53e951

Please sign in to comment.