add reset() for every platform
This commit is contained in:
parent
b0139015d0
commit
a17e91955a
19 changed files with 157 additions and 98 deletions
|
|
@ -61,12 +61,17 @@ int DivPlatformDummy::dispatch(DivCommand c) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
void DivPlatformDummy::reset() {
|
||||
for (int i=0; i<chans; i++) {
|
||||
chan[i]=DivPlatformDummy::Channel();
|
||||
chan[i].vol=0x0f;
|
||||
}
|
||||
}
|
||||
|
||||
int DivPlatformDummy::init(DivEngine* p, int channels, int sugRate, bool pal) {
|
||||
parent=p;
|
||||
rate=65536;
|
||||
chans=channels;
|
||||
for (int i=0; i<chans; i++) {
|
||||
chan[i].vol=0x0f;
|
||||
}
|
||||
reset();
|
||||
return channels;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue