Closed hasezoey closed 7 years ago
A BadImageFormatException will most likely stem from you having the incorrect binaries for your architecture. (32-bit when you need 64-bit, or vice versa). Check out https://discord.foxbot.me/binaries/ and grab the proper binaries and try again.
Thanks that fixed the Problem [...] i searched in the wiki of Discord.NET but only found 1 version of opus ^^
System.BadImageFormatException: "An attempt was made to load a file with an incorrect format (exception of HRESULT: 0x8007000B)" i have opus.dll and libsodium.dll installed and copied the execption comes in
var vClient = await client.GetService<AudioService>() .Join(VoiceChannel);
the whole code: `private async void SendAudioFF(string FilePath, string CurrentServer) { ConsoleSendMessage(CurrentServer, true); var VoiceChannel = client.FindServers(CurrentServer).FirstOrDefault().VoiceChannels.FirstOrDefault(); var vClient = await client.GetService()
.Join(VoiceChannel);
first i tried it with NAudio and where it wont work i copied the code of ffmpeg and in both are coming the same exception [...] i searched the problem but not found anything i tryed much things but i dont come to a workaround
using Dicord.net, Audio, Commands and Modules
thanks in advance
NAudio Code: `private async void SendAudioNAudio(string FilePath, string CurrentServer) { var VoiceChannel = client.FindServers(CurrentServer).FirstOrDefault().VoiceChannels.FirstOrDefault(); var vClient = await client.GetService()
.Join(VoiceChannel);
var ChannelCount = client.GetService().Config.Channels;
var OutFormat = new WaveFormat(48000, 16, ChannelCount);