How can I understand what I can fit in a certain sized buffer?
@DragoniteSpam3 жыл бұрын
there's a table of the size of each datatype in the manual although if you're not sure, you can use buffer_sizeof() on the datatype constant
@GaamingPros3 жыл бұрын
@@DragoniteSpam If I'm sending buffers over the network, should the values written to the buffer be they same type? Example: all values should be u8, or u32. I saw the table you mentioned as well as what game maker says about alignment; for my question above.
@DragoniteSpam3 жыл бұрын
@@GaamingPros You should be able to put any kind of data in a networking buffer (remember to account for any header information GameMaker may add on the receiving end), it's common to use strings containing json but you should be able to work with ints or floats
@jasonmanganello33582 жыл бұрын
Hi Dragonite, Do you have any experience with creating an audio visualizer? I've been doing research trying to figure it out, and though there is an extension created by Meseta, I can't seem to figure out if it's possible to create the visualizer without an extension/dll. No matter how much I work with audio files and buffers, I can't seem to figure out how to get the audio data that's stored in a buffer to translate into a dynamic value that corresponds with the audio that's playing; e.g. values I can use to draw the moving bars. I'm fairly new to buffers, so I assume (hope) it's just my lack of experience that's the issue here, any ideas?
@DragoniteSpam2 жыл бұрын
It's technically possible to read audio data yourself, but I don't ever see it being done in GML in real time. I'd recommend just using an extension. In the far-off future GameMaker will be getting built-in fmod support, but that's potentially years in the future right now and I don't know if it'll include complete support for FFT stuff or not.
@williamcarlisle71564 жыл бұрын
Hi
@Polytricity3 жыл бұрын
Buffer says something rude...oops f.ucu =0 Great tutorials man!