A downloadable thingy

Download NowName your own price

WaveWrite is a native GML script that lets you read .wav files and play them as audio, and write audio buffers to *.wav files as well. This can be used to load external user-provided wave files at runtime, or save recorded audio to a file that the user can play themselves.

  • audio_load_wav(buffer) - Parses an existing buffer that has been loaded with a .wav file, and transforms it into a sound you can play. Returns a struct containing the sound, buffer, and audio information, or containing an error message if unsuccessful.
  • audio_write_wav(buffer, format, rate, offset, length, channels) - Converts a buffer filled with raw PCM audio (that you have recorded, created, or loaded from a previous .wav file) into a buffer that can be saved as a valid *.wav file. Returns a struct containing the new buffer, or containing an error message if unsuccessful.

See the screenshots on this page for detailed usage examples. Also included is an object that contains a full example of how to record audio and save it to a *.wav file.

Download

Download NowName your own price

Click download now to get access to the following files:

WaveWrite.yymps 7.5 kB
Version 1.0.1

Leave a comment

Log in with itch.io to leave a comment.