blob: 29bcb43c241dc4c01057574321a7c9e8082ad75d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// license:BSD-3-Clause
// copyright-holders:ElSemi, R. Belmont
#ifndef MAME_SOUND_SCSPDSP_H
#define MAME_SOUND_SCSPDSP_H
#pragma once
//the DSP Context
struct SCSPDSP
{
//Config
uint16_t *SCSPRAM;
uint32_t SCSPRAM_LENGTH;
uint32_t RBP; //Ring buf pointer
uint32_t RBL; //Delay ram (Ring buffer) size in words
//context
int16_t COEF[64]; //16 bit signed
uint16_t MADRS[32]; //offsets (in words), 16 bit
uint16_t MPRO[128*4]; //128 steps 64 bit
int32_t TEMP[128]; //TEMP regs,24 bit signed
int32_t MEMS[32]; //MEMS regs,24 bit signed
uint32_t DEC;
//input
int32_t MIXS[16]; //MIXS, 24 bit signed
int16_t EXTS[2]; //External inputs (CDDA) 16 bit signed
//output
int16_t EFREG[16]; //EFREG, 16 bit signed
int Stopped;
int LastStep;
void Init();
void SetSample(int32_t sample, int32_t SEL, int32_t MXL);
void Step();
void Start();
};
#endif // MAME_SOUND_SCSPDSP_H
|