VERA: add ins color and reset
This commit is contained in:
parent
cbc8721a00
commit
a9f80b841c
5 changed files with 12 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "vera_pcm.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
static uint8_t volume_lut[16] = {0, 1, 2, 3, 4, 5, 6, 8, 11, 14, 18, 23, 30, 38, 49, 64};
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ fifo_reset(struct VERA_PCM* pcm)
|
|||
pcm->fifo_wridx = 0;
|
||||
pcm->fifo_rdidx = 0;
|
||||
pcm->fifo_cnt = 0;
|
||||
memset(pcm->fifo,0,sizeof(pcm->fifo));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ void DivPlatformVERA::reset() {
|
|||
for (int i=0; i<17; i++) {
|
||||
chan[i]=Channel();
|
||||
}
|
||||
psg_reset(psg);
|
||||
pcm_reset(pcm);
|
||||
memset(regPool,0,66);
|
||||
for (int i=0; i<16; i++) {
|
||||
chan[i].vol=63;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue