BinkanSalaryman / Discord-Audio-Stream-Bot

A simple discord audio streaming bot.
228 stars 38 forks source link

Audio stream stops when I disconnect from rdp #79

Closed BurmazDaniel closed 6 months ago

BurmazDaniel commented 9 months ago

Hey! I am straming audio to discord from motherboard line in using your app. It is running on a computer that dose not have a gpu and i can acces it only thru rdp. Every time when I turn on the bot and quit rdp the audio stops playing. I have to rejoin the bot on my discord channel with /leave and /join. It is not a huge problem but do you think there is any way to solve this problem? Thank you!

BinkanSalaryman commented 9 months ago

Interesting. Does the log say anything at the time when you quit rpd?

BurmazDaniel commented 9 months ago

Interesting. Does the log say anything at the time when you quit rpd?

Unfortunately there is no log after i quit rdp. I just get these after rejoin:

DEBUG n.d.j.internal.audio.AudioWebSocket - Using encryption mode xsalsa20_poly1305_lite
DEBUG n.d.j.internal.audio.AudioWebSocket - Unknown Audio OP code.
DEBUG n.d.j.internal.audio.AudioWebSocket - Audio connection has finished connecting!
BinkanSalaryman commented 9 months ago

I have no idea why it does that then :/

arctickitty commented 6 months ago

this is a microsoft bug they refuse to fix rdp causes the audio endpoint to reset to compensate for this in the software all you have to do is regrab the audio device when its lost normaly muting and unmuting fixes this but ofc it will never recover if they program doesnt try to get the device back

BurmazDaniel commented 6 months ago

this is a microsoft bug they refuse to fix rdp causes the audio endpoint to reset to compensate for this in the software all you have to do is regrab the audio device when its lost normaly muting and unmuting fixes this but ofc it will never recover if they program doesnt try to get the device back

Oh. Thanks for this info. I am closing this as this is more of a RDP issue.

arctickitty commented 4 months ago

you know the dev could have fixed this by just retrying the device once its lost because it will come back once rdp closes the program just never trys to get it back