OpenAL is unfortunately pretty dated, meaning the other option is what everyone uses: FMOD. Problem is I've had a weirdly hard time finding API documentation for this? Like I'm surprised at the lack of open source audio libraries, or at least the lack of a commonly recommended and used one. FMOD has some neat stuff, but it just feels like overkill and a lot of work to integrate. I want something I can easily integrate into my toolchain and projects as like a git submodule. Only recent interesting thing I've found is this sound mixing header (library is too generous for a single header, lol):
https://github.com/BareRose/atomix
I've found things like SoLoud though, which has positional audio and stuff. It seems decent: SoLoud
There's also LabSound, which is based on WebAudio stuff but doesn't seem to have positional audio? GitHub
Hello, i need help with ripping models, so i want rip the prop models from game "Enemy front", model files is in .cfg format, the textures .dds well .dds format easy convertable to .vtf , but i don't know how to convert .cfg file, i found something on search engine [google] suggesting to install the plugins for Blender but seems those suggested plugins doesnt work or even doesn't show that it is instaled. I would happy if i could get full tutorial, but all sort of help would be nice too.
Does anyone know of an 'outline' script/shader for Unity that performs really well on mobile devices?
I used to have images preloading fine, but I believe I fucked something up without having a VC. It's been over six months since I touched this and I'm pretty lost
function preloadImage(url) {
const img = new Image();
fetch(url).then(function(response){
return response.blob();
}).then(function(blob) {
img.src = URL.createObjectURL(blob);
})
return img;
}
async function handleEvent(UserID, eventType) {
await fetch('https://api.twitch.tv/kraken/channels/' + UserID, { headers: ClientID }).then(function (response) {
response.json().then(function(json){
const tempData = {
'type': eventType,
'avatar': preloadImage(json.logo.replace("300x300","70x70")),
'background': preloadImage(json.profile_banner),
'username': json.display_name
};
createPopup(tempData)
})
})
}
What it's meant to do is only move onto the createPopup after the image preloading has completed. But of course it just fires off early.
I've tried a few things but nothing seems to work out, so this code is just what I have as a base
Anyone know if it's possible to run csharp in the terminal and tell it to run a command? (on MacOS)
I want to create an alias that jumps into csharp, runs Guid.NewGuid(), copies the output and quits csharp.
A month later and I've finally started on this. Thanks for the suggestions.
I've chosen SoLoud, and it's taken me about an hour to figure out how to build it (never used GENie), but the API seems pretty simple to use.
How do you do a nearest neighbor scale to an image that is rotated? Currently I have a function that draws an image by just dumbly plotting every texel to the backbuffer after running it through a transform matrix, but I run into the problem of "gaps" between each texel , in the past I've implemented NN by just drawing a rectangle between each of the coordinates; but that was for an image that wasn't rotated, and while I could implement a similar thing by drawing filled quads, that seems like alot of work and just intuitively seems like a bad idea.
my other thought is to have some intermediate structure that has all of the texel coordinates and their color, and an associated function that returns the nearest texel that I would then pass to each pixel in the backbuffer, but that seems ehhhh also.
What's the best way to, given a list of lines and points, determine which lines make up the edges of a polygon?
https://files.facepunch.com/forum/upload/250279/2868eb8e-132b-42c5-b9e1-4e40a9ad3b00/image.png
So, I have this set of randomly-generated points linked together by lines if the points happen to be close enough. What's the best way to iterate over this list of lines to determine the edges that make up polygons, like so?
https://files.facepunch.com/forum/upload/250279/af274da1-5854-4a71-b65f-2bd4234d9180/image.png
How is your data formatted? Can you easily traverse from 1 line to another, if they share the same point?
What is the current "correct" way to do audio on windows in c without any third party libs? I don't give 2 shits about portability and I'm not looking for alot of high level help as i plan to learn as much as I can about actual synthesis and audio code. I think directsound is kindasorta deprecated and core audio looks like a vista only thing, I'm not sure what wasapi even is. Also preferably I want something accessible through just the windows.h headers as I don't want to worry about downloading and transfering things to my offline coding pc.
I'm currently using a lightweight library called SoLoud for sound playback, but have it configured to restrict itself to the only windows.
Looking at its configuration, it appears to use the WinMM API.
Maybe that api is good enough for your use?
thank, got it working on my laptop within a few minutes and seems easy enough to do on my pc when I get home (probably easier because I wont have to use the hell that is codeblocks).
why isn't this working
https://files.facepunch.com/forum/upload/395678/ea484859-2a1b-4ae0-bbd2-1ed551d5806a/image.png
you need to use it's font name
https://files.facepunch.com/forum/upload/1755/eac3defe-3180-4d34-b0b0-bde0474abd0c/image.png
Sorry, you need to Log In to post a reply to this thread.