A non-transitory computer-readable storage medium having stored therein an information processing program to be executed by a computer of an information processing apparatus capable of outputting a sound to a plurality of speakers, the program causing the computer to:
- control a position of a virtual microphone in a virtual space where a virtual sound source associated with a sound is placed;
- perform volume setting for the sound to be outputted and balance setting for an output balance of the plurality of speakers, on the basis of a relative distance and a relative direction from the virtual microphone to the virtual sound source;
- output the sound to the plurality of speakers on the basis of the set volume and the set output balance;
- and
- in a case where the virtual microphone has moved to an extent greater than a predetermined reference in the virtual space, during a predetermined period from the movement of the virtual microphone,
- perform each of first interpolation for changing the relative distance over the predetermined period, from the relative distance before the movement to the relative distance after the movement, and second interpolation for changing the relative direction over the predetermined period, from the relative direction before the movement to the relative direction after the movement, and
- perform the volume setting and the balance setting on the basis of the relative distance set through the first interpolation and the relative direction set through the second interpolation.