Skip to content

Commit

Permalink
dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Oct 22, 2024
1 parent 8d40ab7 commit 3385b72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/lib/output_device/output_device.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import 'package:logging/logging.dart';
/// menu to change from all available output devices.
/// All this is made simple just using the `listPlaybackDevices` and
/// `changeDevice` methods.
///
///
/// To get all output devices use `listPlaybackDevices` which returns
/// a list of `PlaybackDevice`s class. Each items of this class
/// contains the id, whether it's the default device (the one used by the OS)
/// and the name.
/// This method can be called even if the engine has not been initialized.
///
///
/// At any time it is possible to pass to `changeDevice` a `PlaybackDevice`
/// which will change the output device.
///
///
/// Note: Android, iOS and Web, only support one output device which is
/// the default.
Expand Down Expand Up @@ -75,7 +75,7 @@ class _HelloFlutterSoLoudState extends State<HelloFlutterSoLoud> {
currentSound = value;
SoLoud.instance.play(currentSound!, looping: true, volume: 0.5);
});

devices = SoLoud.instance.listPlaybackDevices();
assert(devices.isNotEmpty, 'No devices found!');

Expand Down

0 comments on commit 3385b72

Please sign in to comment.