An electronic device (101; 201), comprising: a wireless communication circuit (170; 220); a touchscreen display (160; 260); and at least one processor (120; 210) configured to: establish a first short-range wireless channel with a first external device using the wireless communication circuit, establish a second short-range wireless channel with a second external device using the wireless communication circuit, display, on the touchscreen display, a user interface screen for setting a dual audio function for transmitting audio data to a plurality of external devices, the user interface screen including a first graphical object corresponding to a type of the first external device and a second graphical object corresponding to a type of the second external device, and during an execution of the dual audio function in which audio data is transmitted to the first external device via the first short-range wireless channel and the second external device via the second short-range wireless channel: receive a first user input for adjusting a volume commonly for the first external device and the second external device, and receive a second user input for adjusting a volume for one of the first external device and the second external device while a volume for another of the first external device and the second external device is maintained, wherein the at least one processor is further configured to select a codec for processing audio data from among a plurality of codecs based on priorities of the plurality of codecs when two or more of the plurality of codecs are supported by both the first external device and the second external device. a wireless communication circuit (170; 220); a touchscreen display (160; 260); and at least one processor (120; 210) configured to: establish a first short-range wireless channel with a first external device using the wireless communication circuit, establish a second short-range wireless channel with a second external device using the wireless communication circuit, display, on the touchscreen display, a user interface screen for setting a dual audio function for transmitting audio data to a plurality of external devices, the user interface screen including a first graphical object corresponding to a type of the first external device and a second graphical object corresponding to a type of the second external device, and during an execution of the dual audio function in which audio data is transmitted to the first external device via the first short-range wireless channel and the second external device via the second short-range wireless channel: receive a first user input for adjusting a volume commonly for the first external device and the second external device, and receive a second user input for adjusting a volume for one of the first external device and the second external device while a volume for another of the first external device and the second external device is maintained, wherein the at least one processor is further configured to select a codec for processing audio data from among a plurality of codecs based on priorities of the plurality of codecs when two or more of the plurality of codecs are supported by both the first external device and the second external device. establish a first short-range wireless channel with a first external device using the wireless communication circuit, establish a second short-range wireless channel with a second external device using the wireless communication circuit, display, on the touchscreen display, a user interface screen for setting a dual audio function for transmitting audio data to a plurality of external devices, the user interface screen including a first graphical object corresponding to a type of the first external device and a second graphical object corresponding to a type of the second external device, and during an execution of the dual audio function in which audio data is transmitted to the first external device via the first short-range wireless channel and the second external device via the second short-range wireless channel: receive a first user input for adjusting a volume commonly for the first external device and the second external device, and receive a second user input for adjusting a volume for one of the first external device and the second external device while a volume for another of the first external device and the second external device is maintained, wherein the at least one processor is further configured to select a codec for processing audio data from among a plurality of codecs based on priorities of the plurality of codecs when two or more of the plurality of codecs are supported by both the first external device and the second external device. receive a first user input for adjusting a volume commonly for the first external device and the second external device, and receive a second user input for adjusting a volume for one of the first external device and the second external device while a volume for another of the first external device and the second external device is maintained, wherein the at least one processor is further configured to select a codec for processing audio data from among a plurality of codecs based on priorities of the plurality of codecs when two or more of the plurality of codecs are supported by both the first external device and the second external device.