Sound effect playing method and device in game scene and electronic device
The invention discloses a sound effect playing method and device in a game scene and an electronic device. The method comprises the steps of obtaining a current position of a virtual object controlledby a player account in a game scene of a target game in a running process of the target game; obtain...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
08.05.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a sound effect playing method and device in a game scene and an electronic device. The method comprises the steps of obtaining a current position of a virtual object controlledby a player account in a game scene of a target game in a running process of the target game; obtaining a target sound effect type and a target sound source distance corresponding to the current position according to sound field data pre-established for the game scene; obtaining a target sound source orientation at the current position according to the target sound source distance; and playing the target sound effect at the current position at least according to the target sound effect type, the target sound source distance and the target sound source orientation, the target sound effect typebeing the target sound effect type, the target sound source distance being used for determining the size of the target sound effect, and the target sound source orientation being used for determiningthe sound source position |
---|---|
Bibliography: | Application Number: CN201911236947 |