Skip to content

Instantly share code, notes, and snippets.

@aji
Last active December 24, 2015 17:39
Show Gist options
  • Save aji/6836720 to your computer and use it in GitHub Desktop.
Save aji/6836720 to your computer and use it in GitHub Desktop.
MODPLUG_RESAMPLE_NEAREST sounds better for chiptunes.
diff -rupN mpd-0.17.5.old/src/decoder/modplug_decoder_plugin.c mpd-0.17.5.new/src/decoder/modplug_decoder_plugin.c
--- mpd-0.17.5.old/src/decoder/modplug_decoder_plugin.c 2013-08-01 00:15:41.000000000 -0700
+++ mpd-0.17.5.new/src/decoder/modplug_decoder_plugin.c 2013-10-04 21:36:17.978427703 -0700
@@ -108,7 +108,7 @@ mod_decode(struct decoder *decoder, stru
ModPlug_GetSettings(&settings);
/* alter setting */
- settings.mResamplingMode = MODPLUG_RESAMPLE_FIR; /* RESAMP */
+ settings.mResamplingMode = MODPLUG_RESAMPLE_NEAREST; /* RESAMP */
settings.mChannels = 2;
settings.mBits = 16;
settings.mFrequency = 44100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment