notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x: drc: new smc handling, write handlers adjusted.
[picodrive.git]
/
pico
/
sound
/
sound.c
diff --git
a/pico/sound/sound.c
b/pico/sound/sound.c
index
6e0db26
..
5a9b8b3
100644
(file)
--- a/
pico/sound/sound.c
+++ b/
pico/sound/sound.c
@@
-247,7
+247,7
@@
PICO_INTERNAL void cdda_start_play(void)
lba_offset += Pico_mcd->TOC.Tracks[index].Offset;
\r
\r
// find the actual file for this track
\r
lba_offset += Pico_mcd->TOC.Tracks[index].Offset;
\r
\r
// find the actual file for this track
\r
- for (i = index; i >
=
0; i--)
\r
+ for (i = index; i > 0; i--)
\r
if (Pico_mcd->TOC.Tracks[i].F != NULL) break;
\r
\r
if (Pico_mcd->TOC.Tracks[i].F == NULL) {
\r
if (Pico_mcd->TOC.Tracks[i].F != NULL) break;
\r
\r
if (Pico_mcd->TOC.Tracks[i].F == NULL) {
\r
@@
-356,6
+356,9
@@
static int PsndRender(int offset, int length)
cdda_raw_update(buf32, length);
\r
}
\r
\r
cdda_raw_update(buf32, length);
\r
}
\r
\r
+ if ((PicoAHW & PAHW_32X) && (PicoOpt & POPT_EN_PWM))
\r
+ p32x_pwm_update(buf32, length, stereo);
\r
+
\r
// convert + limit to normal 16bit output
\r
PsndMix_32_to_16l(PsndOut+offset, buf32, length);
\r
\r
// convert + limit to normal 16bit output
\r
PsndMix_32_to_16l(PsndOut+offset, buf32, length);
\r
\r