- [NEW] mòdul 'zx_speaker' per a unificar la eixida de só
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -4,6 +4,7 @@
|
||||
#include "z80dis.h"
|
||||
#include "z80debug.h"
|
||||
#include "zx_ula.h"
|
||||
#include "zx_speaker.h"
|
||||
#include "zx_screen.h"
|
||||
#include "zx_tape.h"
|
||||
#include <SDL2/SDL.h>
|
||||
@@ -128,7 +129,8 @@ int main(int argc, char *argv[])
|
||||
ui::menu::addbooloption(menu, "STOP ON INVALID OP", z80::getOption(Z80_OPTION_STOP_ON_INVALID), actions::decZoom);
|
||||
ui::menu::addoption(menu, "SHOW ANALYZER", actions::showAnalyzer);
|
||||
|
||||
zx_ula::sound_init();
|
||||
speaker::init();
|
||||
speaker::register_source(zx_ula::get_sample);
|
||||
|
||||
zx_tape::load("ROBOCOP1.TAP");
|
||||
|
||||
@@ -228,7 +230,7 @@ int main(int argc, char *argv[])
|
||||
time = SDL_GetTicks();
|
||||
zx_tape::report();
|
||||
}
|
||||
//zx_ula::sound_update(dt);
|
||||
//speaker::update(dt);
|
||||
//zxscreen::refresh(dt);
|
||||
}
|
||||
if (fastload) { printf("%i\n", SDL_GetTicks()-time); t_states=0; }
|
||||
@@ -243,7 +245,7 @@ int main(int argc, char *argv[])
|
||||
t_states += dt;
|
||||
zx_tape::update(dt);
|
||||
|
||||
zx_ula::sound_update(dt);
|
||||
speaker::update(dt);
|
||||
zxscreen::refresh(dt);
|
||||
if (z80debug::debugging()) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user