- [NEW] Frequència del Z80 configurable
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "zx_ula.h"
|
||||
#include <z80.h>
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
#define AUDIO_BUFFER_SIZE 2048
|
||||
@@ -292,7 +293,7 @@ namespace zx_ula
|
||||
if (t_sound>=317) {
|
||||
t_sound-=317;
|
||||
samples_generated++;
|
||||
if (samples_t >=3500000) {
|
||||
if (samples_t >=z80::getClock()) {
|
||||
//printf("%i\n", samples_generated);
|
||||
samples_generated=0;
|
||||
samples_t = 0;
|
||||
|
||||
Reference in New Issue
Block a user