Fix sound buffer address in BootBeep
This commit is contained in:
parent
4dea595da2
commit
e2a74064a0
2 changed files with 6 additions and 0 deletions
|
|
@ -56,6 +56,9 @@ static inline unsigned int umac_get_fb_offset(void)
|
|||
#if ENABLE_AUDIO
|
||||
#define umac_get_audio_offset() (RAM_SIZE - 768)
|
||||
#define umac_get_audio_offset_end() (RAM_SIZE - 768 + 2 * 370)
|
||||
extern unsigned first_audio_sample;
|
||||
#define umac_get_first_audio_sample() (first_audio_sample)
|
||||
#define umac_reset_first_audio_sample() (first_audio_sample = 0, (void)0)
|
||||
|
||||
void umac_audio_trap();
|
||||
void umac_audio_cfg(int volume, int sndres);
|
||||
|
|
|
|||
|
|
@ -116,6 +116,9 @@ static void rom_patch_plusv3(uint8_t *rom_base)
|
|||
* allowing the ROM checksum to fail (it returns failure, then
|
||||
* we carry on). This avoids wild RAM addrs being accessed.
|
||||
*/
|
||||
|
||||
/* Fix up the sound buffer as used by BootBeep */
|
||||
ROM_WR32(0x292, RAM_SIZE - 768);
|
||||
#endif
|
||||
|
||||
#if DISP_WIDTH != 512 || DISP_HEIGHT != 342
|
||||
|
|
|
|||
Loading…
Reference in a new issue