Closed felixfong227 closed 3 years ago
This would change the existing API and I do not want to do that. This repo is almost meant to be more of an example on how to get going. I'd recommend making a fork of this and adding this change to your fork for your use.
I updated the function
PlayAudioFile
and added a new optional argument that returns the ffmpeg PID.In my personal application that I really needed the PID to kill the running process, since it will disrupt the audio flow.
I am pretty new to Go, so please bear with me overall code quality 🙇