From 7e029a59816dbe1ea1196e57efa7c80c9483b412 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Wed, 22 Feb 2017 23:54:28 +0000 Subject: [PATCH 1/4] Added an audio mixer --- audio/audio_mixer.c | 545 +++++ audio/audio_mixer.h | 50 + audio/stb_vorbis.c | 5445 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 6040 insertions(+) create mode 100644 audio/audio_mixer.c create mode 100644 audio/audio_mixer.h create mode 100644 audio/stb_vorbis.c diff --git a/audio/audio_mixer.c b/audio/audio_mixer.c new file mode 100644 index 0000000000..292d2f5bf4 --- /dev/null +++ b/audio/audio_mixer.c @@ -0,0 +1,545 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2017 - Andre Leiradella + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#include "audio_mixer.h" + +#include "audio_driver.h" +#include