concord icon indicating copy to clipboard operation
concord copied to clipboard

Missing discord-voice.c from Makefile in concord/src

Open Mentosz888 opened this issue 1 year ago • 4 comments

I tried to use the discord_voice_join() function in my project, but at compilation I got a undefined refrence error to this function. From looking trough the src files, I realized the discord-voice.c is missing from the Makefile. Maybe I am unaware of some deprecation, but it seems to me, this is the only function that allows my bot to connect to a vc.

Mentosz888 avatar Oct 17 '24 03:10 Mentosz888

Hello, have you tried using make voice when building this library?

jdeokkim avatar Oct 17 '24 09:10 jdeokkim

Damn, you are absoluetly right. I have missed this rule entirely. Thanks!

Mentosz888 avatar Oct 17 '24 13:10 Mentosz888

Update on the situation, I got the voice to compile successfully. I've been looking at the internals of this project, and been testing the voice join and leave. For the usage of the discord_voice_shutdown() I extended the discord-voice.c file so I can get the vc by guild ID. There is an error in the gencodecs discord_update_voice_state_to_jsonb() function.

Without modification, currently it sends this JSON for a disconnect: {"op":4,"d":{"guild_id":"GUILD_ID","channel_id":"0","self_mute":false,"self_deaf":false}} And it should send this for a successfull disconnect: {"op":4,"d":{"guild_id":"GUILD_ID","channel_id":null,"self_mute":false,"self_deaf":false}}

Mentosz888 avatar Oct 19 '24 03:10 Mentosz888

I must warn that Concord`s voice capabilities are extremely limited and audio sending / receiving is not yet implemented

ThePedroo avatar Oct 19 '24 23:10 ThePedroo

As mentioned by @ThePedroo, I highly suggest against using our voice support capabilities in its current state. Please refer to https://github.com/PerformanC/CogLink instead!

lcsmuller avatar Dec 07 '24 18:12 lcsmuller