mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
SAA1099 doesn't like DC offset correction
This commit is contained in:
parent
ff0e48679b
commit
d8e8fd4031
1 changed files with 7 additions and 2 deletions
|
@ -75,12 +75,17 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t size) {
|
|||
void DivDispatchContainer::clear() {
|
||||
blip_clear(bb[0]);
|
||||
blip_clear(bb[1]);
|
||||
temp[0]=0;
|
||||
temp[1]=0;
|
||||
prevSample[0]=0;
|
||||
prevSample[1]=0;
|
||||
// run for one cycle to determine DC offset
|
||||
dispatch->acquire(bbIn[0],bbIn[1],0,1);
|
||||
// TODO: SAA1099 doesn't like that
|
||||
/*dispatch->acquire(bbIn[0],bbIn[1],0,1);
|
||||
temp[0]=bbIn[0][0];
|
||||
temp[1]=bbIn[1][0];
|
||||
prevSample[0]=temp[0];
|
||||
prevSample[1]=temp[1];
|
||||
prevSample[1]=temp[1];*/
|
||||
}
|
||||
|
||||
void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, double gotRate, bool pal) {
|
||||
|
|
Loading…
Reference in a new issue