Can't disable Resample for zooming, or what's this? I've just upgraded from 1.22 to 1.25 and would like to clear this before deciding to stick with 1.22 back forever. One of the most common uses of IrfanView for me is, paste a screenshot, crop it to a very tiny part and then fit it to screen, this allows me to pick colours from screenshots for. Resizing an image changes the size that it will print at without changing the number of pixels in the image. Notice if you disable resampling, 'pixels' is no longer an option on the drop-down menu next to Height and Width, because resizing does not change the number of pixels, so you can't express the new size in pixel dimensions. So I completely understand how to use resample, but the documentation does not do a good job explaining the options. So most options in the resample function are pretty straight forward except for these two: rule: the offset string or object representing target conversion; how: string, method for down- or re-sampling, default to ‘mean’.
I have recently bought an expensive USB DAC capable of both 44.1KHz & 48KHz sampling rates. It is reported as a Burr-Brown Japan PCM2702. At the moment it seems that most of my programs that output sound (mpd, smplayer, vlc, aplay, etc.) all result in 44.1KHz music being resampled to 48KHz. For example, the following is playing a 44.1KHz wav file using aplay;
aplay correctly identifies the file as 44.1KHz, but alsa is sending 48KHz to the DAC;
However if I add the -Dhw:0,0 to aplay, alsa sends 44.1KHz to the DAC, so I know that it is possible to get what I want.
I can achieve something similar with smplayer's GUI Options-->Preferences-->General-->Audio as the 'Output driver' drop-down list offers me several options; if I select alsa it resamples to 48KHz, however if I select alsa (0.0 - Burr-Brown Japan PCM2702 it outputs 44.1KHz.
So my question is this - what is the simplest/cleanest way to disable resampling & get alsa to output the original audio to the DAC? I've spent hours trawling the web & reading all sorts of wikis & howtos about .asoundrc/asound.conf, but I have failed to find anything that directly addresses this problem, which should be a simple fix!
Disable Resample
Last edited by lost eden (2009-07-12 21:55:57)