Change interpolation to polyphase
Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
@@ -253,7 +253,8 @@ int playWav(const char *wav)
|
|||||||
fread(buffer2, 1, buffer_size, file);
|
fread(buffer2, 1, buffer_size, file);
|
||||||
ndspChnReset(CHANNEL);
|
ndspChnReset(CHANNEL);
|
||||||
ndspChnWaveBufClear(CHANNEL);
|
ndspChnWaveBufClear(CHANNEL);
|
||||||
ndspChnSetInterp(CHANNEL, NDSP_INTERP_LINEAR);
|
/* Polyphase sounds much better than linear or no interpolation */
|
||||||
|
ndspChnSetInterp(CHANNEL, NDSP_INTERP_POLYPHASE);
|
||||||
ndspChnSetRate(CHANNEL, sample);
|
ndspChnSetRate(CHANNEL, sample);
|
||||||
ndspChnSetFormat(CHANNEL, bitness);
|
ndspChnSetFormat(CHANNEL, bitness);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user