X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fcommon%2Fmp3.c;h=c84962cc27bad9c6138bb95989ca706a0089941c;hb=6311a3baf533d4a034e51dfe38e8cb213a1bf442;hp=b2bcaf40daf953b3ec19b6421db4d6e7601e31c1;hpb=9a1f192a146e9b9752ec1a760745b1261fe9bdec;p=picodrive.git diff --git a/platform/common/mp3.c b/platform/common/mp3.c index b2bcaf4..c84962c 100644 --- a/platform/common/mp3.c +++ b/platform/common/mp3.c @@ -115,7 +115,7 @@ void mp3_start_play(void *f_, int pos1024) cdda_out_pos = 0; decoder_active = 0; - if (!(PicoOpt & POPT_EN_MCD_CDDA) || f == NULL) // cdda disabled or no file? + if (!(PicoIn.opt & POPT_EN_MCD_CDDA) || f == NULL) // cdda disabled or no file? return; fseek(f, 0, SEEK_END); @@ -167,11 +167,11 @@ void mp3_update(int *buffer, int length, int stereo) return; length_mp3 = length; - if (PsndRate <= 11025 + 100) { + if (PicoIn.sndRate <= 11025 + 100) { mix_samples = mix_16h_to_32_s2; length_mp3 <<= 2; shr = 2; } - else if (PsndRate <= 22050 + 100) { + else if (PicoIn.sndRate <= 22050 + 100) { mix_samples = mix_16h_to_32_s1; length_mp3 <<= 1; shr = 1; }