nut
Explore posts from serversGetting all types that implement a custom attribute
hey, is using Assembly.GetTypes() and iterating them really the best way to get all types that implement a custom attribute? i was thinking i could just have a static enumerable in the attribute class like so:
14 replies
object reference not set to instance of object on a static method call
so im trying to use an opengl binding package (Veldrid.OpenGLBinding) but, when i call any of the methods, it says "Object reference not set to an instance of an object". I'm guessing I'm not using it right but it has absolutely zero documentation so I'm lost
66 replies
❔ generic class in generic method
im trying to have this method:
where each thing that inherits Prefab has a PrefabArgs generic type thing, like, a Prefab "player" could be Player<PlayerPrefabArgs>, and you can call this method like
but the problem im having is this just isnt working how id like it to, i have to do
like it doesnt know how to infer the type or something
15 replies
❔ edit - how do i map the output of EnumerateAudioEndPoints to the wave device numbers?
when i have an endpoint notification callback registered, and try to dispose any sort of waveout or wavein on the callback, the program completely hangs. ive tried to explain the issue in words but nobody has helped me so i isolated the issue into a winforms project with no other code:
8 replies
Can someone please help me understand this StackOverflow answer?
I'm working with NAudio and am trying to get the full device name of a wavein device, but the device name is cut off at 32 characters. DirectSound lets me get the full name of the OUTPUT devices, but it doesnt even map properly. This stackoverflow post has the answer but im not smart enough to understand it https://stackoverflow.com/questions/1449162/get-the-full-name-of-a-wavein-device
18 replies