filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.14k stars 450 forks source link

Doesn't build #483

Open zezba9000 opened 8 months ago

zezba9000 commented 8 months ago

image

Doesn't build with some invalid C# code

PlatinumLucario commented 6 months ago

I need to ask, where is the invalid C# code coming from? It looks like the main CSCore assembly, if so, it might be from a much older commit. Because the current commit (as well as the netstandard branch), don't seem this issue (unless I overlooked it).

From what I can see in your code, each of them are missing these in them: public static readonly Guid and new Guid()

For example

Unknown = 0x0000,

Needs to be

public static readonly Guid Unknown = new Guid((short)AudioEncoding.Unknown & 0x0000FFFF, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);

I really hope this info helps! I've also got a fork with a more updated .NET 8 branch on my repo as well.

AghaKhan commented 2 months ago

Today I was working on sound files and saw cscore. I tried to build it, but it refused to build it. Clean rebuild did not help. There are over 35 errors, but I was not able to built a single program. Kindly help agha.khan@hotmail.com