show audio buffer next to screen in 512x342
This commit is contained in:
parent
a5e4afc98a
commit
6dce5594c5
1 changed files with 6 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ static int umac_cursor_x = 0;
|
|||
static int umac_cursor_y = 0;
|
||||
static int umac_cursor_button = 0;
|
||||
|
||||
#define umac_get_audio_offset() (RAM_SIZE - 768)
|
||||
#if USE_PSRAM
|
||||
static void copy_framebuffer() {
|
||||
uint32_t *src = (uint32_t*)(umac_ram + umac_get_fb_offset());
|
||||
|
|
@ -125,6 +126,11 @@ static void copy_framebuffer() {
|
|||
*dest++ = *src++ ^ 0xfffffffful;
|
||||
}
|
||||
}
|
||||
uint16_t *src16 = (uint16_t*)(umac_ram + umac_get_audio_offset());
|
||||
for(int i=0; i<370; i++) {
|
||||
uint32_t *dest = umac_framebuffer_mirror + LONGS_PER_OUTPUT_ROW * i;
|
||||
*dest = *src16++;
|
||||
}
|
||||
#else
|
||||
#error Unsupported display geometry for framebuffer mirroring
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue