A non-transitory storage medium having stored therein a game program which, when executed by a computer connected to a controller for receiving a user operation, storage for storing therein sound data, and a speaker, causes the computer to perform operations comprising:
- setting at least a first object and a second object in a virtual space;
- receiving, from the controller, an instruction to move the second object in the virtual space;
- reading, from the storage, sound data associated with the first object within a predetermined distance from the second object in the virtual space;
- acquiring sound data for producing sound by the first object;
- moving the second object in response to the instruction to move;
- determining the Doppler effect for the sound produced by the first object and virtually captured by the second object based on a first speed of movement in the virtual space of the first object and/or on a second speed of movement in the virtual space of the second object, wherein, in the determining of the Doppler effect, the first speed is clamped to a first maximum speed when the first speed of movement in the virtual space of the virtual sound source exceeds the first maximum speed and/or the second speed is clamped to second maximum speed when the second speed of movement in the virtual space of the virtual microphone exceeds the second maximum speed;
- modifying the sound virtually captured by the second object according to the determined Doppler effect;
- and
- outputting the modified sound from the speaker.