aaaaaaaa
This commit is contained in:
parent
e06b2f6952
commit
3e0dcbb0ae
104 changed files with 233 additions and 233 deletions
|
|
@ -46,7 +46,7 @@ const char** DivPlatformVRC6::getRegisterSheet() {
|
|||
return regCheatSheetVRC6;
|
||||
}
|
||||
|
||||
void DivPlatformVRC6::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
void DivPlatformVRC6::acquire(short** buf, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
// PCM part
|
||||
for (int i=0; i<2; i++) {
|
||||
|
|
@ -81,7 +81,7 @@ void DivPlatformVRC6::acquire(short* bufL, short* bufR, size_t start, size_t len
|
|||
int sample=vrc6.out()<<9; // scale to 16 bit
|
||||
if (sample>32767) sample=32767;
|
||||
if (sample<-32768) sample=-32768;
|
||||
bufL[i]=bufR[i]=sample;
|
||||
buf[0][i]=buf[1][i]=sample;
|
||||
|
||||
// Oscilloscope buffer part
|
||||
if (++writeOscBuf>=32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue