static int sndrate_prevnext(int rate, int dir)
{
- static const int rates[] = { 8000, 11025, 16000, 22050, 44100, 53000 };
- int rate_count = sizeof(rates)/sizeof(rates[0]);
+ const int *rates = plat_target.sound_rates;
+ int rate_count;
int i;
+ for (rate_count = 0; rates[rate_count] != -1; rate_count++)
+ ;
for (i = 0; i < rate_count; i++)
if (rates[i] == rate) break;
.defbinds = in_sdl_defbinds,
};
-struct plat_target plat_target;
+static int sound_rates[] = { 8000, 11025, 16000, 22050, 32000, 44100, 53000, -1 };
+struct plat_target plat_target = { .sound_rates = sound_rates };
#if defined __MIYOO__
const char *plat_device = "miyoo";
}\r
}\r
\r
-static const int sound_rates[] = { 53000, 44100, 32000, 22050, 16000, 11025, 8000 };\r
+static const int sound_rates[] = { 52000, 44100, 32000, 22050, 16000, 11025, 8000 };\r
\r
void pemu_sound_stop(void)\r
{\r
-Subproject commit c825b167e9c08afaec23721f983ba003d86b838a
+Subproject commit 82b4854771302e23201de274eee2969fc28be8be
/*
* PicoDrive
* (C) notaz, 2007,2008
+ * (C) irixxxx, 2022-2024
*
* This work is licensed under the terms of MAME license.
* See COPYING file in the top-level directory.
return scePowerGetBatteryLifePercent();
}
+static int sound_rates[] = { 8000, 11025, 16000, 22050, 32000, 44100, -1 };
struct plat_target plat_target = {
.cpu_clock_get = plat_cpu_clock_get,
.cpu_clock_set = plat_cpu_clock_set,
// .gamma_set = plat_gamma_set,
// .hwfilter_set = plat_hwfilter_set,
// .hwfilters = plat_hwfilters,
+ .sound_rates = sound_rates,
};
int _flush_cache (char *addr, const int size, const int op)