Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synthesizer pausePlayer? #28

Open
cwiggins999 opened this issue Apr 17, 2024 · 1 comment
Open

Synthesizer pausePlayer? #28

cwiggins999 opened this issue Apr 17, 2024 · 1 comment

Comments

@cwiggins999
Copy link

We're using js-synthesizer to play MIDI sequences/files in our Electron/Capacitor project and it works and sounds great. Is there an interface or other mechanism to pause/resume the player? I use the stopPlayer and and playPlayer functions, but looking at the functions available, seems I would have to get the current player location, then use stopPlayer/seekPlayer(position)/playPlayer. I'm not sure if there's a way to get the current Player location, or some other approach to accomplish this.

Thanks for this library!!

@jet2jet
Copy link
Owner

jet2jet commented Apr 19, 2024

Sorry for inconvenience, but since the base library FluidSynth does not have feature for pausing player (only provides play/stop/seek), js-synthesizer does not have pausePlayer.
So, please use stopPlayer/seekPlayer/playPlayer as you mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants