8000 How can I tell if my device is now playing sound? · Issue #489 · mackron/miniaudio · GitHub
[go: up one dir, main page]

Skip to content

How can I tell if my device is now playing sound? #489

Closed

Description

@Mikez2015

Hello.

How can I tell if my device is now playing sound?
To understand when the sound effect has ended.

Activity

  1. mackron commented on Jun 24, 2022

    @mackron
    Owner

    When you call ma_device_start() it is continuously running and firing the data callback. Whatever you copy to the output buffer in the data callback is what will be playing. If you're not copying anything to the buffer, nothing will come out of the speakers, but the device will still be running in the background. Likewise, if you haven't yet called ma_device_start() or have called ma_device_stop(), nothing will be playing.

    If you're using the engine, just use ma_sound_at_end() to know if the sound is at the end yet.

    (Moving this to the Discussion section.)

  2. Repository owner locked and limited conversation to collaborators on Jun 24, 2022
  3. converted this issue into a discussion #490 on Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0