The "best" answer seems wrong or at best misleading -- I would be very very surprised if the user-visible OS master volume control, which typically controls the sound card directly, was not directly controlling op-amp gain at some later stage of the sound card.<p>Assuming this is true, the correct option would be to maximize any application volumes (e.g. YouTube), to maximize master volume to a level just below the sound clips (distorts) at the amplifier input, and to reduce the amplifier's pre-gain (if it has any) so the master volume control has a reasonable range.<p>This method will minimize the <i>three</i> (not just one) culprits of poor computer audio quality: quantization at the application layer, electronic interference over the physical connection, and clipping at the pre-amp.