Skip to content

fix: getPosition always returns 0 when using setBufferStream #254

Open
@Reuben1987AI

Description

@Reuben1987AI

When using setBufferStream getPosition always returns 0.

I'm using Fedora Linux 40

I made an Example App to test this
https://github.com/Reuben1987AI/soloud_test/blob/main/lib/main.dart#L102

Steps to reproduce

      // Create buffer stream
      final streamSource = soloud.setBufferStream(
...
      // Start playback
      final handle = await soloud.play(streamSource);
...
      // Generate and feed white noise
      final random = Random();
...
// Get position (is always 0)  :(
final position = soloud.getPosition(handle);

You get

Image

Expected Behavior
Soloud pos: Should be other than 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions