notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32 stuff, SIMPLE_WRITE_SOUND
[picodrive.git]
/
Pico
/
Pico.c
diff --git
a/Pico/Pico.c
b/Pico/Pico.c
index
93d6876
..
71add13
100644
(file)
--- a/
Pico/Pico.c
+++ b/
Pico/Pico.c
@@
-255,6
+255,11
@@
static int CheckIdle(void)
// to be called on 224 or line_sample scanlines only
\r
static __inline void getSamples(int y)
\r
{
\r
// to be called on 224 or line_sample scanlines only
\r
static __inline void getSamples(int y)
\r
{
\r
+#if SIMPLE_WRITE_SOUND
\r
+ PsndRender(0, PsndLen);
\r
+ if (PicoWriteSound) PicoWriteSound(PsndLen);
\r
+ PsndClear();
\r
+#else
\r
static int curr_pos = 0;
\r
\r
if(y == 224) {
\r
static int curr_pos = 0;
\r
\r
if(y == 224) {
\r
@@
-271,6
+276,7
@@
static __inline void getSamples(int y)
emustatus&=~1;
\r
curr_pos = PsndRender(0, PsndLen/2);
\r
}
\r
emustatus&=~1;
\r
curr_pos = PsndRender(0, PsndLen/2);
\r
}
\r
+#endif
\r
}
\r
\r
\r
}
\r
\r
\r