Skip to content

Commit

Permalink
raised bufferSize
Browse files Browse the repository at this point in the history
  • Loading branch information
alnitak committed Aug 25, 2024
1 parent d7f4c25 commit 4f1b250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/lib/metronome/metronome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:logging/logging.dart';

/// Metronome example.
///
/// For this example the player is initialized with a buffer size of 256. By
/// For this example the player is initialized with a buffer size of 512. By
/// default it is set to 2048, this means that for a playback at 44100 Hz the
/// buffer is processed in about 40ms. When we use the `play()` method, the
/// sound will start at the upcoming audio buffer and this could happen with
Expand Down Expand Up @@ -38,7 +38,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();

/// Initialize the player.
await SoLoud.instance.init(bufferSize: 256, channels: Channels.mono);
await SoLoud.instance.init(bufferSize: 512, channels: Channels.mono);

runApp(
const MaterialApp(
Expand Down

0 comments on commit 4f1b250

Please sign in to comment.