Comments (2)
Can you confirm whether you are still seeing this issue?
from netcoreaudio.
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)
- Feature request: Recording Audio HOT 4
- Question: Is any way to play repeat HOT 1
- Cannot play sounds in quick succession. HOT 1
- Feature request: playing Streams HOT 3
- Feature request: mp4 support
- Resume Freeze MacOS
- [FeatureRequest][BUG] amixer: Unable to find simple control 'Master',0
- Playing a file just throws an error HOT 3
- Feature request: Volume control
- Error when play .wav and .mp3 HOT 3
- Not able to read music if the file path contains spaces on windows HOT 1
- Feature Request: Disable the console output HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netcoreaudio.