Coder Social home page Coder Social logo

Comments (2)

fiodarsazanavets avatar fiodarsazanavets commented on July 17, 2024

Can you confirm whether you are still seeing this issue?

from netcoreaudio.

Rombersoft avatar Rombersoft commented on July 17, 2024

Platform: Windows

Steps to reproduce:

1. Instantiate Player

2. Subscribe to PlaybackFinished event

3. Play an mp3 file

Expected behaviour: PlaybackFinished event should be raised when audio stops.

Actual behaviour: After PlaybackFinished event is raised, audio still plays for 1 or 2 seconds.

Code example:

Player player = new Player();

player.PlaybackFinished += (sender, args) =>
{
   // This event is triggered even if the player still has 1 or 2 seconds to play.
};

player.Play(path);

I've got the same problem when starting an application in DEBUG mode. And also you must add Wait() method after Play(path):
player.Play(path).Wait();

from netcoreaudio.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.