Implement DMA push method for sound.

This commit is contained in:
Maxim Poliakovski
2020-03-19 15:09:24 +01:00
parent 8e34c1657c
commit 945e63bdb2
7 changed files with 138 additions and 9 deletions
+6
View File
@@ -30,6 +30,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "ppcemu.h"
#include "debugger/debugger.h"
#include "machines/machinefactory.h"
#include "SDL.h"
using namespace std;
@@ -71,6 +72,11 @@ int main(int argc, char **argv)
goto bail;
}
if (SDL_Init(SDL_INIT_AUDIO)){
LOG_F(ERROR, "SDL_Init error: %s", SDL_GetError());
goto bail;
}
if ((checker == "1") || (checker == "realtime") || \
(checker == "-realtime") || (checker == "/realtime")) {
ppc_exec();