raylib/examples/audio/audio_wave_export.c
torph 4918d435e9
[raudio]: Replace DrWAV with miniaudio WAV encoder
Miniaudio includes DrWAV, and their encoder is just a wrapper. Now we
don't have 2 copies of it.
2026-02-08 02:14:28 -05:00

31 lines
No EOL
998 B
C

/*******************************************************************************************
*
* raylib [audio] example - sound loading
*
* Example complexity rating: [★☆☆☆] 1/4
*
* Example originally created with raylib 5.5
* Example contributed by Torphedo (@torphedo)
*
* Example licensed under an unmodified zlib/libpng license, which is an OSI-certified,
* BSD-like license that allows static linking with closed source software
*
* Copyright (c) 2026 Torphedo (@torphedo)
*
********************************************************************************************/
#include "raylib.h"
//------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
int main(void)
{
Wave wave = LoadWave("resources/country.mp3");
if (wave.data) {
ExportWave(wave, "country.wav");
UnloadWave(wave);
}
return 0;
}