xirus 𖣂
xirus 𖣂
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
dw i alr put the await before the task run
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
any possible fixes?
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
No description
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
so the problem is the media state connection
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
since i did if '... state = Ready then i can transmit audio
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
like the voice call call media state
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
i get disconnected
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
when i connect
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
i figured out
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
private void button2_Click(object sender, EventArgs e)
{
CancellationTokenSource source = new CancellationTokenSource();
string music = "C:/Users/actex/Downloads/untitled.wav";
ulong channelId = 1162394653845377129; // Replace with the actual channel ID
voiceClient = new DiscordVoiceClient(client, 1162394653312696400);

OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Audio files (*.ogg;*.mp3;*.wav)|*.ogg;*.mp3;*.wav|All files (*.*)|*.*";
openFileDialog.FilterIndex = 1;
openFileDialog.RestoreDirectory = true;


voiceClient.Connect(channelId, new VoiceConnectionProperties() { Muted = true });
{
try
{
while (voiceClient.State == MediaConnectionState.Ready && !source.IsCancellationRequested)
voiceClient.Microphone.Bitrate = 510000;
voiceClient.Microphone.SetSpeakingState(DiscordSpeakingFlags.Soundshare);
voiceClient.Microphone.CopyFrom(DiscordVoiceUtils.GetAudioStream(music), source.Token);
}
catch (InvalidOperationException ex) {
MessageBox.Show($"An error occurred: {ex.Message}");
}
}
}
private void button2_Click(object sender, EventArgs e)
{
CancellationTokenSource source = new CancellationTokenSource();
string music = "C:/Users/actex/Downloads/untitled.wav";
ulong channelId = 1162394653845377129; // Replace with the actual channel ID
voiceClient = new DiscordVoiceClient(client, 1162394653312696400);

OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "Audio files (*.ogg;*.mp3;*.wav)|*.ogg;*.mp3;*.wav|All files (*.*)|*.*";
openFileDialog.FilterIndex = 1;
openFileDialog.RestoreDirectory = true;


voiceClient.Connect(channelId, new VoiceConnectionProperties() { Muted = true });
{
try
{
while (voiceClient.State == MediaConnectionState.Ready && !source.IsCancellationRequested)
voiceClient.Microphone.Bitrate = 510000;
voiceClient.Microphone.SetSpeakingState(DiscordSpeakingFlags.Soundshare);
voiceClient.Microphone.CopyFrom(DiscordVoiceUtils.GetAudioStream(music), source.Token);
}
catch (InvalidOperationException ex) {
MessageBox.Show($"An error occurred: {ex.Message}");
}
}
}
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
llok
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
there should be no problem
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
i did idk i set the path right
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
Error
yes but i havent intewgrated mic streams only a wav file
24 replies
CC#
Created by xirus 𖣂 on 2/16/2024 in #help
✅ expierenced c# dev needed to create a programm u get payed
oh
3 replies