Hi!
I've come across another issue. Apologies in advance if this is simply another case of me making a mistake. :)
I have been trying to get MumbleDJ to stream audio over Mumble, but I can't seem to get it to work. Here is a step-by-step outline of the steps completed prior to calling Play()
on the stream:
1) Audio file is downloaded and stored on disk. I've tested that the audio file is valid by playing it in VLC, the audio works fine.
2) A new source is created via gumbleffmpeg.SourceFile()
.
3) Audio stream is initialized with gumbleffmpeg.New()
.
4) Various parameters such as Offset
and Volume
are set on the newly created stream.
5) Play()
is called, and a goroutine is spawned that waits for the audio stream to finish.
To my knowledge this should be the correct procedure for creating and playing an audio stream, but I do not get any audio. opusthreshold
is set to 0 in the server's configuration file, so that is not the issue. Another strange thing is that calling State()
on the stream after calling the Play()
method the state is set to StatePlaying
, even though no audio is provided. Also, calling Pause()
afterwards correctly sets the state to StatePaused
. It seems that the stream is behaving properly besides the fact that no audio is being played.
Any ideas what is going on here? Here are some links to relevant sections of code in case they are of help:
https://github.com/matthieugrieger/mumbledj/blob/refactor/bot/queue.go#L243-L288
https://github.com/matthieugrieger/mumbledj/blob/refactor/bot/queue.go#L324-L331
Let me know if more information should be provided.
Thanks!
question