Add audio preview generator. Thread here: https://2dimensions.slack.com/archives/CLLCU09T6/p1707353939433169 The executable will return a non zero code with an error printed on stderr if there's a problem. If the exit code is 0 (success) the output will be JSON like this: ``` {"channels":2,"duration":192.49632263183594,"format":"mp3","sampleRate":44100,"size":8095932} ``` or: ``` {"channels":2,"duration":3.9996354579925537,"format":"wav","sampleRate":96000,"size":2303834} ``` Sample invocation: ``` rive_audio_preview_generator -s ~/Desktop/games_original.wav -d ~/Desktop/games_preview.mp3 ``` Diffs= e145f9348 Add audio preview generator. (#6580) Co-authored-by: Luigi Rosso <luigi-rosso@users.noreply.github.com>
diff --git a/.rive_head b/.rive_head index 72aa73a..c42f714 100644 --- a/.rive_head +++ b/.rive_head
@@ -1 +1 @@ -27ac9fcbbe57e46afa449852b369401b4b579411 +e145f9348ceb3a5cd56cd1005a0fda5f0a3e754e
diff --git a/premake5_v2.lua b/premake5_v2.lua index a188aba..400bd6e 100644 --- a/premake5_v2.lua +++ b/premake5_v2.lua
@@ -38,6 +38,11 @@ flags({ 'FatalCompileWarnings' }) + filter({ 'system:linux' }) + do + defines({ 'MA_NO_RUNTIME_LINKING' }) + end + filter({ 'system:macosx' }) do buildoptions({