Skip to content

Commit

Permalink
audemutest: Update broken Resampler mode
Browse files Browse the repository at this point in the history
fix resampleMode in Resmpl_SetVals() for breaking change in 77c34eb
  • Loading branch information
Simon-L committed Jun 7, 2024
1 parent 53aebe9 commit 34c368c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions audemutest.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ int main(int argc, char* argv[])
okiDefInf.devDef->Reset(okiDefInf.dataPtr);
opllDefInf.devDef->Reset(opllDefInf.dataPtr);

Resmpl_SetVals(&snResmpl, 0xFF, 0xC0, opts->sampleRate);
Resmpl_SetVals(&snResmpl, RSMODE_LINEAR, 0xC0, opts->sampleRate);
Resmpl_DevConnect(&snResmpl, &snDefInf);
Resmpl_Init(&snResmpl);

Resmpl_SetVals(&okiResmpl, 0xFF, 0x100, opts->sampleRate);
Resmpl_SetVals(&okiResmpl, RSMODE_LINEAR, 0x100, opts->sampleRate);
Resmpl_DevConnect(&okiResmpl, &okiDefInf);
Resmpl_Init(&okiResmpl);

Resmpl_SetVals(&opllResmpl, 0xFF, 0x100, opts->sampleRate);
Resmpl_SetVals(&opllResmpl, RSMODE_LINEAR, 0x100, opts->sampleRate);
Resmpl_DevConnect(&opllResmpl, &opllDefInf);
Resmpl_Init(&opllResmpl);
canRender = true;
Expand Down

0 comments on commit 34c368c

Please sign in to comment.