[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.
This commit is contained in:
parent
d00f52e419
commit
4918d435e9
1 changed files with 42 additions and 9030 deletions
31
examples/audio/audio_wave_export.c
Normal file
31
examples/audio/audio_wave_export.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/*******************************************************************************************
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
Loading…
Reference in a new issue