Method of rendering object-based audio and electronic device performing the method
A method of rendering object-based audio and an electronic device performing the method are provided. The method includes identifying a bitstream, determining a reference distance of an object sound source based on the bitstream, determining a minimum distance for applying distance-dependent attenuation, based on the reference distance, and determining a gain of object-based audio included in the bitstream based on the reference distance and the minimum distance.
1 . A method of rendering object-based audio, the method comprising:
identifying a bitstream;
determining a reference distance of an object sound source based on the bitstream;
determining a minimum distance for applying distance-dependent attenuation, based on the reference distance; and
determining a gain of object-based audio included in the bitstream based on the reference distance and the minimum distance,
wherein the determining of the minimum distance comprises determining, when the reference distance is equal to or less than a set value of the minimum distance, the reference distance to be the minimum distance.
2 . The method of claim 1 , wherein the determining of the minimum distance comprises:
determining, when the reference distance is greater than a set value of the minimum distance, the set value to be the minimum distance.
3 . The method of claim 1 , wherein the determining of the gain of the object-based audio comprises:
determining, when a distance of the object sound source is equal to or less than the minimum distance, the gain of the object-based audio to be a set size.
4 . The method of claim 1 , wherein the determining of the gain of the object-based audio comprises:
determining the gain of the object-based audio based on a ratio of the distance of the object sound source to the reference distance when the distance of the object sound source is greater than the minimum distance.
5 . An electronic device comprising a processor, wherein the processor is configured to:
identify a bitstream;
determine a reference distance of an object sound source based on the bitstream;
determine a minimum distance for applying distance-dependent attenuation, based on the reference distance; and
determine a gain of object-based audio included in the bitstream based on the reference distance and the minimum distance, wherein the processor is configured to determine, when the reference distance is equal to or less than a set value of the minimum distance, the reference distance to be the minimum distance.
6 . The electronic device of claim 5 , wherein the processor is configured to:
determine, when the reference distance is greater than a set value of the minimum distance, the set value to be the minimum distance.
7 . The electronic device of claim 5 , wherein the processor is configured to:
determine, when a distance of the object sound source is equal to or less than the minimum distance, the gain of the object-based audio to be a set size.
8 . The electronic device of claim 5 , wherein the processor is configured to:
determine the gain of the object-based audio based on a ratio of the distance of the object sound source to the reference distance when the distance of the object sound source is greater than the minimum distance.