notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code940 now plays mp3s
[picodrive.git]
/
platform
/
gp2x
/
940ctl_ym2612.c
diff --git
a/platform/gp2x/940ctl_ym2612.c
b/platform/gp2x/940ctl_ym2612.c
index
4dc320d
..
35bf4a7
100644
(file)
--- a/
platform/gp2x/940ctl_ym2612.c
+++ b/
platform/gp2x/940ctl_ym2612.c
@@
-7,7
+7,7
@@
#include <fcntl.h>
\r
#include <errno.h>
\r
\r
#include <fcntl.h>
\r
#include <errno.h>
\r
\r
-#include "940shared.h"
\r
+#include "
code940/
940shared.h"
\r
#include "gp2x.h"
\r
#include "emu.h"
\r
#include "menu.h"
\r
#include "gp2x.h"
\r
#include "emu.h"
\r
#include "menu.h"
\r
@@
-235,11
+235,11
@@
static void wait_busy_940(void)
printf("wait iterations: %i\n", i);
\r
#else
\r
for (i = 0; shared_ctl->busy && i < 0x10000; i++)
\r
printf("wait iterations: %i\n", i);
\r
#else
\r
for (i = 0; shared_ctl->busy && i < 0x10000; i++)
\r
- spend_cycles(
4*1024);
\r
+ spend_cycles(
8*1024); // tested to be best for mp3 dec
\r
if (i < 0x10000) return;
\r
\r
/* 940 crashed */
\r
if (i < 0x10000) return;
\r
\r
/* 940 crashed */
\r
- printf("940 crashed (cnt: %i,
wc: %i, ve: ", shared_ctl->loopc, shared_ctl->wait
c);
\r
+ printf("940 crashed (cnt: %i,
ve: ", shared_ctl->loop
c);
\r
for (i = 0; i < 8; i++)
\r
printf("%i ", shared_ctl->vstarts[i]);
\r
printf(")\n");
\r
for (i = 0; i < 8; i++)
\r
printf("%i ", shared_ctl->vstarts[i]);
\r
printf(")\n");
\r
@@
-373,7
+373,7
@@
void YM2612Init_940(int baseclock, int rate)
/* now cause 940 to init it's ym2612 stuff */
\r
shared_ctl->baseclock = baseclock;
\r
shared_ctl->rate = rate;
\r
/* now cause 940 to init it's ym2612 stuff */
\r
shared_ctl->baseclock = baseclock;
\r
shared_ctl->rate = rate;
\r
- shared_ctl->jobs[0] = JOB940_
YM2612INIT
;
\r
+ shared_ctl->jobs[0] = JOB940_
INITALL
;
\r
shared_ctl->jobs[1] = 0;
\r
shared_ctl->busy = 1;
\r
\r
shared_ctl->jobs[1] = 0;
\r
shared_ctl->busy = 1;
\r
\r