mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-31 20:11:29 +00:00
Proper device resetting
This commit is contained in:
parent
2e45b3066a
commit
b1120575e4
1 changed files with 3 additions and 1 deletions
|
@ -285,6 +285,9 @@ int DivPlatformLynx::getRegisterPoolSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
void DivPlatformLynx::reset() {
|
void DivPlatformLynx::reset() {
|
||||||
|
|
||||||
|
mikey = std::make_unique<Lynx::Mikey>( rate );
|
||||||
|
|
||||||
for (int i=0; i<4; i++) {
|
for (int i=0; i<4; i++) {
|
||||||
chan[i]= DivPlatformLynx::Channel();
|
chan[i]= DivPlatformLynx::Channel();
|
||||||
}
|
}
|
||||||
|
@ -331,7 +334,6 @@ int DivPlatformLynx::init(DivEngine* p, int channels, int sugRate, unsigned int
|
||||||
chipClock = 16000000;
|
chipClock = 16000000;
|
||||||
rate = chipClock/128;
|
rate = chipClock/128;
|
||||||
|
|
||||||
mikey = std::make_unique<Lynx::Mikey>(rate);
|
|
||||||
reset();
|
reset();
|
||||||
return 4;
|
return 4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue