2fur
❔ Cant merge the same audio file twice or more using WaveFileWriter.CreateWaveFile16();
Hello, Im trying to merge the audio files using NAudio, but if they repeat it doesnt cout it.
Im currently using this code:
For example when Im trying to merge file
"audio1"
with "audio1"
with "audio2"
it only gives me something like: "audio1 + audio2
" and doesnt have the second audio1
file2 replies
❔ Trying to use System.drawing.common 6.0.0 on Linux. Why it doesnt work?
hello, I'm using System.Drawing.Common version 6.0.0 because I read that it should support linux. I changed the runtimeconfig.json as recommended on the microsoft website, but it still doesn't work.
I tried this solution: learn.microsoft.com/pl-pl/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only
And this is what my json looks like:
The error I get:
The type initializer for 'Gdip' threw an exception. System.Func'1[System.Exception] at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, int32 stride , Int32 format, IntPtr scan0, IntPtr& bitmap)
at ProtogenTheBot.commands.com_2.punishment(CommandContext ctx, String options) in D:\Vs projects\ProtogenTheBot\commands\com_2.cs:line 236 System.PlatformNotSupportedException: System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
at System.Drawing.LibraryResolver.EnsureRegistered()
at System.Drawing.SafeNativeMethods.Gdip.PlatformInitialize()
at System.Drawing.SafeNativeMethods.Gdip..cctor()
Please help me solve the problem.
Thank you in advance14 replies
❔ How to create a subpage by code
Hello, sorry for the dumb question, but its my first attempt to create a website.
Is it possible to create/generate from template a subpage? I mean if i have e.g.
https://mypage.com/home
, i would like to create from it e.g. https://mypage.com/home/user1
/ https://mypage.com/home/user2
and so on..5 replies
Do something when event fired
Hello Im kinda new with programming stuff etc and i would like to ask how can I call a function by event or do something when its fired cause actually my event skill are very low.
If it matters, i'm trying to create a discord bta using dsharpplus, where there are events that i have trouble handling.
currently the code I have is the one below, but this one gives me an error:
Severity Code Description Project File Row Skip status
Error CS1643 Not all paths in code return value in lambda expression of type "AsyncEventHandler<DiscordClient, MessageCreateEventArgs>" MeowBot D:\Vs projects\MeowBot\Program.cs 168 Active
and its doesnt give me any log in sonsole
5 replies