WO2021085902A1 - Electronic device for outputting audio data of plurality of applications, and method for operating same - Google Patents

Electronic device for outputting audio data of plurality of applications, and method for operating same Download PDF

Info

Publication number
WO2021085902A1
WO2021085902A1 PCT/KR2020/014117 KR2020014117W WO2021085902A1 WO 2021085902 A1 WO2021085902 A1 WO 2021085902A1 KR 2020014117 W KR2020014117 W KR 2020014117W WO 2021085902 A1 WO2021085902 A1 WO 2021085902A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
audio data
application
audio
external audio
Prior art date
Application number
PCT/KR2020/014117
Other languages
French (fr)
Korean (ko)
Inventor
강대희
김형근
박천호
김승년
박정민
유규상
Original Assignee
삼성전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2021085902A1 publication Critical patent/WO2021085902A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/38Displays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Definitions

  • Various embodiments of the present invention relate to a method and an apparatus for outputting audio data of a plurality of applications in an electronic device.
  • the electronic device may provide various services to a user by transmitting and receiving data through a short-range wireless communication connection with an external device (eg, a wearable device, earbuds, or wireless earphone) having an audio output function.
  • an external device eg, a wearable device, earbuds, or wireless earphone
  • the electronic device may connect to an external device having an audio output function and output audio data of an application executed in the electronic device through the connected external device.
  • an external device having an audio output function and output audio data of an application executed in the electronic device When a plurality of applications having an audio data output function are executed in the electronic device, the electronic device may select one application from among the plurality of applications and output audio data of the selected application through a connected external device.
  • the method of outputting only the audio data of one selected application has a limitation in satisfying the needs of various users.
  • various embodiments of the present invention disclose a method and an apparatus for simultaneously outputting audio data of a plurality of applications in an electronic device.
  • a wireless communication module and a processor operatively connected to the wireless communication module are included, wherein the processor detects an event for outputting audio of a plurality of applications, and based on the event detection , Check at least one external audio device connected to the electronic device through the wireless communication module, and when a first external audio device is connected to the electronic device, audio data of a first application and audio data of a second application are transmitted to the electronic device.
  • the first external audio device is transmitted to the first external audio device through a wireless communication module and the first external audio device and the second external audio device are connected to the electronic device, the first external audio device is transmitted to the first external audio device through the wireless communication module.
  • the audio data of the first application may be transmitted and control may be performed to transmit the audio data of the second application to the second external audio device.
  • the electronic device includes a display in which at least a portion is folded, at least one sensor for detecting a folding state of the display, a wireless communication module, a memory for storing at least one application, and the display, the at least one A sensor, the memory, and a processor operatively connected to the wireless communication module, wherein the processor executes a first application and a second application stored in the memory, and a folding state of the display is a first designated state.
  • a plurality of applications Detects an event for outputting audio data of, and, based on the event, transmits the audio data of the first application and the audio data of the second application to the at least one external audio device through the wireless communication module. It can be set to transmit.
  • the electronic device outputs audio data of a plurality of applications using at least one external audio device, thereby improving a user's satisfaction level for receiving various services.
  • user convenience may be improved by outputting audio data of a plurality of applications based on a change in a folding state of an electronic device and/or a display in the electronic device.
  • audio data of one application or audio data of a plurality of applications are selectively selected according to a request of a first device that detects proximity of a second device among external audio devices connected by an electronic device.
  • a first device that detects proximity of a second device among external audio devices connected by an electronic device.
  • FIGS. 1A and 1B are diagrams illustrating an unfolded state of a foldable type electronic device according to various embodiments.
  • FIGS. 2A and 2B are diagrams illustrating an unfolded state of a flexible type electronic device according to various embodiments.
  • FIG. 3 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure.
  • FIG. 4 is a block diagram of an external audio device according to various embodiments of the present disclosure.
  • FIG. 5 is a flowchart for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 6A is an exemplary diagram for transmitting audio data of a plurality of applications from an electronic device to a first external audio pair device according to various embodiments of the present disclosure.
  • 6B is an exemplary diagram of transmitting audio data of a plurality of applications from an electronic device to a plurality of external audio pair devices according to various embodiments of the present disclosure.
  • 6C is an exemplary diagram illustrating information on a device for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 6D is an exemplary diagram of designating an external audio device corresponding to at least a partial area in an electronic device according to various embodiments of the present disclosure.
  • FIG. 7 is a flowchart for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
  • FIG. 8 is an exemplary diagram for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
  • FIG. 9 is a flowchart of transmitting audio data of a plurality of applications by using a short-range communication module included in the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 10A is an exemplary diagram of transmitting audio data of a plurality of applications in an electronic device including a plurality of short-range communication modules, according to various embodiments.
  • 10B is an exemplary diagram of transmitting audio data of a plurality of applications by using different protocols in an electronic device including one short-range communication module according to various embodiments.
  • 11A is a flowchart of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 11B is an exemplary diagram of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 11C is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 11D is an exemplary diagram of switching an external audio device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 11E is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 11F is an exemplary diagram of switching an external audio device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
  • 11G is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
  • FIG. 12 is a flowchart of transmitting audio data in response to a request from a first device of an external audio pair device in an electronic device according to various embodiments of the present disclosure.
  • FIG. 13 is an exemplary diagram for measuring the strength of a received signal in each of an external audio pair device according to various embodiments.
  • FIG. 14 is a diagram illustrating an example in which a first device detects a communication impossible situation of a second device among external audio pair devices according to various embodiments of the present disclosure.
  • 15 is an exemplary diagram in which a first device among external audio pair devices according to various embodiments requests audio data from an electronic device based on signal reception strength.
  • 16A to 16C are flowcharts of requesting audio data from an electronic device based on a signal reception strength by a first device among external audio pair devices according to various embodiments of the present disclosure.
  • 17 is a flowchart of transmitting audio data according to a request of a first device in an electronic device according to various embodiments of the present disclosure.
  • FIGS. 1A and 1B are diagrams illustrating an unfolded state of a foldable type electronic device according to various embodiments.
  • 1A is a front view illustrating an unfolded state of a foldable type electronic device according to various embodiments
  • FIG. 1B is a rear view illustrating an unfolded state of a foldable type electronic device according to various embodiments.
  • an electronic device 101 includes a foldable housing 110, a folding part 116, a first display 120, a second display 122, and a second display. It may include one sensor 130, a second sensor 132, and/or one or more components 136.
  • the first display 120 and/or the second display 122 may be a flexible and/or foldable display disposed in a space formed by the foldable housing 110.
  • the foldable housing 110 may include a first housing 112 and a second housing 114.
  • the electronic device 101 may be composed of a first housing 112 and a second housing 114, wherein a housing including the first housing 112 and the second housing 114 is provided. It can be said that it is a foldable housing 110.
  • the first housing 112 includes a first surface (or a first front surface (eg, a surface facing the +Z-axis direction in FIG. 1A)) 151 and a third surface facing the first surface 151 (Or a first rear surface (eg, a surface facing the +Z axis in FIG. 1B)) 153 may be included.
  • the second housing 114 has a second surface (or a second front surface (for example, a surface facing the +Z axis in FIG. 1A)) 152, and a fourth surface facing the second surface 152 (or A second rear surface example: a surface facing the +Z axis of FIG. 1B)) 154 may be included.
  • the first housing 112 and the second housing 114 may be disposed on both sides of the folded portion 116 and connected by the folded portion 116.
  • the folded portion 116 is coupled to a side surface of the first housing 112 and a side surface of the second housing 114 facing the side surface of the first housing 112, respectively, so that the first housing 112 and the The second housing 114 may be connected to be pivotably or rotatably at a certain angle.
  • the first display 120 may be disposed in a space formed by the first housing 112. At least a portion of the first display 120 may be visually exposed through a third surface (or first rear surface) of the first housing 112 or a partial area of the first rear cover 150.
  • the second display 122 may be disposed in a space formed by the first housing 112 and the second housing 114 across the folded portion 116.
  • the second display 122 may be installed to be supported by at least a portion of the first housing 112 and the second housing 114.
  • the second display 122 crosses the fold 116 on the first side 151 of the first housing 112 and on the second side 152 of the second housing 114. Can be placed.
  • the first sensor 130 may be disposed in a space formed by the first housing 112.
  • the first sensor 130 is the first display 120 of the third surface (or first rear surface) 153 of the first housing 112 or the area of the first rear cover 150 It may be a sensor module disposed in the upper area of the area where is disposed.
  • the first sensor 130 may be included in and mounted in another subsidiary material included in at least a part of the first housing 112.
  • the first sensor 130 may include at least one camera sensor.
  • the first sensor 130 may further include other subsidiary materials (eg, a lens unit (not shown)).
  • the first sensor 130 may be disposed under the first display 120.
  • the second sensor 132 may be disposed in a space formed by the second housing.
  • the second sensor 132 may be a sensor module disposed in an upper area of an area in which the second display 122 is disposed among areas of the second surface (or the second front surface) of the second housing.
  • the second sensor 132 may include at least one of at least one camera sensor or at least one UWB sensor.
  • the second sensor 132 may be disposed under the second display 122.
  • the second sensor 132 may be disposed on at least one side of the second housing 114 or on a subsidiary material disposed inside.
  • the second sensor 132 may be included in at least a portion of the second display 122.
  • one or more components 136 may be disposed within a space formed by the second housing 114.
  • the one or more components 136 may be a sensor module disposed on a fourth surface (or a second rear surface) of the second housing 114 or a partial area of the second rear cover 140.
  • the one or more components 136 may include at least one of a fingerprint sensor, a camera sensor, a proximity sensor, a UWB sensor, or a heart rate sensor.
  • the electronic device 101 may be folded based on the folded portion 116.
  • the folding part 116 is disposed between the first housing 112 and the second housing 114 of the electronic device 101 to fold or bend the electronic device 101 at a certain angle. have.
  • the first housing 112 is connected to the second housing 114 through the folded portion 116 and may rotate based on the folded portion 116.
  • the second housing 114 is connected to the first housing 112 through the folded portion 116 and may rotate based on the folded portion 116.
  • the first housing 112 and the second housing 114 may be folded to face each other by rotating based on the folded portion 116.
  • the first housing 112 and the second housing 114 may substantially overlap or overlap each other.
  • the first surface 151 and the second housing 114 of the first housing 112 The second surfaces 152 may face each other, or the third surface 153 of the first housing 112 and the fourth surface 154 of the second housing 114 may be folded to face each other.
  • the second display 122 is folded at a certain angle (for example, in-folding and/or out-folding ( out-folding)).
  • the second display 122 may be itself formed on the electronic device 101 without a structure of the first housing 112 or the second housing 114. In this case, the electronic device 101 may determine the degree of folding of the second display 122 itself.
  • the folded portion 116 may include an angle detection sensor 160.
  • the angle detection sensor 160 may be a degree sensor capable of detecting an angle formed between the first housing 112 and the second housing 114.
  • At least one state detection sensor may be disposed in each of the first housing 112 and the second housing 114.
  • a first state sensor may be disposed in the first housing 112 and a second state sensor may be disposed in the second housing 114.
  • the first state detection sensor and the second state detection sensor may be sensors for obtaining information about an angle between the first housing 112 and the second housing 114.
  • the first and second state detection sensors may include, for example, at least one of a gyro sensor, a distance sensor, and a strain sensor.
  • the folded portion 116 may be composed of a hinge (not shown) and a hinge cover, and the hinge may be covered by the hinge cover.
  • the folded portion 116 may be configured as a connecting portion (or connecting body) including other mechanical elements in addition to the hinge.
  • the first display 120 or the second display 122 may include a touch sensor (not shown) capable of detecting a touch input.
  • the first display 120 or the second display It may be configured as an integral touch screen included in (122).
  • the touch sensor may be disposed above or below the display.
  • the electronic device 101 includes at least one other than the above-described sensors (eg, a first sensor 130, a second sensor 132, and a sensor included in one or more components 136 ). It may additionally include a sensor of. The additionally included sensors may be disposed to have a specified distance from at least one of the first sensor 130, the second sensor 132, and the sensors included in the one or more components 136.
  • FIGS. 2A and 2B are diagrams illustrating an unfolded state of a flexible type electronic device according to various embodiments.
  • 2A is a front view illustrating an unfolded state of a flexible type electronic device according to various embodiments
  • FIG. 2B is a rear view illustrating an unfolded state of a flexible type electronic device according to various embodiments.
  • an electronic device 201 may include a housing 210, a first display 220, and a second display 222.
  • the housing 210 includes a first surface (or a front surface (eg, a surface facing the +Z-axis direction in FIG. 2A )) 231, and a first surface 231 facing a direction opposite to the first surface 231. It may include two surfaces (or a rear surface (eg, a surface facing the +Z axis in FIG. 2B)) 232.
  • the housing 210 may further include subsidiary materials (not shown) configured in various structures.
  • the housing 210 may further include a slot (not shown) disposed on the left or right side of the first surface.
  • the slot may be configured such that at least a portion of the first display 220 and the second display 222 is inserted or withdrawn.
  • the electronic device 201 further includes at least one of at least one component, for example, a fingerprint detection sensor, a camera sensor, a proximity sensor, a UWB sensor, a heart rate sensor, or a speaker. Can include.
  • the first display 220 is disposed to be visually exposed through at least a portion of the first surface 231 of the housing 210
  • the second display 222 is It may be arranged to be visually exposed through at least a portion of the second surface 232.
  • the first display 220 and the second display 222 may be flexible and/or foldable displays that can be bent or folded in various forms.
  • at least a portion of the first display 220 and/or the second display 222 may be bent or bent and stored in a slot of the housing 210.
  • the first display 220 or the second display 222 may include a touch sensor (not shown) capable of detecting a touch input. It may be configured as an integrated touch screen included in the first display 220 or the second display 222.
  • the touch sensor may be disposed above or below the display.
  • the electronic devices 101 and 201 may be in a first closed state (or in-folding state). According to various embodiments, when the electronic devices 101 and 201 are in the first closed state, the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114, Alternatively, the first region 141 and the second region 142 of the second display 222 face each other, and may be in a substantially parallel state.
  • the first area 141 of the second display 222 may be an area located on the left side of the folded part 116, and the second area 141 may be an area located on the right side of the folded part 116. .
  • the first closed state is a state in which the second displays 122 and 222 are covered within the field of view or angle of view of the user facing the front of the electronic devices 101 and 201. It can mean.
  • the user when the electronic devices 101 and 201 are in the first closed state (for example, in a fully folded state), the user can control the electronic devices 101 and 201 in all directions of the electronic devices 101 and 201. 2
  • the displays 122 and 222 cannot be viewed, and only the first displays 120 and 220 of the electronic devices 101 and 201 and/or the fourth surface (the second rear surface) of the second housing 114 can be viewed. .
  • the first closed state is a state in which the first displays 120 and 220 are included in the user's field of view facing the electronic devices 101 and 201 and the second displays 122 and 222 are covered. It can mean.
  • the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a first specified angle range (eg, about 0 degrees to about 15 degrees), the electronic devices 101 and 201 are in a first closed state Can be
  • the electronic devices 101 and 201 may be in a second closed state (or out-folding state).
  • the second closed state is a state in which the first displays 120 and 220 are covered within the field of view or angle of view of the user facing the rear of the electronic devices 101 and 201. It can mean.
  • the user may display the first displays 120 and 220 of the electronic devices 101 and 201 in all directions of the electronic devices 101 and 201. ) Cannot be viewed, and only the second displays 122 and 222 of the electronic devices 101 and 201 can be viewed.
  • the electronic devices 101 and 201 do not have the second displays 122 and 222 or the second display 222 is included only in a part of the second surface 232, the electronic devices 101 and 201 When is in the second closed state, the second surface 232 that does not include or partially includes the second display 222 may be included in the user's field of view.
  • the second closed state is a state in which the second displays 120 and 220 are included in the user's field of view facing the electronic devices 101 and 201 and the first displays 120 and 220 are covered. It can mean.
  • the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a second specified angle range (eg, about 345 degrees to about 360 degrees), the electronic devices 101 and 201 are in a second closed state.
  • a second specified angle range eg, about 345 degrees to about 360 degrees
  • the electronic devices 101 and 201 may be in a folded in state (or a partially folded state, or a partially open state). According to various embodiments, when the electronic devices 101 and 201 are folded, the angle between the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114 Alternatively, an angle between the first area and the second area of the second display 222 may form an angle within a specified range.
  • a second within the user's field of view facing the front of the electronic devices 101 and 201 according to the direction of the electronic devices 101 and 201 The entire area of the displays 122 and 222 is included, at least a partial area on the right side of the second displays 122 and 222 and the first displays 120 and 220 are included, or the second displays 122 and 222 ) And a fourth surface (or second rear surface) 154 of the second housing 114 may be included.
  • the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a third specified angle range (eg, about 15 degrees to about 165 degrees, and/or about 195 degrees to about 345 degrees), the former Devices 101 and 201 may be in a folded state.
  • a third specified angle range eg, about 15 degrees to about 165 degrees, and/or about 195 degrees to about 345 degrees
  • the electronic devices 101 and 201 may be in a folded out state (or a full open state). According to an embodiment, when the electronic device 101 is in an unfolded state, the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114, or the second display ( The first region and the second region of 122 and 222 may be substantially flushed with the same plane. According to an embodiment, when the electronic devices 101 and 201 are in an unfolded state, the second display (within) the user's field of view or angle of view facing the front of the electronic devices 101 and 201 The entire area of 122 and 222 may be included.
  • an angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or the second display 222 When the angle formed by the first area 141 and the second area 142 of is within a fourth specified angle range (eg, about 165 degrees to about 195 degrees), the electronic devices 101 and 201 are in an unfolded state. I can.
  • a fourth specified angle range eg, about 165 degrees to about 195 degrees
  • a method of determining the folding state of the second displays 122 and 222 may be configured in various ways.
  • the method of determining the folding state of the second displays 122 and 222 is not limited to the contents described in the present invention, and may be determined through various sensors.
  • at least one angle sensor may be included in at least a portion of the second displays 122 and 222.
  • the angle detection sensor may measure a change in angle that occurs when at least one side of the second displays 122 and 222 is folded.
  • At least one Hall sensor may be included in at least a portion of the second displays 122 and 222, and a folded or folded state may be determined based on magnetic information detected by the Hall sensor.
  • FIG. 3 is a block diagram of an electronic device 301 in a network environment 300 according to various embodiments.
  • the electronic device 301 of FIG. 3 may be the electronic device 101 of FIGS. 1A and 1B, or the electronic device 201 of FIGS. 2A and 2B.
  • the electronic device 301 communicates with the electronic device 302 through a first network 398 (eg, a short-range wireless communication network), or a network 399 (eg, a short-range wireless communication network). : It is possible to communicate with the electronic device 304 or the server 308 through a long-distance wireless communication network). According to an embodiment, the electronic device 301 may communicate with the electronic device 304 through the server 308.
  • a first network 398 eg, a short-range wireless communication network
  • a network 399 eg, a short-range wireless communication network
  • the electronic device 301 includes a processor 320, a memory 330, an input device 350, an audio output device 355, a display device 360, an audio module 370, and a sensor module ( 376), interface 377, haptic module 379, camera module 380, power management module 388, battery 389, communication module 390, subscriber identification module 396, or antenna module 397 ) Can be included.
  • at least one of these components (for example, the display device 360 or the camera module 380) may be omitted or one or more other components may be added to the electronic device 301.
  • some of these components may be implemented as one integrated circuit.
  • the sensor module 376 eg, a fingerprint sensor, an iris sensor, or an illuminance sensor
  • the display device 360 eg, a display.
  • the processor 320 for example, executes software (eg, a program 340) to perform at least one other component (eg, a hardware or software component) of the electronic device 301 connected to the processor 320. It can be controlled and can perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 320 may transfer commands or data received from other components (eg, the sensor module 376 or the communication module 390) to the volatile memory 332. The command or data stored in the volatile memory 332 may be processed, and result data may be stored in the nonvolatile memory 334.
  • software eg, a program 340
  • the processor 320 may transfer commands or data received from other components (eg, the sensor module 376 or the communication module 390) to the volatile memory 332.
  • the command or data stored in the volatile memory 332 may be processed, and result data may be stored in the nonvolatile memory 334.
  • the processor 320 includes a main processor 321 (eg, a central processing unit or an application processor), and a secondary processor 323 that can be operated independently or together with the main processor 321 (eg, a graphics processing unit, an image signal processor). , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 323 may be set to use less power than the main processor 321 or to be specialized for a designated function.
  • the secondary processor 323 may be implemented separately from the main processor 321 or as a part thereof.
  • the coprocessor 323 is, for example, in place of the main processor 321 while the main processor 321 is in an inactive (eg, sleep) state, or the main processor 321 is active (eg, executes an application). ), together with the main processor 321 in the state, at least one of the components of the electronic device 301 (for example, the display device 360, the sensor module 376, or the communication module 390) It is possible to control at least some of the functions or states associated with it.
  • the coprocessor 323 eg, an image signal processor or a communication processor
  • may be implemented as part of another functionally related component eg, a camera module 380 or a communication module 390). have.
  • the memory 330 may store various types of data used by at least one component of the electronic device 301 (for example, the processor 320 or the sensor module 376).
  • the data may include, for example, software (eg, the program 340) and input data or output data for commands related thereto.
  • the memory 330 may include a volatile memory 332 or a nonvolatile memory 334.
  • the program 340 may be stored as software in the memory 330, and may include, for example, an operating system 342, middleware 344, or an application 346.
  • the input device 350 may receive commands or data to be used for components of the electronic device 301 (eg, the processor 320) from outside the electronic device 301 (eg, a user).
  • the input device 350 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).
  • the sound output device 355 may output an sound signal to the outside of the electronic device 301.
  • the sound output device 355 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls.
  • the receiver may be implemented separately from or as a part of the speaker.
  • the display device 360 may visually provide information to the outside of the electronic device 301 (eg, a user).
  • the display device 360 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device.
  • the display device 360 may include a touch circuitry set to sense a touch, or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by the touch. have.
  • the audio module 370 may convert sound into an electrical signal, or conversely, may convert an electrical signal into sound. According to an embodiment, the audio module 370 acquires sound through the input device 350, or an external electronic device (eg: Sound may be output through the electronic device 302 (for example, a speaker or headphones).
  • an external electronic device eg: Sound may be output through the electronic device 302 (for example, a speaker or headphones).
  • the sensor module 376 detects an operating state (eg, power or temperature) of the electronic device 301, or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do.
  • the sensor module 376 includes, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 377 may support one or more specified protocols that may be used to connect the electronic device 301 directly or wirelessly to an external electronic device (eg, the electronic device 302 ).
  • the interface 377 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • connection terminal 378 may include a connector through which the electronic device 301 can be physically connected to an external electronic device (eg, the electronic device 302 ).
  • the connection terminal 378 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 379 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that a user can perceive through tactile or motor sensations.
  • the haptic module 379 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 380 may capture a still image and a video.
  • the camera module 380 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 388 may manage power supplied to the electronic device 301.
  • the power management module 388 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 389 may supply power to at least one component of the electronic device 301.
  • the battery 389 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 390 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 301 and an external electronic device (eg, electronic device 302, electronic device 304, or server 308). It is possible to support establishment and communication through the established communication channel.
  • the communication module 390 operates independently of the processor 320 (eg, an application processor) and may include one or more communication processors supporting direct (eg, wired) communication or wireless communication.
  • the communication module 390 is a wireless communication module 392 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 394 (eg : A local area network (LAN) communication module, or a power line communication module) may be included.
  • the corresponding communication module is a first network 398 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a network 399 (for example, a cellular network, the Internet, or a computer network).
  • the wireless communication module 392 is an electronic device within a communication network such as the first network 398 or the network 399 using subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 396. (301) can be checked and authenticated.
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • the antenna module 397 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside.
  • the antenna module 397 may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 397 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 398 or the network 399 may be selected from the plurality of antennas by the communication module 390, for example. I can.
  • the signal or power may be transmitted or received between the communication module 390 and an external electronic device through the selected at least one antenna.
  • other components eg, RFIC
  • other than the radiator may be additionally formed as part of the antenna module 397.
  • At least some of the components are connected to each other through a communication method (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( E.g. commands or data) can be exchanged with each other.
  • a communication method e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • commands or data may be transmitted or received between the electronic device 301 and the external electronic device 304 through the server 308 connected to the network 399.
  • Each of the external electronic devices 302 and 304 may be the same or different types of devices as the electronic device 301.
  • all or part of the operations executed by the electronic device 301 may be executed by one or more of the external electronic devices 302, 304, or 308.
  • the electronic device 301 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 301 In addition or in addition, it is possible to request one or more external electronic devices to perform the function or at least part of the service.
  • One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 301.
  • the electronic device 301 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing, distributed computing, or client-server computing technology may be used.
  • some of the components of FIG. 3 may include at least one component of FIG. 1A, 1B, 2A, or 2B.
  • the display device 360 includes the first display 120 of FIG. 1B, the second display 122 of FIG. 1A, the first display 220 of FIG. 2A, or the second display of FIG. 2B. 222).
  • the sensor module 376 may include the angle detection sensor 160 of FIGS. 1A and 1B.
  • the camera module 380 may include at least one of the second sensor 132 of FIG. 1A or the first sensor 130 of FIG. 1B.
  • the processor 320 may detect an event for outputting audio data of a plurality of applications.
  • Events for outputting audio data of a plurality of applications include a change in the folding state of the electronic device 301, a designated user input (eg, touch input, drag input, gesture input), use (or execution) of a multi-window, or at least one It may be detected based on at least one of the signals received from an external audio pair of the device.
  • the processor 320 is an external audio pair connected through a short-range wireless communication module (eg, wireless communication module 392) in response to detecting an event for outputting audio data of a plurality of applications. You can check the device. For example, the processor 320 may determine whether one external audio pair device is connected or a plurality of external audio pair devices are connected through the short-range wireless communication module.
  • the external audio pair device may include a first device (or a master device, a right device) and a second device (or a slave device, a left device).
  • the processor 320 when a first external audio pair device is connected through the short-range communication module 392, the processor 320 encodes audio data of a first application and audio data of a second application together, and the The short-range wireless communication module 392 may be controlled to transmit to a first external audio pair device.
  • the processor 320 encodes audio data of a first application and audio data of a second application together, and transmits the encoded data to each of the first and second devices of the first external audio pair device. I can.
  • the processor 320 encodes the audio data of the first application and the audio data of the second application together, and transmits the encoded data to a first device among the first external audio pair devices. And a second device to receive the encoded data.
  • the processor 320 may transmit encoded data using address information (eg, a media access control (MAC) address) of the first device.
  • the second device may listen to encoded data transmitted from the electronic device 301 to the first device by using the address information of the first device obtained in advance.
  • the second device may obtain encoded data transmitted from the electronic device 301 to the first device according to a sniffing technique, and extract audio data of an application corresponding to the second device from the obtained encoded data. .
  • the processor 320 may perform audio data of the first application and the second The short-range wireless communication module 392 may be controlled to encode audio data of an application and transmit them to each of the first external audio pair device and the second external audio pair device.
  • the processor 320 uses the first short-range wireless communication module among the plurality of short-range wireless communication modules to provide audio of the first application. Data may be transmitted to the first external audio pair device, and audio data of the second application may be transmitted to the second external audio pair device using a second short-range wireless communication module.
  • the processor 320 when one short-range communication module is included in the electronic device 301, the processor 320 first transmits audio data of the first application using a first protocol supported by the short-range wireless communication module.
  • the audio data of the second application may be transmitted to the external audio pair device and transmitted to the second external audio pair device by using a second protocol supported by the short-range wireless communication module.
  • the first protocol and/or the second protocol may include at least one of an advanced audio distribution profile (A2DP) or a hands-free profile (HFP).
  • the processor 320 is based on at least one of information on a plurality of applications, information on an external audio pair device connected to the electronic device 301, or a user input, based on the audio data of each of the plurality of applications.
  • the output device can be determined.
  • the processor 320 includes at least one external audio pair device based on a time point when at least one external audio pair device is connected to the electronic device 301, the priority of the at least one external audio pair device, and the electronic device 301.
  • an audio data output device of each of a plurality of applications may be determined.
  • the processor 320 corresponds to an audio data output device of an application displayed in the first area of the second display 122, 222 among a plurality of applications, and corresponds to a first area among at least one external audio pair device.
  • the audio data output device of the application to be output to a device (eg, a second external audio pair device or a second device of a first external audio pair device) located in a direction corresponding to a second area among at least one external audio pair device.
  • the processor 320 provides a user interface (eg, a pop-up window) requesting selection of an audio data output device of each of a plurality of applications, and outputs audio data of each of a plurality of applications based on a user input.
  • the device can be determined.
  • the user interface for requesting selection of an audio data output device may include a list of external audio pair devices connected to the electronic device 301 through a short-range communication module.
  • the processor 320 may display information on an audio data output device of each of a plurality of applications on the display device 360.
  • the processor 320 may display the output device information of the audio data of the first application in at least a part of the first area of the second display 122, 222 on which the execution screen of the first application is displayed, and 2
  • the output device information of the audio data of the second application may be displayed on at least a part of the second area of the second displays 122 and 222 on which the execution screen of the application is displayed.
  • the output device information may include at least one of identification information of an external audio pair device, a name of an external audio pair device, or symbol (or icon) information corresponding to the external audio pair device.
  • the output device information may include at least one of identification information, name, or symbol information of the first external audio pair device. have.
  • the output device of the audio data of the first application is the first device among the first external audio pair devices
  • the output device information is identification information of the first device among the first external audio pair devices, the name of the first device , Or symbol information.
  • the processor 320 may switch audio data output devices of a plurality of applications when detecting the direction change of the electronic device 301. For example, the processor 320 may determine that the first area of the second display 122 and 222 of the electronic device 301 faces the first direction, and the second area of the second display 122 and 222 faces the first direction. When the direction of the electronic device 301 is changed so that the first region faces the second direction and the second region faces the first direction in a state facing the other second direction, the processor 320 The data output device can be switched.
  • the audio data output device of the first application is the first device of the first external audio pair device
  • the audio data output device of the second application is the second device of the first external audio pair device
  • the audio data output device of the second application is changed to the first external audio device. It can be changed to the first device of the pair device.
  • the processor 320 receives a single audio data transmission request signal or a multi-audio data transmission request signal from any one of the external audio pair devices connected to the electronic device 301, and receives the received signal. Accordingly, audio data of one application may be transmitted or audio data of a plurality of applications may be transmitted. According to an embodiment, single audio data may include audio data of one application.
  • the multi-audio data may include audio data of a plurality of applications.
  • the processor 320 encodes the audio data of the first and second applications together and transmits the encoded audio data to the first external audio pair device connected to the electronic device 301 from the first device among the first external audio pair devices. A single audio data transmission request signal can be received.
  • the processor 320 may encode only audio data of an application corresponding to the first device among the first and second applications according to the single audio data transmission request signal and transmit the encoded audio data to the first device.
  • the processor 320 receives the multi-audio data transmission request signal from the first device while encoding only the audio data of the application corresponding to the first device and transmits it to the first device. Audio data of the first and second applications may be encoded together and transmitted to the first device.
  • the processor 320 when at least one external audio pair device and at least one other external output device (eg, an external speaker) are connected to the electronic device 301, the processor 320 Based on at least one of the performance information of, at least one other external output device, or the number of at least one other external output device, using at least one external audio pair device and at least one other external output device It is possible to control audio data of a plurality of applications to be output. For example, the processor 320 may control audio data of a first application to be output through a first external audio pair device and audio data of a second application through a first external speaker.
  • the processor 320 may control audio data of a first application to be output through a first external audio pair device and audio data of a second application through a first external speaker.
  • the processor 320 may determine a direction of an external audio pair device connected to the electronic device 301. For example, the processor 320 may determine direction information in which the external audio pair device is located based on the electronic device 301. The direction information in which the external audio pair device is located may be determined based on at least one of a direction in which a signal is received from the external audio pair device or location information received from the external audio pair device. A direction in which a signal is received from an external audio pair device may be determined using a beamforming method.
  • the audio module 370 may encode audio data of a first application and audio data of a second application together using a mid-side stereo (MS) method.
  • MS mid-side stereo
  • S1 may refer to audio data of a first application
  • S2 may refer to audio data of a second application.
  • the audio module 370 may encode the audio data of the first application and the audio data of the second application together as shown in Equation (1).
  • FIG. 4 is a block diagram 400 of an external audio device according to various embodiments.
  • the external audio device 401 of FIG. 4 may be a first device and/or a second device of the external audio pair device disclosed in FIG. 3.
  • the external audio device 401 may include a bus 410, a processor 420, a memory 430, an input device 440, a communication module 450, and an audio module 460. have. According to an embodiment, the external audio device 401 may omit at least one of the constituent elements or may additionally include other constituent elements.
  • the bus 410 includes, for example, a circuit that connects the components 420 to 450 to each other and transfers communication (eg, control messages and/or data) between the components. can do.
  • communication eg, control messages and/or data
  • the processor 420 may control at least one other component (eg, hardware or software component) connected to the processor 420 by driving software (eg, a program). And perform various data processing and operations.
  • component eg, hardware or software component
  • driving software eg, a program
  • the processor 420 detects a short-range wireless communication connection event through the input device 440 and controls the communication module 450 to communicate with an electronic device (for example, the electronic device 301). Communication connection can be made.
  • the processor 420 may receive audio data from the electronic device 301 and control the audio module 460 so that the received audio data is decoded and then output. According to an embodiment, the processor 420 receives audio data transmitted from the electronic device 301 to the external audio device 401, or is transmitted from the electronic device 301 to a pair of the external audio device 401. Can receive audio data. For example, the processor 420 may receive audio data transmitted from the electronic device 301 to the pair device by using information on the pair device previously stored in the memory 430. When the external audio device 401 is connected to the electronic device 301, the pair device of the external audio device 401 is connected to the electronic device 301 together to perform at least one cooperative operation with the external audio device 401. It may be a device capable of performing.
  • the external audio device 401 may be a first device (eg, a device on the right side of an earbud) among external audio pair devices, and the pair device is a second device (eg, a device on the left side of the earbud) among external audio pair devices. Device).
  • a first device eg, a device on the right side of an earbud
  • the pair device is a second device (eg, a device on the left side of the earbud) among external audio pair devices. Device).
  • the processor 420 may decode audio data received from the electronic device 301, extract audio data of an application corresponding to the external audio device 401, and output the extracted audio data.
  • the received audio data may include first audio data to be output from a first device among external audio pair devices and second audio data to be output from a second device.
  • the first audio data and the second audio data may be audio data of different applications, or may be audio data of the same application.
  • the processor 420 determines whether each of the external audio device 401 and the pair device can communicate with the electronic device 301 based on signals received from the electronic device 301 and/or the pair device. You can decide whether or not. For example, the processor 420 determines whether communication between the external audio device 401 and the electronic device 301 is possible by measuring a first signal reception strength using an audio packet signal received from the electronic device 301 In addition, it is possible to determine whether or not the external audio device 401 and the pair device can communicate using a signal periodically transmitted/received to and from the pair device of the external audio device 401.
  • the signal periodically transmitted/received between the external audio device 401 and the pair device may include information indicating whether the external audio device 401 or the pair device can communicate with the electronic device 301.
  • the processor 420 of the external audio device 401 may generate a signal including at least one of information on whether communication is possible or not determined based on the measured first signal reception strength or the measured first signal reception strength. Can be transmitted to a pair device.
  • the processor 420 includes information indicating whether the pair device can communicate with the electronic device 301 from the pair device (eg, whether the second signal reception strength and/or the measured second signal reception strength determined based on the communication availability) Information) may be received.
  • the second signal reception strength may be a signal reception strength measured based on an audio packet signal received from the electronic device 301 in the pair device.
  • the processor 420 allows the external audio device 401 to communicate with the electronic device 301 when the first signal reception strength from the electronic device 301 is greater than or equal to a specified first threshold. It is possible to confirm that the device is in a state and determine whether the pair device can communicate with the electronic device 301 based on information included in the signal received from the pair device. The processor 420 is unable to communicate with the electronic device 301 when the second signal reception strength included in the signal received from the pair device is less than the specified second threshold value, or the signal received from the pair device. When the information indicating is included, the pair device may determine that communication with the electronic device 301 is impossible, and transmit a signal requesting transmission of multi-audio data to the electronic device 301.
  • the external audio device 301 may determine that communication between the pair device and the electronic device 301 is impossible, and transmit a signal requesting transmission of single audio data to the electronic device 301.
  • the processor 420 may receive a single audio data signal including only audio data for the external audio device 401 from the electronic device 301 in response to a signal requesting transmission of single audio data.
  • the processor 420 may determine whether the pair device is changed to a state capable of communicating with the electronic device 301. For example, in a situation where the first signal reception strength is greater than or equal to the specified first threshold value, the processor 420 may perform a second signal reception strength included in the signal received from the pair device greater than or equal to the second threshold value.
  • the processor 420 may transmit a signal requesting transmission of multi-audio data to the electronic device 301.
  • the processor 420 may receive a signal including audio data for the external audio device 401 and audio data for a pair device from the electronic device 301 in response to a signal requesting transmission of multi-audio data.
  • the first threshold and the second threshold may be different values or may be the same.
  • the processor 420 exchanges location information with the electronic device 301 and/or the pair device, and, based on the location information, the external audio device 401 and the pair device each have the electronic device 301 It is possible to determine whether or not it is possible to communicate with.
  • the processor 420 may receive location information of the electronic device 301 from the electronic device 301 and obtain location information of the pair device from the pair device.
  • the processor 420 may estimate a first distance between the electronic device 301 and the external audio device 401 based on the location information of the electronic device 301 and the location information of the external audio device 401.
  • the processor 420 may estimate a second distance between the electronic device 301 and the pair device based on the location information of the electronic device 301 and the location information of the pair device.
  • the processor 420 may communicate with the electronic device 301, but the pair device and the electronic device It is determined that communication of 301 is impossible, and a signal requesting transmission of single audio data may be transmitted to the electronic device 301.
  • the processor 420 may receive a single audio data signal including only audio data for the external audio device 401 from the electronic device 301 in response to a signal requesting transmission of single audio data.
  • the processor 420 determines that both the external audio device 401 and the pair device can communicate with the electronic device 301, A signal requesting transmission of multi-audio data may be transmitted to the electronic device 320.
  • the processor 420 may receive a signal including audio data for the external audio device 401 and audio data for a pair device from the electronic device 301 in response to a signal requesting transmission of multi-audio data. I can.
  • the memory 430 may store information on a pair device.
  • the pair device information may include address information of at least one other external audio device connected to the electronic device 301 together with the external audio device 401.
  • information on the pair device may be set at design time and may be updated under the control of the processor 420.
  • the input device 440 may transmit commands or data to be used in components (eg, the processor 420) of the external audio device 401 from the outside (eg, a user) of the external audio device 401.
  • a device for receiving for example, it may include a microphone, a key button, a keypad, a touch sensor, or a pressure sensor.
  • the input device 440 may receive a user input requesting a short-range wireless communication connection.
  • the communication module 450 may support establishing a wired or wireless communication channel between the external audio device 401 and the electronic device 301 and performing communication through the established communication channel.
  • the communication module 450 may include one or more communication processors operating independently of the processor 420 (eg, an application processor) and supporting wired communication or wireless communication.
  • the communication module 450 includes a short-range wireless communication module, and may communicate with an electronic device through a short-range wireless communication module.
  • the audio module 460 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 460 may acquire audio data from the electronic device 301 directly or wirelessly connected to the external audio device 401 and decode the acquired audio data.
  • the electronic device 301 includes a wireless communication module (eg, a wireless communication module 392 of FIG. 3 ), and a processor operatively connected to the wireless communication module 392 (eg, a wireless communication module 392 of FIG. 3 ). And a processor 320, wherein the processor 320 detects an event for outputting audio of a plurality of applications, and, based on the event detection, transmits the electronic device to the electronic device through the wireless communication module 392.
  • a wireless communication module eg, a wireless communication module 392 of FIG. 3
  • a processor 320 operatively connected to the wireless communication module 392 (eg, a wireless communication module 392 of FIG. 3 ).
  • the processor 320 detects an event for outputting audio of a plurality of applications, and, based on the event detection, transmits the electronic device to the electronic device through the wireless communication module 392.
  • the electronic device further includes at least one sensor (for example, the sensor module 376 of FIG. 3) for detecting a folding state of the electronic device, and the processor further comprises: folding the electronic device received from the sensor. It may be set to detect an event for outputting audio of the plurality of applications based on a state.
  • at least one sensor for example, the sensor module 376 of FIG. 3
  • the processor further comprises: folding the electronic device received from the sensor. It may be set to detect an event for outputting audio of the plurality of applications based on a state.
  • the processor 320 detects an execution request of the second application while the first application is being executed, determines whether the folding state of the electronic device satisfies a specified angle condition, and When the folding state of the electronic device satisfies a specified angle condition, it may be determined that an event for outputting audio of the plurality of applications has occurred.
  • the processor 320 is configured to check whether a specified folding event occurs during execution of the plurality of applications, and to output audio of the plurality of applications when the specified folding event occurs. It can be determined that the event has occurred.
  • the processor 320 when a first external audio device is connected to the electronic device, the processor 320 is at least one of a first device and a second device included in the first external audio device, and the The wireless communication module may be controlled to transmit a signal including audio data of the first application and audio data of the second application.
  • the processor 320 receives a single audio data transmission request signal from the first device or the second device, and based on the single audio data transmission request signal, the first device and the One device that has transmitted the single audio data transmission request signal among the second devices is identified, and a signal including only audio data of an application corresponding to the identified device among the first application and the second application is identified.
  • the short-range communication module can be controlled to transmit to the device.
  • the processor 320 receives a multi-audio data transmission request signal from the identified device while transmitting the single audio data to the identified device, and transmits the received multi-audio data. Based on the request signal, a control may be performed to transmit a signal including audio data of the first application and audio data of the second application to at least one of the first device and the second device.
  • the short-range wireless communication module includes a first short-range wireless communication module and a second short-range wireless communication module
  • the processor 320 includes the first external audio device and the second
  • audio data of the first application is transmitted to the first external audio device through the first short-range wireless communication module
  • audio data of the second application is transmitted through the second short-range wireless communication module.
  • the first short-range wireless communication module and the second short-range wireless communication module may be controlled to transmit the signal to the second external audio device.
  • the processor 320 uses a first protocol supported by the short-range wireless communication module 392
  • the audio data of the second application is transmitted to the second external audio device using a second protocol supported by the short-range wireless communication module 392. It can be controlled to send to the device.
  • At least one sensor (for example, the sensor module 376 of FIG. 3) is further included, and the processor 320 uses the at least one sensor 376 to determine the direction of the electronic device. It is set to switch between a device to which audio data of the first application is output and a device to which audio data of the second application is output, in response to a change of direction of the electronic device, and to detect a changeover, and to switch between a device to which the audio data of the second application is output.
  • the processor 320 uses the at least one sensor 376 to determine the direction of the electronic device. It is set to switch between a device to which audio data of the first application is output and a device to which audio data of the second application is output, in response to a change of direction of the electronic device, and to detect a changeover, and to switch between a device to which the audio data of the second application is output.
  • a device to which data is output is a first device among the first external audio devices
  • a device to which audio data of the second application is output is a second device among the first external audio devices
  • an audio device of the first application When the device outputting data is the first external audio device, the device outputting the audio data of the second application may be the second external audio device.
  • the electronic device 301 includes a display in which at least a portion is folded (eg, the display device 360 of FIG. 3 ), and at least one sensor (eg : The sensor module 376 of FIG. 3), a short-range wireless communication module (for example, the wireless communication module 392 of FIG.
  • the processor 320 operatively connected to the module 392, wherein the processor 320 transmits audio data of a first application while the display is in a first designated state, and the short-range wireless communication module ( 392), when transmitting to at least one external audio device, and when the folding state of the display is changed from the first designated state to the second designated state, detects an event for outputting audio data of a plurality of applications,
  • the audio data of the first application and the audio data of the second application may be configured to be simultaneously transmitted to the at least one external audio device through the short-range wireless communication module 392.
  • the first designated state may include a state in which the display of the electronic device is unfolded.
  • the second designated state may include a state in which the display of the electronic device is folded.
  • the processor 320 transmits a signal including audio data of the first application and audio data of the second application to the at least one external audio device. ) Can be controlled.
  • the processor 320 when a first external audio device is connected to the electronic device, the processor 320 is at least one of a first device and a second device included in the first external audio device, and the The short-range wireless communication module 392 may be controlled to transmit a signal including audio data of the first application and audio data of the second application.
  • the processor 320 receives a single audio data transmission request signal from the first device or the second device, and based on the single audio data transmission request signal, the first device and the One device that has transmitted the single audio data transmission request signal among the second devices is identified, and a signal including only audio data of an application corresponding to the identified device among the first application and the second application is identified.
  • the short-range communication module can be controlled to transmit to the device.
  • the processor 320 receives a multi-audio data transmission request signal from the identified device while transmitting audio data of an application corresponding to the identified device to the identified device, and Based on an audio data transmission request signal, control to transmit a signal including audio data of the first application and audio data of the second application to at least one of the first device and the second device have.
  • the processor 320 transmits the audio data of the first application to a first external audio device and transmits the audio data of the second application to a second external audio device.
  • the module 392 can be controlled.
  • the short-range wireless communication module includes a first short-range wireless communication module and a second short-range wireless communication module
  • the processor 320 includes a first short-range wireless communication module.
  • the first short-range wireless communication module and the second short-range wireless transmit audio data of the second application to the second external audio device through a second short-range wireless communication module while transmitting audio data to the first external audio device. You can control the communication module.
  • the processor 320 transmits the audio data of the first application to the first external audio device using a first protocol supported by the short-range wireless communication module 392, while the The audio data of the second application may be transmitted to the second external audio device using a second protocol supported by the short-range wireless communication module 392.
  • the processor 320 further comprising at least one other sensor (for example, the sensor module 376 of FIG. 3) for detecting the direction of the electronic device, the processor 320, the at least one other sensor ( 376) to detect a change in the direction of the electronic device, and switch between a device for outputting audio data of the first application and a device for outputting audio data of the second application in response to the change of direction of the electronic device And when the device to which the audio data of the first application is output is a first device among the first external audio devices, the device to which the audio data of the second application is output is a first of the first external audio devices. If the device for outputting the audio data of the second application is the first external audio device, the device for outputting the audio data of the second application may be the second external audio device.
  • the device for outputting the audio data of the second application may be the second external audio device.
  • FIG. 5 is a flowchart 500 for outputting audio data of a plurality of applications in an electronic device according to various embodiments.
  • the electronic device that performs the operation of FIG. 5 may be the electronic device 301 of FIG. 3.
  • the operation indicated by the dotted line may be omitted depending on the embodiment.
  • FIGS. 6A to 6D At least some of the operations of FIG. 5 described below will be described with reference to FIGS. 6A to 6D.
  • 6A is an exemplary diagram for transmitting audio data of a plurality of applications from an electronic device to a first external audio pair device according to various embodiments of the present disclosure.
  • 6B is an exemplary diagram of transmitting audio data of a plurality of applications from an electronic device to a plurality of external audio pair devices according to various embodiments of the present disclosure.
  • 6C is an exemplary diagram illustrating information on a device for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 6D is an exemplary diagram of designating an external audio device corresponding to at least a partial area in an electronic device according to various embodiments of the present disclosure.
  • FIGS. 6A or 6B embodiments of transmitting audio data of a plurality of applications to one or more external audio pair devices will be described with reference to FIGS. 6A or 6B, but various embodiments are not limited thereto, for example, FIG. 6A Alternatively, embodiments described later with reference to FIG. 6B may also be applied to a plurality of external audio devices.
  • an electronic device may detect audio output events of a plurality of applications in operation 501.
  • the processor 320 may include a change in the folding state of the electronic device 301, a designated user input (eg, a touch input, a drag input, or a gesture input), a multi-window use (or execution), a plurality of external
  • An event for outputting audio data of a plurality of applications may be detected based on at least one of an audio pair device connection or a signal received from at least one external audio pair device.
  • the processor 320 displays a first application on a first area of a second display (eg, the second display 122 of FIG.
  • the electronic device 301 changes its folding state while being displayed in the second area of the displays 122 and 222 (e.g., changes from an unfolded state to a folded state (in-folding or out-folding)), a plurality of applications It may be determined that an audio output event (or multiple audio data output event) has occurred.
  • the processor 320 displays the first application on the second displays 122 and 222 while outputting the audio data of the first application through at least one external audio pair device connected to the electronic device 301.
  • the processor 320 When additional execution of the second application using the multi-window is detected, it may be determined that audio output events (or multi-audio data output events) of the plurality of applications have occurred.
  • the processor 320 is in a state in which a first application and a second application are being executed and audio data of the first application is being output through a first external audio pair device connected to the electronic device 301, and the electronic device 301 ), when an additional connection of the second external audio pair device is detected, it may be determined that audio output events (or multi-audio data output events) of a plurality of applications have occurred.
  • the listed examples are for illustrative purposes only, and various embodiments of the present invention will not be limited thereto.
  • the electronic device may determine whether a plurality of external audio pair devices are connected.
  • the processor 320 may determine whether a plurality of external audio pair devices are connected to the electronic device 301 through a short-range wireless communication connection.
  • the electronic device 301 may be connected to either a first external audio pair device or a second external audio pair device through a first short-range wireless communication module.
  • the electronic device 301 may be connected to the first external audio pair device and the second external audio pair device through the first short-range communication module.
  • the electronic device 301 may be connected to a first external audio pair device through a first short-range communication module and connected to a second external audio pair device through a second short-range wireless communication module.
  • the electronic device when a plurality of external audio pair devices are not connected and only the first external audio pair device is connected, the electronic device (for example, the processor 320) performs audio data of the first and second applications in operation 505. May be encoded together and transmitted to the first external audio pair device.
  • the electronic device for example, the processor 320
  • the processor 320 when only the first external audio pair device including the first device 621 and the second device 623 is connected to the electronic device 301, the processor 320
  • the audio data of the first application and the audio data of the second application may be encoded together, and the encoded audio data 611 and 613 may be transmitted to the first device 621 and the second device 623.
  • the processor 320 may transmit data encoded with audio data of the first and second applications to each of the first and second devices of the first external audio pair device. According to an embodiment, the processor 320 may transmit data encoded with audio data of the first and second applications to a first device that is a master device among the first external audio pair devices.
  • the electronic device when a plurality of external audio pair devices are connected, the electronic device (for example, the processor 320) encodes the audio data of the first and second applications, respectively, in operation 507 to provide the first and second external audio data. It can be transmitted to each of the audio pair devices.
  • the electronic device for example, the processor 320
  • the audio data and the audio data of the second application are each encoded, the encoded audio data 641 of the first application is transmitted to the first external audio pair device 651, and the encoded audio data of the second application 643 May be transmitted to the second audio pair device 653.
  • the electronic device may display information on the audio data output device of each of the first and second applications. Can be displayed.
  • the information on the output device may include at least one of identification information of the external audio pair device, the name of the external audio pair device, or symbol (or icon) information corresponding to the external audio pair device.
  • the processor 320 displays at least one of identification information, a name, or a symbol of a device for outputting audio data of the first application on the execution screen of the first application, and on the execution screen of the second application. At least one of identification information, a name, or a symbol of a device to which audio data of the second application is output may be displayed.
  • the processor 320 includes a second display on which the screen 671 of the first application is displayed (for example, the second display 122 of FIG. 1A and the second display of FIG. 2B ). 222) in at least a partial area of the second display 122 in which “L” 675 is displayed as the output device information of the audio data of the first application, and the screen 673 of the second application is displayed.
  • a "R" 677 may be displayed as output device information of the audio data of the second application in at least some of the second regions of the second region 222.
  • the processor 320 may omit an operation of displaying information on each audio data output device of the first and second applications. . For example, as shown in FIG.
  • the external audio output device corresponding to the first area 681 of the display is previously designated as the master device or the right device of the connected first external audio pair device, and the first
  • the processor 320 transmits the audio data of the second application to the master device or the right device, and displays the screen in the left area of the display. While the displayed audio data of the first application is transmitted to the slave device or the left device, an operation of displaying information for each audio data output device of the first and second applications may be omitted.
  • An external audio output device corresponding to a partial area of the display (eg, the first area 681) may be set and/or changed by a designer and/or a user.
  • some areas of the display may be set and/or changed by a designer and/or a user.
  • at least one of the size, position, or shape of a partial area of the display may be set and/or changed by a designer and/or a user.
  • FIG. 7 is a flowchart 700 for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
  • the electronic device that performs the operation of FIG. 7 may be the electronic device 301 of FIG. 3.
  • the operations of FIG. 7 described below may be at least some of the detailed operations of operation 501 of FIG. 5.
  • At least some operations of FIG. 7 described below will be described with reference to FIG. 8.
  • 8 is an exemplary diagram for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
  • an electronic device may transmit audio data of a first application to a first external audio pair device.
  • the processor 320 displays the screen 803 of the first application on the display 801 of the electronic device 301 and transmits the audio data 807 of the first application. It may be transmitted to the first external audio pair device 805 connected to the electronic device 301.
  • the audio data of the first application transmitted to the first external audio pair device includes audio data to be output from the first device (or the master device, the right device) among the first external audio pair devices and the second device among the first external audio pair devices. It may include audio data to be output from (or a slave device, a left device).
  • the display 801 of the electronic device 301 may be the second display 122 of FIG. 1A and/or the second display 222 of FIG. 2B.
  • the electronic device may detect an execution request of the second application.
  • the processor 320 detects an execution request for the second application while executing the first application while displaying the screen 803 of the first application on the display 801 as shown in FIG. 8 (851) )can do.
  • the electronic device may determine whether the folding state of the electronic device 301 satisfies a specified angle condition. For example, the processor 320 determines whether the current folding state of the electronic device 301 or the folding state of the electronic device 301 at the time when the execution request of the second application is detected satisfy a specified angle condition.
  • the processor 320 includes a first housing (eg, the first housing 112 in FIG. 1A) and a second housing (eg, the second housing 114 in FIG. 1A) of the electronic device 301.
  • the angle between or the folding angle of the second display 112 or 222 may be measured (or determined), and whether the measured angle satisfies a specified angle condition may be determined.
  • the specified angular condition can be set and/or changed by the designer and/or user.
  • the specified angular condition may include at least one angular range condition for the angle between the first housing 112 and the second housing 114, or the folding angle of the second display 112 or 222. I can.
  • the specified angular condition may include an angular range of about 15 degrees to 165 degrees, or an angular range of about 195 degrees to 345 degrees.
  • the processor 320 is an angle in which the folding state of the electronic device 301 is specified. It can be determined that the condition is not satisfied.
  • the processor 320 has an angle between the first housing 112 and the second housing 114, or the folding angle of the second display 112, or 222, in an angular range of about 15 degrees to 165 degrees, or about 195 degrees. If it falls within the 345 degree angle range, it may be determined that the folding state of the electronic device 301 satisfies the specified angle condition.
  • the electronic device eg, the processor 320
  • Audio data of an application that satisfies the first condition may be output through the first external audio pair device 805.
  • the designated first condition may include at least one of a condition related to an application priority, a condition related to an execution time point of an application, and a condition related to a display area of an application.
  • the processor 320 may transmit audio data of an application having a high priority among the first application and the second application to the first external audio pair device 805.
  • the processor 320 may transmit audio data of an application recently requested to be executed among the first application and the second application to the first external audio pair device 805.
  • the processor 320 may transmit audio data of an application displayed in a predetermined area among the first application and the second application to the first external audio pair device 805. For example, the processor 320 displays the screen 811 of the first application in the first area of the second display 122 or 222, as shown in FIG. 8, and the second display 122 or 222 After displaying the second application screen 813 in the second region of, the audio data 817 of the second application corresponding to the second region may be transmitted to the first external audio pair device 805.
  • the electronic device may determine whether a designated folding event is detected.
  • the processor 320 includes a first housing (eg, the first housing 112 in FIG. 1A) and a second housing (eg, the second housing 114 in FIG. 1A) of the electronic device 301.
  • the angle between or the folding angle of the second display 112 or 222 is changed, and it may be determined whether the changed angle satisfies the specified angle condition.
  • the specified angle condition may be the same as the specified angle condition in operation 705.
  • the processor 320 displays the running first application screen 811 and the second application screen 813 on the display 801, and the audio data 817 of the second application satisfying the specified first condition.
  • the designated folding event is, for example, a state in which the angle between the first housing 112 and the second housing 114 of the electronic device 301 or the folding angle of the second display 112 or 222 satisfies the specified angle condition. It may include a case where it is changed to.
  • the electronic device when a designated folding event of the electronic device 301 is detected, the electronic device (eg, the processor 320) may determine audio data output of a plurality of applications in operation 711. According to an embodiment, the processor 320 may determine audio data output of a plurality of applications and perform operation 505 or operation 507 of FIG. 5. For example, as illustrated in FIG.
  • the processor 320 encodes the audio data of the first application and the audio data of the second application together, 1 By transmitting to the external audio pair device 805, the audio data 827 of the first application is output through the second device 821 of the first external audio pair device, and the audio data 837 of the second application is It may be controlled to be output through the second device 823 of the first external audio pair device 805.
  • the electronic device eg, the processor 320 may return to operation 707 and perform the following operation again.
  • the electronic device when the folding state of the electronic device 301 satisfies a specified angle condition as a result of checking in operation 705, the electronic device (for example, the processor 320) outputs audio data of a plurality of applications in operation 713. Can be determined. According to an embodiment, operation 713 may be the same as operation 711.
  • FIG. 9 is a flowchart 900 of transmitting audio data of a plurality of applications by using a short-range communication module (eg, the wireless communication module 392 of FIG. 3) included in the electronic device according to various embodiments.
  • the electronic device that performs the operation of FIG. 9 may be the electronic device 301 of FIG. 3.
  • the operations of FIG. 9 described below may be at least some of the detailed operations of operation 507 of FIG. 5.
  • At least some operations of FIG. 9 described below will be described with reference to FIGS. 10A and 10B.
  • 10A is an exemplary diagram of transmitting audio data of a plurality of applications in an electronic device including a plurality of short-range communication modules, according to various embodiments.
  • 10B is an exemplary diagram of transmitting audio data of a plurality of applications by using different protocols in an electronic device including one short-range communication module according to various embodiments.
  • an electronic device eg, the processor 320 of FIG. 3 may determine whether the electronic device 301 uses a plurality of short-range wireless communication modules in operation 901. .
  • the processor 320 may connect a plurality of external audio pair devices 1021 and 1023 to a single short-range wireless communication module. Whether it is connected to the electronic device 301 through or to the electronic device 301 through each of a plurality of short-range wireless communication modules may be determined.
  • the electronic device when the electronic device 301 uses a plurality of short-range wireless communication modules, the electronic device (for example, the processor 320) performs a first short-range wireless communication module and a second short-range wireless communication in operation 903. Audio data of the first and second applications may be transmitted using each of the modules.
  • the processor when the first external audio pair device 1021 is connected through a first short-range wireless communication module, and the second external audio pair device 1023 is connected through a second short-range wireless communication module, the processor ( 320) transmits the encoded audio data of the first application to the first external audio pair device 1021 through the first short-range wireless communication module, and transmits the audio data of the second application through the second short-range wireless communication module.
  • the processor 320 uses the same protocol. Audio data of an application and audio data of a second application may be transmitted, respectively. For example, as shown in FIG. 10A, the processor 120 transmits the audio data of the first application to the first external audio pair device 1021 using the A2DP 1011 supported by the first short-range wireless communication module. And transmits the audio data of the second application to the second external audio pair device 1023 using the A2DP 1013 supported by the second short-range wireless communication module.
  • the processor 320 transmits audio data of a first application using a first protocol of a first short-range wireless communication module, and transmits a second application using a second protocol of the second short-range wireless communication module. Can transmit the audio data.
  • the first protocol and the second protocol may be different protocols.
  • the electronic device 301 may change a protocol used to transmit audio data to an external audio pair device based on a specified event. For example, the electronic device 301 transmits audio data of a first application to a first external audio pair device by using the first protocol of the first short-range wireless communication module, and transmits the second protocol of the second short-range wireless communication module.
  • a specified event eg, a third application execution request event
  • the second protocol of the first short-range wireless communication module or the second 3 Transmit audio data of a third application to a first external audio pair device using a protocol, and transmit audio data of a second application to a second external audio pair device using a second protocol of a second short-range wireless communication module.
  • the electronic device when the electronic device 301 uses one short-range wireless communication module, in operation 905, the electronic device (eg, the processor 320) provides a first profile supported by the first short-range wireless communication module. And audio data of the first and second applications may be transmitted using the second profile.
  • the processor 320 when the first external audio pair device 1021 and the second external audio pair device 1023 are connected through the first short-range wireless communication module, the processor 320 is supported by the short-range wireless communication module.
  • the audio data of the first application is transmitted to the first external audio pair device 1021 using the first protocol
  • the audio data of the second application is transmitted to the second external device using the second protocol supported by the short-range wireless communication module. It can be transmitted to the audio pair device 1023.
  • the processor 120 transmits the audio data of the first application to the first external audio pair device 1021 using the A2DP 1011 supported by the first short-range wireless communication module, and transmits the first short-range wireless communication module.
  • Audio data of the second application may be transmitted to the second external audio pair device 1023 using the HFP 1031 supported by the communication module.
  • FIG. 11A is a flowchart 1100 of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • the electronic device that performs the operation of FIG. 11A may be the electronic device 301 of FIG. 3.
  • the operation indicated by the dotted line may be omitted depending on the embodiment.
  • the operations of FIG. 11A described below may be performed after operation 505 or 507 of FIG. 5 is performed. At least some of the operations of FIG. 11A described below will be described with reference to FIGS. 11B to 11G.
  • 11B is an exemplary diagram of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 11C is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
  • 11D is an exemplary diagram of switching an external audio device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 11E is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
  • 11F is an exemplary diagram of switching an external audio device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
  • 11G is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
  • an electronic device eg, the processor 320 of FIG. 3 may detect an audio output device switching event in operation 1101.
  • the audio output device switching event may be detected based on at least one of a change in a direction of the electronic device 301, a change in a display area of a plurality of applications, or a change in a location of an external audio pair device.
  • the processor 320 detects a direction change of the electronic device 301 using at least one sensor (for example, the sensor module 376 of FIG. 3) provided in the electronic device 301, It may be determined that an audio output device switching event has occurred. For example, as shown in FIGS.
  • the electronic device when the first housing 112 of the electronic device 101 faces the first direction and the second housing 114 faces the second direction, the electronic device If the first housing 112 is changed to face the second direction and the second housing faces the first direction due to the change of direction of 101 (1141, 1161), it is determined that the audio output device switching event has occurred. I can.
  • the second housing 114 is present on the right side of the first housing 112 of the electronic device 101 in the user's field of view facing the electronic device 101.
  • an audio output device switching event occurs. Can be determined.
  • the direction of the electronic device 101 when only the second housing 114 of the electronic device 101 is included in the user's field of view toward the electronic device 101 in the second closed state (out-folding), the direction of the electronic device 101
  • the state is changed to include only the first housing 112 in the user's field of view due to the conversion, it may be determined that an audio output device switching event has occurred.
  • the processor 320 detects that the display area of the first application and the display area of the second application are changed based on a user input (eg, a touch input, a drag input, and/or a gesture input). And, it may be determined that an audio output device switching event has occurred. For example, as shown in FIGS.
  • a screen 1131 of a first application is displayed in an area corresponding to the first housing 112 of the display area of the electronic device 101, and the second In a state in which the screen 1133 of the second application is displayed in the area corresponding to the housing 114, based on the user inputs 1143 and 1163 requesting the display area change, the area corresponding to the first housing 112 is
  • the processor 320 may detect a change in the location of the external audio pair device and determine that an audio output device switching event has occurred.
  • a first device 1123 of an external audio pair device is located in a region adjacent to the second housing 114 of the electronic device 101, and the first device 1123 of the electronic device 101 In a state where the second device 1121 of the external audio pair device is located in the area adjacent to the housing 112, the first device 1123 is adjacent to the first housing 112 and the second device 1121 is the second housing. If the location is changed 1145 to be adjacent to 114, it may be determined that an audio output device switching event has occurred. As another example, as shown in FIG.
  • a first external audio pair device 1151 is located in an area adjacent to the first housing 112 of the electronic device 101 and a second external audio pair device 1151 is located in an area adjacent to the second housing 114.
  • the external audio pair device 1153 With the external audio pair device 1153 positioned, the first external audio pair device 1151 is adjacent to the second housing 114 and the second external audio pair device 1153 is adjacent to the first housing 1142.
  • the location is changed (1167), it may be determined that an audio output device switching event has occurred.
  • the electronic device may determine whether to perform the audio output device switching operation.
  • the processor 320 may determine whether to perform an audio output device switching operation based on a user input. For example, when an audio output device switching event is detected while audio data of a first application and a second application is transmitted to at least one external audio pair device connected to the electronic device 301, the first application And a user interface for inquiring whether to switch the audio data output device of the second application. For example, in the user interface, the audio data output device of the first application is converted to an audio device that outputs audio data of the second application, and the audio data output device of the second application is an audio device that outputs audio data of the first application.
  • the processor 320 may determine to perform an audio output device switching operation.
  • the processor 320 may determine to maintain the current state without performing an audio output device switching operation.
  • the electronic device when it is determined to perform the audio output device switching operation, the electronic device (for example, the processor 320) may switch the audio data output devices of the first and second applications in operation 1105. For example, as shown in FIG. 11B, 11D, or 11F, the processor 320 may transmit the audio data of the video application displayed in the first area 1131 to the second device of the first external audio pair device ( While outputting through 1121 and outputting audio data of a music application displayed in the second area 1133 through the first device 1123 of the first external audio pair device, the direction change of the electronic device 301 (1141) ), when an audio output device switching event due to a display device change 1143, or a position change 1145 of an external audio pair device is detected, audio data of the video application is output through the first device 1123, and music
  • the audio data output device may be switched so that the application audio data is output through the second device 1121.
  • the processor 320 outputs audio data of a video application displayed in the first area 1131 through the first external audio pair device 1151 as shown in FIGS. 11C, 11E, or 11G. And, while the audio data of the music application displayed in the second area 1133 is output through the second external audio pair device 1153, the direction change of the electronic device 301 (1161), the display device change (1163), Alternatively, when an audio output device switching event due to the location change 1165 of the external audio pair device is detected (1161), audio data of the video application is output through the second external audio pair device 1153, and the audio of the music application The audio data output device may be switched so that data is output through the first external audio pair device 1151.
  • the electronic device may transmit a switching event notification signal to at least one external audio pair device.
  • the processor 320 transmits a signal indicating that the audio data output device of a plurality of applications has been changed by an audio data output device switching event to at least one external audio pair device connected to the electronic device 301.
  • the processor 320 may transmit a signal including audio data of the first and second applications by including information indicating that the audio data output device of the plurality of applications has been changed.
  • operation 1107 may be omitted.
  • the electronic device may transmit audio data of the first and second applications according to the conversion result.
  • Operation 1109 may be the same as operation 505 or operation 507 of FIG. 5.
  • the electronic device may display the converted information.
  • Operation 1111 may be the same as operation 509 of FIG. 5.
  • the processor 320 displays information indicating that the audio data output device of a plurality of applications has been changed due to the direction change of the electronic device 301 (for example, the display device 360 of FIG. 3 ). Can be displayed in some areas.
  • an encoding method for generating audio data transmitted to at least one external audio pair device may be changed.
  • the electronic device 310 may notify an external audio pair device that an audio output device switching event is detected through an event (or notification).
  • the external audio pair device may change the sound source output by changing a decoding method in response to an audio output device change notification of the electronic device 310.
  • the encoding method of the sound source may be the same as before.
  • the electronic device 301 checks a profile or capability supporting an external audio pair device according to detection of an audio output device switching event, and based on this, a protocol for encoding Alternatively, you can change the encoding method (codec).
  • the electronic device 301 detects an audio output device switching event, the electronic device 301 checks a profile supporting an external audio pair device or a capability of an external audio pair device, and thus A protocol for encoding or an encoding method (codec) may be changed based on the encoding.
  • FIG. 12 is a flowchart 1200 of transmitting audio data in response to a request from a first device of an external audio pair device in an electronic device according to various embodiments of the present disclosure.
  • the electronic device 1201 performing the operation of FIG. 12 may be the electronic device 301 of FIG. 3, and the first device 1203 and/or the second device 1205 may be the external audio device 401 of FIG. 4. have.
  • the operations of FIG. 12 described below may be performed after operation 505 or 507 of FIG. 5 is performed. At least some operations of FIG. 12 described below will be described with reference to FIGS. 13 and 14.
  • 13 is an exemplary diagram for measuring the strength of a received signal in each of an external audio pair device according to various embodiments.
  • 14 is a diagram illustrating an example in which the first device 1203 detects a communication failure situation of the second device 1205 among external audio pair devices according to various embodiments.
  • the electronic device 1201 may transmit multi-audio data.
  • the multi-audio data may include data in which audio data of a plurality of applications are encoded together.
  • the electronic device 120 transmits multi-audio data encoded with audio data of a first application and audio data of a second application to the first device 1203 of the first external audio pair devices 1207. Can be transmitted.
  • the first device 1203 receives multi-audio data received from the electronic device 1201 in operation 1210, measures the strength of a received signal from the electronic device 1201 in operation 1220, and 2 Can exchange signals with the device 1205. For example, as shown in FIG. 13, the first device 1203 may measure the received signal strength based on the signal 1311 including multi-audio data. In addition, for example, the first device 1203 may transmit and receive signals 1313 and 1323 with the second device 1205. For example, the first device 1203 may measure the received signal strength based on the signal 1313 received from the second device 1205.
  • the signal 1313 received from the second device 1205 is an advertising signal transmitted from the second device 1205, or a pre-appointed exchange between the first device 1203 and the second device 1205.
  • the advertising signal or a pre-promised exchange signal may include a signal including information indicating whether the corresponding device is capable of communicating with the electronic device 1201.
  • each of the first device 1203 and the second device 1205 may exchange signals including information indicating whether the corresponding device can communicate with the electronic device 1201.
  • the first device 1203 determines whether the first device 1203 can communicate with the electronic device 1201 based on the measured signal reception strength based on a signal including multi-audio data, and , A signal including information indicating whether communication with the electronic device 1201 is possible may be transmitted to the second device 1205.
  • the first device 1203 may transmit a signal including information indicating a signal reception strength measured based on a signal including multi-audio data to the second device 1205.
  • the first device 1203 receives information indicating whether the second device 1205 can communicate with the electronic device 1201 or the received signal strength measured by the second device 1205 from the second device 1205.
  • a signal including at least one of the indicated information may be received.
  • the operation of measuring the received signal strength of the electronic device 1201 in operation 1220 and the operation of exchanging signals with the second device 1205 may be performed at the same time point or at different time points.
  • the first device 1203 determines that the second device 1205 is away from the electronic device 1201 based on the received signal strength of the signal received from the second device 1205. Can be detected. According to an embodiment, when the received signal strength measured with respect to the electronic device 1201 is greater than or equal to a specified first threshold, the first device 1203 is connected to the electronic device 1201. When it is determined that communication is possible and the signal strength received from the second device 1205 is less than the second threshold value, it may be determined that the second device 1205 is away from the electronic device 1201. According to another embodiment, the first device 1203 may detect whether the second device 1205 is close to the electronic device 1201 based on a signal exchanged with the second device 1205.
  • the first device 1203 may detect that the second device 1205 is unable to communicate with the electronic device 1201 by checking information included in the signal received from the second device 1205. have.
  • the first device 1203 provides a received signal strength included in a signal received from the second device 1205 less than a second threshold value or a signal received from the second device 1205. 2
  • the second device 1205 which is a pair device, is moved away from the electronic device 1201 and/or the first device 1203 Depending on the situation, it can be determined that communication is impossible.
  • the first device 1203 when a signal is not received from the second device 1205, the first device 1203 communicates as the second device 1205 moves away from the electronic device 1201 and/or the first device 1203. You can decide that this is an impossible situation.
  • the first device 1203 when the received signal strength measured for the electronic device 1201 is less than a specified first threshold, the first device 1203 communicates with the electronic device 1201. It is determined that it is impossible, and operation 1220 may be periodically repeated and performed. When communication with the electronic device 1201 becomes possible, the first device 1203 may perform a subsequent operation.
  • the second device 1205 listens (or monitors) multi-audio data transmitted from the electronic device 1201 to the first device 1203 in operation 1212, and removes the multi-audio data from the received multi-audio data. 2 It is possible to obtain and output audio data of an application corresponding to the device 1205.
  • the second device 1205 measures the strength of a received signal from the electronic device 1201 in operation 1222 and may exchange signals with the first device 1203. For example, as illustrated in FIG. 13, the second device 1205 may measure the received signal strength based on the signal 1321 including multi-audio data received from the electronic device 1201. Also, for example, the second device 1205 may receive the signal 1323 from the first device 1203.
  • the signal received from the first device 1203 may be at least one of an advertising signal transmitted from the first device 1203 or an exchange signal previously promised between the first device 1203 and the second device 1205. It can contain one.
  • the second device 1205 1205 may detect a situation in which communication is impossible due to being away from the electronic device 1201. For example, the second device 1205 determines whether communication is possible away from the electronic device 1201, and transmits a signal 1313 including information indicating whether communication with the electronic device 1201 is possible. To the device 1203. As another example, the second device 1205 transmits a signal 1313 including information indicating a signal reception strength measured based on a signal including multi-audio data received from the electronic device 1201 to the first device 1203. Can be transferred to.
  • a signal eg, a multi-audio data signal
  • the second device 1205 measures the signal reception strength based on the signal received from the first electronic device 1201 and generates a signal 1313 including information indicating that communication with the first device is impossible. It can be transmitted to the first device 1203.
  • the second device 1205 is the first device 1203, information indicating whether the second device 1205 can communicate with the electronic device 1201, or measured by the second device 1205.
  • the signal 1313 including at least one of information indicating the received signal strength may be transmitted.
  • the first device 1203 may transmit a signal requesting transmission of single audio data to the electronic device 1201.
  • the first device 1203 may provide audio that is transmitted from the electronic device 1201 through a short-range wireless communication module in which the second device 1205 is remote from the electronic device 1201 and/or the first device 1203.
  • the electronic device 1201 may request the electronic device 1201 to transmit only audio data (eg, single audio data) of an application corresponding to the first device 1203.
  • the electronic device 1201 in response to transmission of a single audio data signal, transmits a single audio data signal including only audio data of an application corresponding to the first device 1203 to the first device. Can be sent to (1203). For example, as shown in FIG. 14, the electronic device 1201 determines that the second device 1205 cannot receive the signal from the electronic device 1201 based on the received single audio data signal. In addition, among the first application and the second application, a single audio data signal including only audio data of a second application corresponding to the first device 1203 may be transmitted to the first device 1203.
  • the first device 1203 may measure the strength of a received signal from the electronic device 1201 and exchange signals with the second device 1205. For example, the first device 1203 measures the reception strength of a signal including single audio data, and whether the second device 1205 can communicate with the electronic device 301 from the second device 1205 A signal including at least one of information indicating a received signal strength measured by the second device 1205 may be received.
  • the operation of measuring the received signal strength of the electronic device 1201 in operation 1230 and the operation of exchanging signals with the second device 1205 may be performed at the same time point or at different time points.
  • the first device 1203 may detect that the second device 1205 is close to the electronic device 1201 based on the exchange signal. For example, the first device 1203 may communicate with the electronic device 1201 when the received signal strength measured for the electronic device 1201 is greater than or equal to a specified first threshold. It is possible to determine that it is possible and detect whether the second device 1205 is close to the electronic device 1201 based on a signal exchanged with the second device 1205. For example, the first device 1203 may detect that the second device 1205 is close to the electronic device 1201 by checking information included in a signal received from the second device 1205.
  • the first device 1203 may apply the second device to the signal received from the second device 1205 or when the received signal strength included in the signal received from the second device 1205 is greater than or equal to a specified second threshold.
  • a specified second threshold When information indicating that communication with the electronic device 1201 is possible by 1205 is included, it may be determined that the second device 1205 is in a situation in which communication with the electronic device 1201 is possible.
  • the first device 1203 measures the strength of a signal received from the second device 1205, and when the measured signal reception strength is greater than the second threshold, the second device 1205 1201) It may be determined that communication is possible according to proximity.
  • the second device 1205 may measure the strength of a received signal from the electronic device 1201 in operation 1232 and exchange signals with the first device 1203. For example, the second device 1205 may measure a received signal strength by listening to a signal including single audio data transmitted from the electronic device 1201 to the first device 1203. Also, for example, the second device 1205 may receive a signal from the first device 1203. According to various embodiments, although not shown, the second device 1205 may communicate with the first device 1203 in proximity to the electronic device 1201 based on a signal exchanged with the first device 1203. You can detect the situation.
  • the second device 1205 determines whether communication is possible by being close to the electronic device 1201, and transmits a signal 1313 including information indicating whether communication with the electronic device 1201 is possible. To the device 1203. As another example, the second device 1205 transmits a signal 1313 including information indicating a signal reception strength measured based on a signal including multi-audio data received from the electronic device 1201 to the first device 1203. Can be transferred to. As another example, the second device 1205 measures the signal reception strength based on the signal received from the first electronic device 1201 and generates a signal 1313 including information indicating that communication with the first device is possible. 1 can be transmitted to the device 1203. For example, the second device 1205 is the first device 1203, information indicating whether the second device 1205 can communicate with the electronic device 1201, or measured by the second device 1205. The signal 1313 including at least one of information indicating the received signal strength may be transmitted.
  • the first device 1203 may transmit a signal requesting transmission of multi-audio data to the electronic device 1201.
  • the first device 1203 may provide audio that is transmitted from the electronic device 1201 through the short-range wireless communication module by the second device 1205 in proximity to the electronic device 1201 and/or the first device 1203. It detects that data can be received, and transmits audio data (eg, multi-audio data) of a plurality of applications corresponding to each of the first device 1203 and the second device 1205 to the electronic device 1201. Can be requested.
  • audio data eg, multi-audio data
  • the electronic device 1201 in response to transmission of a multi-audio data signal, includes audio data of an application corresponding to the first device 1203 and an application corresponding to the second device 1205.
  • a multi-audio data signal including audio data of may be transmitted to the first device 1203.
  • the first device 1203 receives multi-audio data transmitted from the electronic device 1201 to the first device 1203, and obtains audio data of an application corresponding to the first device 1203 from the received multi-audio data. Can be printed.
  • the second device 1205 listens to multi-audio data transmitted from the electronic device 1201 to the first device 1203, and the second device ( Audio data of an application corresponding to (1205) may be acquired and output.
  • FIG. 15 is a flowchart 1500 for requesting audio data from an electronic device based on a signal reception strength from a first device among external audio pair devices according to various embodiments of the present disclosure.
  • the first device of FIG. 15 may be the first device 1203 of FIG. 12 (eg, the external audio device 401 of FIG. 4 ).
  • the operations of FIG. 15 described below may be detailed representations of operations of the first device 1203 of FIG. 12. At least some operations of FIG. 15 described below will be described with reference to FIGS. 16A to 16C.
  • 16A to 16C are exemplary views in which a first device among external audio pair devices according to various embodiments requests audio data from an electronic device based on signal reception strength.
  • a first device may receive multi-audio data from the electronic device 301.
  • the multi-audio data may be data including audio data of an application corresponding to the first device 1203 and audio data of an application corresponding to the second device 1205 that is a pair device of the first device 1203.
  • the first device may extract and output audio data of the first device 401 from the received multi-audio data.
  • the processor 420 may extract only audio data of an application corresponding to the first device 401 from the multi-audio data and output the extracted audio data.
  • the processor 420 may output audio data of the first device 401 at a designated position of a signal including multi-audio data.
  • the designated location may be a location previously promised with the electronic device 1201 for the first device 1203.
  • the designated location may be set and/or changed by a designer.
  • the designated location may be changed when an audio output device switching notification from the electronic device 1201 is received.
  • the first device 1203 outputs audio data at a first designated position of the received signal, and when an audio output device switching notification from the electronic device 1201 is received, the audio data at the second designated position of the received signal is received. Data can be output.
  • the second designated location of the received signal may be a designated location for the second device 1205.
  • the first device may determine whether the electronic device 1201 and the second device 1205 can communicate.
  • operation 1505 may include at least some operations of operation 1220 and operation 1224 of FIG. 12.
  • the first device 1203 measures the intensity of the first received signal based on the signal 1611 received from the electronic device 1201 to determine the first device 1203 and the electronic device. It is possible to determine whether the device 1201 is capable of communication, and if communication is possible, determine whether the second device 1205 can communicate with the electronic device 1201 based on a signal received from the second device 1205. have.
  • the first device when communication is impossible between the electronic device 1201 and the second device 1205, the first device (eg, the processor 420) may request transmission of single audio data to the electronic device in operation 1507. have.
  • the processor 420 may determine that the first received signal strength is greater than or equal to a specified first threshold, and the second received signal strength included in the signal received from the second device 1205 is less than the second threshold.
  • operation 1507 may be the same as operation 1226 of FIG. 12.
  • the first threshold value and the second threshold value may be the same value or different values.
  • the first device eg, the processor 420
  • the processor 420 may decode single audio data received from the electronic device 1201 and output the decoded audio data through the sound output device.
  • the first device may determine whether communication between the electronic device 1201 and the second device 1205 is possible.
  • operation 1511 may include at least some operations of operation 1230 and operation 1234 of FIG. 12.
  • the first device 1203 measures the intensity of the first received signal based on the signal 1611 received from the electronic device 1201 to determine the first device 1203 and the electronic device. Determines whether the device 1201 can communicate, and if the communication is possible, whether the second device 1205 can communicate with the electronic device 1201 based on the signal 1613 received from the second device 1205 Can be determined.
  • the first device 1203 may periodically perform operation 1511 described above.
  • the first device may request multi-audio data transmission to the electronic device in operation 1513.
  • the processor 420 has a first received signal strength equal to or greater than a specified first threshold, and the second received signal strength included in the signal 1613 received from the second device 1205 is the second threshold. If the value is greater than or equal to the value, as shown in FIG. 16C, as the second device 1205 approaches the electronic device 1201 again, it is determined that communication is possible, and the multi-audio data A signal 1631 requesting transmission may be transmitted.
  • operation 1513 may be the same as operation 1236 of FIG. 12.
  • FIG. 17 is a flowchart 1700 of transmitting audio data according to a request from a first device in an electronic device according to various embodiments.
  • the electronic device performing the operation of FIG. 17 may be the electronic device 1201 of FIG. 12 (eg, the electronic device 301 of FIG. 3 ).
  • the operations of FIG. 17 to be described below may represent operations of the electronic device 1201 in detail.
  • an electronic device eg, the processor 320 of FIG. 3 according to various embodiments of the present disclosure provides single audio data from the first device 1203 of the first external audio pair device 1207. It is possible to receive a transmission request signal.
  • the processor 320 may receive a single audio data transmission request signal from the first device 1203 while transmitting a signal including multi-audio data to the first device 1203.
  • the single audio data transmission request signal may include information indicating that the second device 1205 cannot receive a signal from the electronic device 1201.
  • the electronic device may determine one of the first application and the second application based on a single audio data transmission request signal. For example, based on a single audio data transmission request signal, the processor 320 checks that the second device 1205 is in a situation in which signal reception from the electronic device 1201 is impossible, and selects one of the first application and the second application. It can be checked whether the application is an application corresponding to the first device 1203. According to an embodiment, the electronic device 1201 may determine an application to transmit single audio data based on a specified criterion (eg, priority or execution order). According to another embodiment, the electronic device 1201 may determine an application by receiving information on an application for transmitting single audio data from the first device 1203.
  • a specified criterion eg, priority or execution order
  • the electronic device eg, the processor 320 may transmit audio data of the determined application to the first device 1203.
  • operation 1705 is shown in FIG. 12) May be the same as operation 1228.
  • the electronic device may determine whether a multi-audio data transmission request signal is received from the first device 1203. For example, while transmitting a signal including single audio data to the first device 1203, the processor 320 may determine whether a multi-audio data transmission request signal is received from the first device 1203.
  • the multi-audio data transmission request signal may include information indicating that the second device 1205 is capable of receiving signals from the electronic device 1201.
  • the electronic device when a multi-audio data transmission request signal is received, the electronic device (for example, the processor 320) encodes the audio data of the first and second applications together in operation 1709, and the first device 1203 ). For example, based on the multi-audio data transmission request signal, the processor 320 confirms that both the first device 1203 and the second device 1205 are capable of receiving signals from the electronic device 1201, and Multi-audio data including audio data of an application and audio data of a second application may be transmitted to the first device 1203.
  • the first device 1203 detects whether the second device 1205 is capable of communication, and requests the electronic device 1201 to transmit single audio data or to request multiple audio data transmission. Has been described, but the reverse would also be possible.
  • the second device 1205 may detect whether the first device 1203 is capable of communication, and may request single audio data transmission or multi-audio data transmission to the electronic device 1201.
  • each of the operations may be sequentially performed, but is not necessarily performed sequentially.
  • the order of each operation may be changed, and at least two operations may be performed in parallel.
  • the method of operating the electronic device 301 includes an operation of detecting an event for outputting audio of a plurality of applications, and in response to the event detection, a short-range wireless communication module (eg, wireless communication in FIG. 3 ).
  • a short-range wireless communication module eg, wireless communication in FIG. 3 .
  • the audio data of the first application and the second application are Encoding the audio data together and transmitting it to the first external audio pair device through the short-range wireless communication module 392, and the first external audio pair device and the second external audio pair device are connected to the electronic device.
  • the audio data of the first application and the audio data of the second application are respectively encoded, and through the short-range wireless communication module 392, the first external audio pair device and the second external audio pair device are respectively.
  • two applications have been described as an example to aid understanding, but various embodiments of the present invention can be equally applied even when two or more applications are executed in an electronic device. have.
  • an electronic device eg, the electronic device 301 of FIG. 3 or the electronic device 1201 of FIG. 12
  • the electronic devices 301 and 1201 may check characteristics of each of the first and second applications.
  • the electronic devices 301 and 1201 check the characteristics, when the first application generates audio data and the second application does not generate audio data, the electronic device generates single audio data including only audio data of the first application. It may be transmitted to at least one external audio pair device connected to (301, 1201).
  • the characteristics of each of the first and second applications may be checked based on, for example, application-related information, application identification information, or at least one function performed by the application.
  • An electronic device may be a device of various types.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a camera
  • a wearable device e.g., a smart bracelet
  • the electronic device according to the embodiment of the present document is not limited to the above-described devices.
  • phrases such as “at least one of B or C” may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof.
  • Terms such as “first”, “second”, or “first” or “second” may be used simply to distinguish the component from other Order) is not limited.
  • Some (eg, a first) component is referred to as “coupled” or “connected” to another (eg, a second) component, with or without the terms “functionally” or “communicatively”. When mentioned, it means that any of the above components may be connected to the other components directly (eg by wire), wirelessly, or via a third component.
  • module used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits.
  • the module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 236 or external memory 238) that can be read by a machine (eg, electronic device 201). It may be implemented as software (for example, the program 240) including them.
  • the processor eg, the processor 220 of the device (eg, the electronic device 201) may call and execute at least one command among one or more commands stored from a storage medium. This enables the device to be operated to perform at least one function according to the at least one command invoked.
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • a storage medium that can be read by a device may be provided in the form of a non-transitory storage medium.
  • non-transitory only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.
  • a signal e.g., electromagnetic waves
  • a method according to various embodiments disclosed in the present document may be provided by being included in a computer program product.
  • Computer program products can be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or two user devices (e.g., compact disc read only memory (CD-ROM)). It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones).
  • a device-readable storage medium e.g. compact disc read only memory (CD-ROM)
  • an application store e.g. Play Store TM
  • two user devices e.g., compact disc read only memory (CD-ROM)
  • It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones).
  • At least a part of the computer program product may be temporarily stored or temporarily generated in a storage medium that can be read by a device such as a server of a manufacturer, a server of an application store, or a memory of a relay server.
  • each component (eg, module or program) of the above-described components may include a singular number or a plurality of entities.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or program
  • the integrated component may perform one or more functions of each component of the plurality of components in the same or similar to that performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component may be sequentially, parallel, repeatedly, or heuristically executed, or one or more of the operations may be executed in a different order or omitted. Or one or more other actions may be added.

Abstract

Various embodiments of the present invention relate to an electronic device and a method for operating same. The electronic device comprises: a wireless communication module; and a processor operatively connected to the wireless communication module. The processor can be controlled to: detect an event for outputting audio from a plurality of applications; confirm at least one external audio device connected to the electronic device through the wireless communication module on the basis of detecting the event; transmit audio data of a first application and audio data of a second application to a first external audio device through the wireless communication module when the first external audio device is connected to the electronic device; and transmit the audio data of the first application to the first external audio device and the audio data of the second application to the second external audio device through the wireless communication module when the first external audio device and a second external audio device are connected to the electronic device. Other embodiments may also be possible.

Description

복수의 어플리케이션들의 오디오 데이터를 출력하는 전자 장치 및 그 동작 방법Electronic device for outputting audio data of a plurality of applications and a method of operating the same
본 발명의 다양한 실시예들은 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 방법 및 장치에 관한 것이다.Various embodiments of the present invention relate to a method and an apparatus for outputting audio data of a plurality of applications in an electronic device.
정보통신 기술과 반도체 기술의 발전에 따라 다양한 전자 장치의 보급과 이용이 급속도로 증가하고 있다. 전자 장치가 광범위하게 보급됨에 따라, 전자 장치는 다른 전자 장치들과 연계하여 다양한 기능을 지원하고 있다. 예를 들어, 전자 장치는 오디오 출력 기능을 갖는 외부 장치(예: 웨어러블 디바이스, 이어버드, 또는 무선 이어폰)와 근거리 무선 통신 연결을 통해 데이터를 송수신함으로써, 사용자에게 다양한 서비스를 제공할 수 있다.With the development of information and communication technology and semiconductor technology, the spread and use of various electronic devices is rapidly increasing. As electronic devices are widely spread, electronic devices support various functions in connection with other electronic devices. For example, the electronic device may provide various services to a user by transmitting and receiving data through a short-range wireless communication connection with an external device (eg, a wearable device, earbuds, or wireless earphone) having an audio output function.
전자 장치는 오디오 출력 기능을 갖는 외부 장치와 연결하고, 전자 장치에서 실행되는 어플리케이션의 오디오 데이터를 연결된 외부 장치를 통해 출력할 수 있다. 전자 장치에서 오디오 데이터 출력 기능을 갖는 복수의 어플리케이션들이 실행되는 경우, 전자 장치는 복수의 어플리케이션 중 하나의 어플리케이션을 선택하고, 선택된 하나의 어플리케이션의 오디오 데이터를 연결된 외부 장치를 통해 출력할 수 있다. 그러나, 선택된 하나의 어플리케이션의 오디오 데이터만을 출력하는 방식은, 다양한 사용자의 요구를 만족시키는데 한계가 있다.The electronic device may connect to an external device having an audio output function and output audio data of an application executed in the electronic device through the connected external device. When a plurality of applications having an audio data output function are executed in the electronic device, the electronic device may select one application from among the plurality of applications and output audio data of the selected application through a connected external device. However, the method of outputting only the audio data of one selected application has a limitation in satisfying the needs of various users.
따라서, 본 발명의 다양한 실시예들은 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 동시에 출력하기 위한 방법 및 장치에 대해 개시한다.Accordingly, various embodiments of the present invention disclose a method and an apparatus for simultaneously outputting audio data of a plurality of applications in an electronic device.
본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems that are not mentioned can be clearly understood by those of ordinary skill in the technical field to which the present invention belongs from the following description. There will be.
다양한 실시예들에 따르면, 무선 통신 모듈, 및 상기 무선 통신 모듈과 작동적으로 연결된 프로세서를 포함하며, 상기 프로세서는, 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하고, 상기 이벤트 감지에 기반하여, 상기 무선 통신 모듈을 통해 상기 전자 장치에 연결된 적어도 하나의 외부 오디오 장치를 확인하고, 상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 상기 무선 통신 모듈을 통해 상기 제1 외부 오디오 장치로 전송하고, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 무선 통신 모듈을 통해, 상기 제1 외부 오디오 장치로 상기 제1 어플리케이션의 오디오 데이터를 전송하고, 상기 제2 외부 오디오 장치로 상기 제2 어플리케이션의 오디오 데이터를 전송하도록 제어할 수 있다. According to various embodiments, a wireless communication module and a processor operatively connected to the wireless communication module are included, wherein the processor detects an event for outputting audio of a plurality of applications, and based on the event detection , Check at least one external audio device connected to the electronic device through the wireless communication module, and when a first external audio device is connected to the electronic device, audio data of a first application and audio data of a second application are transmitted to the electronic device. When the first external audio device is transmitted to the first external audio device through a wireless communication module and the first external audio device and the second external audio device are connected to the electronic device, the first external audio device is transmitted to the first external audio device through the wireless communication module. The audio data of the first application may be transmitted and control may be performed to transmit the audio data of the second application to the second external audio device.
다양한 실시예들에 따르면, 전자 장치는, 적어도 일부가 폴딩되는 디스플레이, 상기 디스플레이의 폴딩 상태를 감지하는 적어도 하나의 센서, 무선 통신 모듈, 적어도 하나의 어플리케이션을 저장하는 메모리 및 상기 디스플레이, 상기 적어도 하나의 센서, 상기 메모리 및 상기 무선 통신 모듈과 작동적으로 연결된 프로세서를 포함하며, 상기 프로세서는, 상기 메모리에 저장된 제1 어플리케이션 및 제2 어플리케이션을 실행하고, 상기 디스플레이의 폴딩 상태가 제1 지정된 상태인 동안에 상기 제1 어플리케이션의 오디오 데이터를, 상기 무선 통신 모듈을 통해, 적어도 하나의 외부 오디오 장치로 전송하고, 상기 디스플레이의 폴딩 상태가 제1 지정된 상태에서 제2 지정된 상태로 변경되는 경우, 복수의 어플리케이션의 오디오 데이터를 출력하기 위한 이벤트를 감지하고, 상기 이벤트에 기반하여, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를, 상기 무선 통신 모듈을 통해, 상기 적어도 하나의 외부 오디오 장치로 전송하도록 설정될 수 있다.According to various embodiments, the electronic device includes a display in which at least a portion is folded, at least one sensor for detecting a folding state of the display, a wireless communication module, a memory for storing at least one application, and the display, the at least one A sensor, the memory, and a processor operatively connected to the wireless communication module, wherein the processor executes a first application and a second application stored in the memory, and a folding state of the display is a first designated state. While the audio data of the first application is transmitted to at least one external audio device through the wireless communication module, and the folding state of the display is changed from the first designated state to the second designated state, a plurality of applications Detects an event for outputting audio data of, and, based on the event, transmits the audio data of the first application and the audio data of the second application to the at least one external audio device through the wireless communication module. It can be set to transmit.
본 발명의 다양한 실시예들에 따르면, 전자 장치에서 적어도 하나의 외부 오디오 장치를 이용하여 복수의 어플리케이션들의 오디오 데이터를 출력함으로써, 다양한 서비스를 제공받고자 하는 사용자의 만족도를 향상시킬 수 있다.According to various embodiments of the present disclosure, the electronic device outputs audio data of a plurality of applications using at least one external audio device, thereby improving a user's satisfaction level for receiving various services.
본 발명의 다양한 실시예들에 따르면, 전자 장치에서 전자 장치 및/또는 디스플레이의 폴딩 상태 변화에 기초하여 복수의 어플리케이션들의 오디오 데이터를 출력함으로써, 사용자 편의성을 향상시킬 수 있다.According to various embodiments of the present disclosure, user convenience may be improved by outputting audio data of a plurality of applications based on a change in a folding state of an electronic device and/or a display in the electronic device.
본 발명의 다양한 실시예들에 따르면, 전자 장치에서 연결된 외부 오디오 장치 중 제2 장치의 근접 여부를 감지하는 제1 장치의 요청에 따라 하나의 어플리케이션의 오디오 데이터, 또는 복수의 어플리케이션들의 오디오 데이터를 선택적으로 전송함으로써, 제2 장치가 전자 장치로부터 멀어짐에 따라 전자 장치에서 제2 장치를 이용한 오디오 데이터 출력이 불가능한 상황에 대해 유연하게 대처할 수 있다.According to various embodiments of the present disclosure, audio data of one application or audio data of a plurality of applications are selectively selected according to a request of a first device that detects proximity of a second device among external audio devices connected by an electronic device. By transmitting to the second device, as the second device moves away from the electronic device, it is possible to flexibly cope with a situation in which the electronic device cannot output audio data using the second device.
도 1a 및 도 1b는 다양한 실시예들에 따른 폴더블 타입의 전자 장치의 펼쳐진 상태를 도시한 도면이다.1A and 1B are diagrams illustrating an unfolded state of a foldable type electronic device according to various embodiments.
도 2a 및 도 2b는 다양한 실시예들에 따른 플렉서블 타입의 전자 장치의 펼쳐진 상태를 도시한 도면이다.2A and 2B are diagrams illustrating an unfolded state of a flexible type electronic device according to various embodiments.
도 3은 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블럭도이다.3 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure.
도 4는 다양한 실시예들에 따른, 외부 오디오 장치의 블럭도이다.4 is a block diagram of an external audio device according to various embodiments of the present disclosure.
도 5는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 흐름도이다.5 is a flowchart for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
도 6a는 다양한 실시예들에 따른 전자 장치에서 제1 외부 오디오 페어 장치로 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다.6A is an exemplary diagram for transmitting audio data of a plurality of applications from an electronic device to a first external audio pair device according to various embodiments of the present disclosure.
도 6b는 다양한 실시예들에 따른 전자 장치에서 복수의 외부 오디오 페어 장치들로 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다.6B is an exemplary diagram of transmitting audio data of a plurality of applications from an electronic device to a plurality of external audio pair devices according to various embodiments of the present disclosure.
도 6c는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 오디오 데이터가 출력되는 장치에 대한 정보를 표시하는 예시도이다.6C is an exemplary diagram illustrating information on a device for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
도 6d는 다양한 실시예들에 따른 전자 장치에서 적어도 일부 영역에 대응되는 외부 오디오 장치를 지정하는 예시도이다.6D is an exemplary diagram of designating an external audio device corresponding to at least a partial area in an electronic device according to various embodiments of the present disclosure.
도 7은 다양한 실시예들에 따른 전자 장치에서 폴딩 상태에 기초하여 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 흐름도이다.7 is a flowchart for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
도 8은 다양한 실시예들에 따른 전자 장치에서 폴딩 상태에 기초하여 복수의 어플리케이션들의 오디오 데이터를 출력하는 예시도이다.8 is an exemplary diagram for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
도 9는 다양한 실시예들에 따른 전자 장치에서 전자 장치에 포함된 근거리 통신 모듈을 이용하여 복수의 어플리케이션들의 오디오 데이터를 전송하는 흐름도이다.9 is a flowchart of transmitting audio data of a plurality of applications by using a short-range communication module included in the electronic device in an electronic device according to various embodiments of the present disclosure.
도 10a는 다양한 실시예들에 따라 복수의 근거리 통신 모듈을 포함하는 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다.10A is an exemplary diagram of transmitting audio data of a plurality of applications in an electronic device including a plurality of short-range communication modules, according to various embodiments.
도 10b는 다양한 실시예들에 따라 하나의 근거리 통신 모듈을 포함하는 전자 장치에서 서로 다른 프로토콜을 이용하여 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다.10B is an exemplary diagram of transmitting audio data of a plurality of applications by using different protocols in an electronic device including one short-range communication module according to various embodiments.
도 11a는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 흐름도이다.11A is a flowchart of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
도 11b는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다.11B is an exemplary diagram of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
도 11c는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다.11C is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure.
도 11d는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 표시 영역 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다.11D is an exemplary diagram of switching an external audio device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
도 11e는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 표시 영역 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다.11E is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure.
도 11f는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 장치의 위치 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다.11F is an exemplary diagram of switching an external audio device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
도 11g는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 장치의 위치 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다.11G is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
도 12는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 페어 장치의 제1 장치의 요청에 따라 오디오 데이터를 전송하는 흐름도이다.12 is a flowchart of transmitting audio data in response to a request from a first device of an external audio pair device in an electronic device according to various embodiments of the present disclosure.
도 13은 다양한 실시예들에 따른 외부 오디오 페어 장치 각각에서 수신 신호 세기를 측정하는 예시도이다.13 is an exemplary diagram for measuring the strength of a received signal in each of an external audio pair device according to various embodiments.
도 14는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치에서 제2 장치의 통신 불가능 상황을 감지하는 예시도이다.14 is a diagram illustrating an example in which a first device detects a communication impossible situation of a second device among external audio pair devices according to various embodiments of the present disclosure.
도 15는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치에서 신호 수신 세기에 기초하여 전자 장치로 오디오 데이터를 요청하는 예시도이다.15 is an exemplary diagram in which a first device among external audio pair devices according to various embodiments requests audio data from an electronic device based on signal reception strength.
도 16a 내지 도 16c는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치에서 신호 수신 세기에 기초하여 전자 장치로 오디오 데이터를 요청하는 흐름도이다.16A to 16C are flowcharts of requesting audio data from an electronic device based on a signal reception strength by a first device among external audio pair devices according to various embodiments of the present disclosure.
도 17은 다양한 실시예들에 따른 전자 장치에서 제1 장치의 요청에 따라 오디오 데이터를 전송하는 흐름도이다.17 is a flowchart of transmitting audio data according to a request of a first device in an electronic device according to various embodiments of the present disclosure.
이하, 본 문서의 다양한 실시예들이 첨부된 도면을 참조하여 기재된다. 실시예 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다.Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings. The examples and terms used therein are not intended to limit the technology described in this document to a specific embodiment, and should be understood to include various changes, equivalents, and/or substitutes for the corresponding embodiment. In connection with the description of the drawings, similar reference numerals may be used for similar elements. Singular expressions may include plural expressions unless the context clearly indicates otherwise.
도 1a 및 도 1b는 다양한 실시예들에 따른 폴더블 타입의 전자 장치의 펼쳐진 상태를 도시한 도면이다. 도 1a는 다양한 실시예들에 따른 폴더블 타입의 전자 장치의 펼쳐진 상태에 대한 전면도이고, 도 1b는 다양한 실시예들에 따른 폴더블 타입의 전자 장치의 펼쳐진 상태에 대한 후면도이다.1A and 1B are diagrams illustrating an unfolded state of a foldable type electronic device according to various embodiments. 1A is a front view illustrating an unfolded state of a foldable type electronic device according to various embodiments, and FIG. 1B is a rear view illustrating an unfolded state of a foldable type electronic device according to various embodiments.
도 1a 및 도 1b를 참조하면, 다양한 실시예들에 따른 전자 장치(101)는, 폴더블 하우징(110), 접힘부(116), 제1 디스플레이(120), 제2 디스플레이(122), 제1 센서(130), 제2 센서(132), 및/또는 하나 이상의 부품들(components)(136)을 포함할 수 있다. 제1 디스플레이(120) 및/또는 제2 디스플레이(122)는 폴더블 하우징(110)에 의해 형성된 공간 내에 배치된 플렉서블 및/또는 폴더블 디스플레이일 수 있다. 1A and 1B, an electronic device 101 according to various embodiments includes a foldable housing 110, a folding part 116, a first display 120, a second display 122, and a second display. It may include one sensor 130, a second sensor 132, and/or one or more components 136. The first display 120 and/or the second display 122 may be a flexible and/or foldable display disposed in a space formed by the foldable housing 110.
다양한 실시예들에 따르면, 폴더블 하우징(110)은 제1 하우징(112) 및 제2 하우징(114)을 포함할 수 있다. 일실시예에 따르면, 전자 장치(101)는 제1 하우징(112) 및 제2 하우징(114)으로 구성될 수 있으며, 이때 제1 하우징(112) 및 제2 하우징(114)을 포함하는 하우징을 폴더블 하우징(110)이라고 말할 수 있다. 제1 하우징(112)은 제1 면(또는 제1 전면(예: 도 1a의 +Z축 방향을 향하는 면))(151), 및 상기 제1 면(151)과 반대 방향을 향하는 제3 면(또는 제1 후면(예: 도 1b의 +Z축을 향하는 면))(153)을 포함할 수 있다. 제2 하우징(114)은 제2 면(또는 제2 전면(예: 도 1a의 +Z축을 향하는 면))(152), 및 상기 제2 면(152)과 반대 방향을 향하는 제4 면(또는 제2 후면 예: 도 1b의 +Z축을 향하는 면))(154)을 포함할 수 있다. According to various embodiments, the foldable housing 110 may include a first housing 112 and a second housing 114. According to an embodiment, the electronic device 101 may be composed of a first housing 112 and a second housing 114, wherein a housing including the first housing 112 and the second housing 114 is provided. It can be said that it is a foldable housing 110. The first housing 112 includes a first surface (or a first front surface (eg, a surface facing the +Z-axis direction in FIG. 1A)) 151 and a third surface facing the first surface 151 (Or a first rear surface (eg, a surface facing the +Z axis in FIG. 1B)) 153 may be included. The second housing 114 has a second surface (or a second front surface (for example, a surface facing the +Z axis in FIG. 1A)) 152, and a fourth surface facing the second surface 152 (or A second rear surface example: a surface facing the +Z axis of FIG. 1B)) 154 may be included.
다양한 실시예들에 따르면, 제1 하우징(112) 및 제2 하우징(114)은 접힘부(116)의 양측에 배치되고, 접힘부(116)에 의해 연결될 수 있다. 예를 들면, 접힘부(116)는 제1 하우징(112)의 측면, 및 제1 하우징(112)의 측면과 마주하는 제2 하우징(114)의 측면에 각각 결합됨으로써 제1 하우징(112) 및 제2 하우징(114)이 일정한 각도로 회전(pivotably 또는 rotatably)이 가능하게 연결할 수 있다. According to various embodiments, the first housing 112 and the second housing 114 may be disposed on both sides of the folded portion 116 and connected by the folded portion 116. For example, the folded portion 116 is coupled to a side surface of the first housing 112 and a side surface of the second housing 114 facing the side surface of the first housing 112, respectively, so that the first housing 112 and the The second housing 114 may be connected to be pivotably or rotatably at a certain angle.
다양한 실시예들에 따르면, 제1 디스플레이(120)는 제1 하우징(112)에 의해 형성된 공간 내에 배치될 수 있다. 제1 디스플레이(120)는 제1 하우징(112)의 제3 면(또는 제1 후면) 또는 제1 후면 커버(150)의 일부 영역을 통해 적어도 일부가 시각적으로 노출될 수 있다.According to various embodiments, the first display 120 may be disposed in a space formed by the first housing 112. At least a portion of the first display 120 may be visually exposed through a third surface (or first rear surface) of the first housing 112 or a partial area of the first rear cover 150.
다양한 실시예들에 따르면, 제2 디스플레이(122)는 접힘부(116)를 가로질러 제1 하우징(112) 및 제2 하우징(114)이 형성하는 공간에 배치될 수 있다. 예컨대, 제2 디스플레이(122)는 제1 하우징(112) 및 제2 하우징(114)의 적어도 일부에 의해 지지되도록 설치될 수 있다. 다양한 실시예들에서, 제2 디스플레이(122)는 접힘부(116)를 가로질러 제1 하우징(112)의 제1 면(151) 및 제2 하우징(114)의 제2 면(152) 상에 배치될 수 있다. According to various embodiments, the second display 122 may be disposed in a space formed by the first housing 112 and the second housing 114 across the folded portion 116. For example, the second display 122 may be installed to be supported by at least a portion of the first housing 112 and the second housing 114. In various embodiments, the second display 122 crosses the fold 116 on the first side 151 of the first housing 112 and on the second side 152 of the second housing 114. Can be placed.
다양한 실시예들에 따르면, 제1 센서(130)는 제1 하우징(112)에 의해 형성된 공간 내에 배치될 수 있다. 일실시예에 따르면, 제1 센서(130)는 제1 하우징(112)의 제3 면(또는 제1 후면)(153), 또는 제1 후면 커버(150)의 영역 중 제1 디스플레이(120)가 배치된 영역의 상단 영역에 배치된 센서 모듈일 수 있다. 일실시예에 따르면 제1 센서(130)는 제1 하우징(112)의 적어도 일부에 포함된 다른 부자재에 포함되어 실장될 수 있다. 제1 센서(130)는 적어도 하나의 카메라 센서를 포함할 수 있다. 제1 센서(130)는 다른 부자재(예: 렌즈부(미도시))를 더 포함할 수 있다. 일실시예에 따르면, 제1 센서(130)는 제1 디스플레이(120) 하단에 배치될 수 있다. 다양한 실시예들에 따르면, 제2 센서(132)는 제2 하우징에 의해 형성된 공간 내에 배치될 수 있다. 제2 센서(132)는 제2 하우징의 제2 면(또는 제2 전면)의 영역 중 제2 디스플레이(122)가 배치된 영역의 상단 영역에 배치된 센서 모듈일 수 있다. 제2 센서(132)는 적어도 하나의 카메라 센서, 또는 적어도 하나의 UWB 센서 중 적어도 하나를 포함할 수 있다. 일실시예에 따르면, 제2 센서(132)는 제2 디스플레이(122) 하단에 배치될 수 있다. 제2 센서(132)는 제2 하우징(114)의 적어도 일 측면 또는 내부에 배치된 부자재 상에 배치될 수 있다. 제2 센서(132)는 제2 디스플레이(122)의 적어도 일부에 포함될 수 있다. According to various embodiments, the first sensor 130 may be disposed in a space formed by the first housing 112. According to an embodiment, the first sensor 130 is the first display 120 of the third surface (or first rear surface) 153 of the first housing 112 or the area of the first rear cover 150 It may be a sensor module disposed in the upper area of the area where is disposed. According to an embodiment, the first sensor 130 may be included in and mounted in another subsidiary material included in at least a part of the first housing 112. The first sensor 130 may include at least one camera sensor. The first sensor 130 may further include other subsidiary materials (eg, a lens unit (not shown)). According to an embodiment, the first sensor 130 may be disposed under the first display 120. According to various embodiments, the second sensor 132 may be disposed in a space formed by the second housing. The second sensor 132 may be a sensor module disposed in an upper area of an area in which the second display 122 is disposed among areas of the second surface (or the second front surface) of the second housing. The second sensor 132 may include at least one of at least one camera sensor or at least one UWB sensor. According to an embodiment, the second sensor 132 may be disposed under the second display 122. The second sensor 132 may be disposed on at least one side of the second housing 114 or on a subsidiary material disposed inside. The second sensor 132 may be included in at least a portion of the second display 122.
다양한 실시예들에 따르면, 하나 이상의 부품들(136)은 제2 하우징(114)에 의해 형성된 공간 내에 배치될 수 있다. 하나 이상의 부품들(136)은 제2 하우징(114)의 제4 면(또는 제2 후면) 또는 제2 후면 커버(140)의 일부 영역에 배치된 센서 모듈일 수 있다. 예를 들어, 하나 이상의 부품들(136)은 지문 감지 센서, 카메라 센서, 근접 센서, UWB 센서, 또는 심박 센서 중 적어도 하나를 포함할 수 있다.According to various embodiments, one or more components 136 may be disposed within a space formed by the second housing 114. The one or more components 136 may be a sensor module disposed on a fourth surface (or a second rear surface) of the second housing 114 or a partial area of the second rear cover 140. For example, the one or more components 136 may include at least one of a fingerprint sensor, a camera sensor, a proximity sensor, a UWB sensor, or a heart rate sensor.
다양한 실시예들에 따른 전자 장치(101)는 접힘부(116)를 기준으로 접힐 수 있다. 예를 들어, 접힘부(116)는 전자 장치(101)의 제1 하우징(112) 및 제2 하우징(114)의 사이에 배치되어, 전자 장치(101)를 일정한 각도로 접히거나 휘도록 할 수 있다. 다양한 실시예들에 따르면, 제1 하우징(112)은 접힘부(116)를 통해 제2 하우징(114)과 연결되고, 접힘부(116)를 기준으로 회전할 수 있다. 다양한 실시예들에 따르면, 제2 하우징(114)은 접힘부(116)를 통해 제1 하우징(112)과 연결되고, 접힘부(116)를 기준으로 회전할 수 있다. 다양한 실시예들에 따르면, 제1 하우징(112)과 제2 하우징(114)은 접힘부(116)를 기준으로 회전함으로써 상호 마주 보도록 접힐 수 있다. 다양한 실시예들에서, 제1 하우징(112) 및 제2 하우징(114)은 실질적으로 서로 포개지거나 중첩될 수 있다. 예를 들어, 제1 하우징(112)과 제2 하우징(114)이 접힘부(116)를 기준으로 회전함으로써, 제1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152)이 서로 마주보거나, 제1 하우징(112)의 제3 면(153)과 제2 하우징(114)의 제4 면(154)이 서로 마주보도록 접힐 수 있다. 이때, 제1 하우징(112)과 제2 하우징(114)이 이루는 각도에 따라 제2 디스플레이(122)는 일정한 각도로 접힐(folding)(예: 인폴딩(in-folding) 및/또는 아웃폴딩(out-folding))될 수 있다. 일실시예에 따르면, 제2 디스플레이(122)는 제1 하우징(112) 또는 제2 하우징(114) 구조 없이 전자 장치(101)에 자체적으로 형성될 수 있다. 이때 전자 장치(101)는 제2 디스플레이(122) 자체의 접힘 정도를 파악할 수 있다. The electronic device 101 according to various embodiments may be folded based on the folded portion 116. For example, the folding part 116 is disposed between the first housing 112 and the second housing 114 of the electronic device 101 to fold or bend the electronic device 101 at a certain angle. have. According to various embodiments, the first housing 112 is connected to the second housing 114 through the folded portion 116 and may rotate based on the folded portion 116. According to various embodiments, the second housing 114 is connected to the first housing 112 through the folded portion 116 and may rotate based on the folded portion 116. According to various embodiments, the first housing 112 and the second housing 114 may be folded to face each other by rotating based on the folded portion 116. In various embodiments, the first housing 112 and the second housing 114 may substantially overlap or overlap each other. For example, by rotating the first housing 112 and the second housing 114 based on the folded portion 116, the first surface 151 and the second housing 114 of the first housing 112 The second surfaces 152 may face each other, or the third surface 153 of the first housing 112 and the fourth surface 154 of the second housing 114 may be folded to face each other. At this time, according to the angle formed by the first housing 112 and the second housing 114, the second display 122 is folded at a certain angle (for example, in-folding and/or out-folding ( out-folding)). According to an embodiment, the second display 122 may be itself formed on the electronic device 101 without a structure of the first housing 112 or the second housing 114. In this case, the electronic device 101 may determine the degree of folding of the second display 122 itself.
다양한 실시예들에 따르면, 접힘부(116)는 각도 감지 센서(160)를 포함할 수 있다. 예를 들어, 각도 감지 센서(160)는 제1 하우징(112)과 제2 하우징(114)이 이루는 각도를 감지할 수 있는 디그리 센서(degree sensor)일 수 있다. According to various embodiments, the folded portion 116 may include an angle detection sensor 160. For example, the angle detection sensor 160 may be a degree sensor capable of detecting an angle formed between the first housing 112 and the second housing 114.
다양한 실시예들에 따르면, 제1 하우징(112) 및 제2 하우징(114) 각각에는 적어도 하나의 상태 감지 센서가 배치될 수 있다. 예를 들어, 제1 하우징(112)에는 제1 상태 감지 센서가 배치되고, 제2 하우징(114)에는 제2 상태 감지 센서가 배치될 수 있다. 일실시예에 따르면, 제1 상태 감지 센서 및 제2 상태 감지 센서는 제1 하우징(112)과 제2 하우징(114) 사이의 각도에 대한 정보를 획득하기 위한 센서일 수 있다. 제1 및 제2 상태 감지 센서는, 예를 들어, 자이로 센서, 거리 센서, 또는 스트레인 센서 중 적어도 하나를 포함할 수 있다. According to various embodiments, at least one state detection sensor may be disposed in each of the first housing 112 and the second housing 114. For example, a first state sensor may be disposed in the first housing 112 and a second state sensor may be disposed in the second housing 114. According to an embodiment, the first state detection sensor and the second state detection sensor may be sensors for obtaining information about an angle between the first housing 112 and the second housing 114. The first and second state detection sensors may include, for example, at least one of a gyro sensor, a distance sensor, and a strain sensor.
다양한 실시예들에 따르면, 접힘부(116)는 힌지(미도시) 및 힌지 커버로 구성될 수 있으며, 힌지는 힌지 커버에 의해 가려질 수 있다. 다양한 실시예들에 따르면, 접힘부(116)는 힌지 이외에 다른 기구적인 요소를 포함하는 연결부(또는 연결체)로 구성될 수 있다. According to various embodiments, the folded portion 116 may be composed of a hinge (not shown) and a hinge cover, and the hinge may be covered by the hinge cover. According to various embodiments, the folded portion 116 may be configured as a connecting portion (or connecting body) including other mechanical elements in addition to the hinge.
다양한 실시예들에 따르면, 제1 디스플레이(120) 또는 제2 디스플레이(122)는 터치 입력을 검출할 수 있는 터치 센서(미도시)를 포함할 수 있다, 제1 디스플레이(120) 또는 제2 디스플레이(122)에 포함된 일체형의 터치 스크린으로 구성될 수 있다. 제1 디스플레이(120) 또는 제2 디스플레이(122)가 터치 스크린으로 구성되는 경우, 터치 센서는 디스플레이 위에 배치되거나, 디스플레이 아래에 배치될 수 있다.According to various embodiments, the first display 120 or the second display 122 may include a touch sensor (not shown) capable of detecting a touch input. The first display 120 or the second display It may be configured as an integral touch screen included in (122). When the first display 120 or the second display 122 is configured as a touch screen, the touch sensor may be disposed above or below the display.
다양한 실시예들에 따르면, 전자 장치(101)는 상술한 센서들(예: 제1 센서(130), 제2 센서(132), 및 하나 이상의 부품들(136)에 포함된 센서) 이외에 적어도 하나의 센서를 추가적으로 포함할 수 있다. 추가적으로 포함되는 센서들은, 제1 센서(130), 제2 센서(132), 및 하나 이상의 부품들(136)에 포함된 센서 중 적어도 하나와 지정된 간격을 갖도록 배치될 수 있다According to various embodiments, the electronic device 101 includes at least one other than the above-described sensors (eg, a first sensor 130, a second sensor 132, and a sensor included in one or more components 136 ). It may additionally include a sensor of. The additionally included sensors may be disposed to have a specified distance from at least one of the first sensor 130, the second sensor 132, and the sensors included in the one or more components 136.
도 2a 및 도 2b는 다양한 실시예들에 따른 플렉서블 타입의 전자 장치의 펼쳐진 상태를 도시한 도면이다. 도 2a는 다양한 실시예들에 따른 플렉서블 타입의 전자 장치의 펼쳐진 상태에 대한 전면도이고, 도 2b는 다양한 실시예들에 따른 플렉서블 타입의 전자 장치의 펼쳐진 상태에 대한 후면도이다.2A and 2B are diagrams illustrating an unfolded state of a flexible type electronic device according to various embodiments. 2A is a front view illustrating an unfolded state of a flexible type electronic device according to various embodiments, and FIG. 2B is a rear view illustrating an unfolded state of a flexible type electronic device according to various embodiments.
도 2a를 참조하면, 다양한 실시예들에 따른 전자 장치(201)는, 하우징(210), 제1 디스플레이(220), 및 제2 디스플레이(222)를 포함할 수 있다. 다양한 실시예들에 따르면, 하우징(210)은 제1 면(또는 전면(예: 도 2a의 +Z축 방향을 향하는 면))(231), 및 제1 면(231)과 반대 방향을 향하는 제2 면(또는 후면(예: 도 2b의 +Z축을 향하는 면))(232)을 포함할 수 있다. 다양한 실시예들에 따르면, 하우징(210)은 다양한 구조로 구성된 부자재(미도시)를 더 포함할 수 있다. 예를 들어, 하우징(210)은 제1 면의 좌측 면 또는 우측 면에 배치되는 슬롯(미도시)을 더 포함할 수 있다. 슬롯은 제1 디스플레이(220) 및 제2 디스플레이(222)의 적어도 일부가 인입 또는 인출되도록 구성될 수 있다. 일 실시예에 따르면, 도시되지는 않았으나, 전자 장치(201)는 적어도 하나의 부품들, 예를 들어, 지문 감지 센서, 카메라 센서, 근접 센서, UWB 센서, 심박 센서, 또는 스피커 중 적어도 하나를 더 포함할 수 있다.Referring to FIG. 2A, an electronic device 201 according to various embodiments may include a housing 210, a first display 220, and a second display 222. According to various embodiments, the housing 210 includes a first surface (or a front surface (eg, a surface facing the +Z-axis direction in FIG. 2A )) 231, and a first surface 231 facing a direction opposite to the first surface 231. It may include two surfaces (or a rear surface (eg, a surface facing the +Z axis in FIG. 2B)) 232. According to various embodiments, the housing 210 may further include subsidiary materials (not shown) configured in various structures. For example, the housing 210 may further include a slot (not shown) disposed on the left or right side of the first surface. The slot may be configured such that at least a portion of the first display 220 and the second display 222 is inserted or withdrawn. According to an embodiment, although not shown, the electronic device 201 further includes at least one of at least one component, for example, a fingerprint detection sensor, a camera sensor, a proximity sensor, a UWB sensor, a heart rate sensor, or a speaker. Can include.
다양한 실시예들에 따르면, 제1 디스플레이(220)는 하우징(210)의 제1 면(231)의 적어도 일부 영역을 통해 시각적으로 노출되도록 배치되고, 제2 디스플레이(222)는 하우징(210)의 제2 면(232)의 적어도 일부 영역을 통해 시각적으로 노출되도록 배치될 수 있다. 제1 디스플레이(220) 및 제2 디스플레이(222)는 다양한 형태로 휘어지거나 접힐 수 있는 플렉서블 및/또는 폴더블 디스플레이일 수 있다. 일실시예에 따르면, 제1 디스플레이(220) 및/또는 제2 디스플레이(222)의 적어도 일부는 구부러지거나 휘어진 상태로 하우징(210)의 슬롯에 격납될 수 있다. 다양한 실시예들에 따르면, 제1 디스플레이(220) 또는 제2 디스플레이(222)는 터치 입력을 검출할 수 있는 터치 센서(미도시)를 포함할 수 있다. 제1 디스플레이(220) 또는 제2 디스플레이(222)에 포함된 일체형의 터치 스크린으로 구성될 수 있다. 제1 디스플레이(220) 또는 제2 디스플레이(222)가 터치 스크린으로 구성되는 경우, 터치 센서는 디스플레이 위에 배치되거나, 디스플레이 아래에 배치될 수 있다.According to various embodiments, the first display 220 is disposed to be visually exposed through at least a portion of the first surface 231 of the housing 210, and the second display 222 is It may be arranged to be visually exposed through at least a portion of the second surface 232. The first display 220 and the second display 222 may be flexible and/or foldable displays that can be bent or folded in various forms. According to an embodiment, at least a portion of the first display 220 and/or the second display 222 may be bent or bent and stored in a slot of the housing 210. According to various embodiments, the first display 220 or the second display 222 may include a touch sensor (not shown) capable of detecting a touch input. It may be configured as an integrated touch screen included in the first display 220 or the second display 222. When the first display 220 or the second display 222 is configured as a touch screen, the touch sensor may be disposed above or below the display.
다양한 실시예들에 따르면, 전자 장치(101, 201)는 제1 닫힌(closed) 상태(또는 인 폴딩(in-folding) 상태)가 될 수 있다. 다양한 실시예들에 따르면, 전자 장치(101, 201)가 제1 닫힌 상태인 경우, 제1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152), 또는 제2 디스플레이(222)의 제1 영역(141) 및 제2 영역(142)은 서로 마주보게 되며, 실질적으로 평행한 상태를 이룰 수 있다. 제2 디스플레이(222)의 제1 영역(141)은 접힘부(116)를 기준으로 좌측에 위치한 영역이며, 제2 영역(141)은 접힘부(116)를 기준으로 우측에 위치한 영역일 수 있다. 다양한 실시예들에 따르면, 제1 닫힌 상태는 전자 장치(101, 201)의 전면을 향하는 사용자의 시야(field of view 또는 angle of view) 내에서 제2 디스플레이(122, 222)가 가려지는 상태를 의미할 수 있다. 다양한 실시예들에 따르면, 전자 장치(101, 201)가 제1 닫힌 상태인 경우(예: 완전 접힌 상태) 사용자는 전자 장치(101, 201)의 모든 방향에서 전자 장치(101, 201)의 제2 디스플레이(122, 222)를 볼 수 없으며, 전자 장치(101, 201)의 제1 디스플레이(120, 220) 및/또는 제2 하우징(114)의 제 4면(제2 후면)만 볼 수 있다. 다양한 실시예들에 따르면, 제1 닫힌 상태는 전자 장치(101, 201)를 향하는 사용자의 시야 내에 제1 디스플레이(120, 220)가 포함되고, 제2 디스플레이(122, 222)가 가려지는 상태를 의미할 수 있다. 예를 들어, 전자 장치(101, 201)의 1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152)이 이루는 각도, 또는 제2 디스플레이(222)의 제1 영역(141) 및 제2 영역(142)이 이루는 각도가 제1 지정된 각도 범위(예: 약 0도 ~ 약 15도)에 해당하는 경우, 전자 장치(101, 201)는 제1 닫힌 상태일 수 있다. According to various embodiments, the electronic devices 101 and 201 may be in a first closed state (or in-folding state). According to various embodiments, when the electronic devices 101 and 201 are in the first closed state, the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114, Alternatively, the first region 141 and the second region 142 of the second display 222 face each other, and may be in a substantially parallel state. The first area 141 of the second display 222 may be an area located on the left side of the folded part 116, and the second area 141 may be an area located on the right side of the folded part 116. . According to various embodiments, the first closed state is a state in which the second displays 122 and 222 are covered within the field of view or angle of view of the user facing the front of the electronic devices 101 and 201. It can mean. According to various embodiments, when the electronic devices 101 and 201 are in the first closed state (for example, in a fully folded state), the user can control the electronic devices 101 and 201 in all directions of the electronic devices 101 and 201. 2 The displays 122 and 222 cannot be viewed, and only the first displays 120 and 220 of the electronic devices 101 and 201 and/or the fourth surface (the second rear surface) of the second housing 114 can be viewed. . According to various embodiments, the first closed state is a state in which the first displays 120 and 220 are included in the user's field of view facing the electronic devices 101 and 201 and the second displays 122 and 222 are covered. It can mean. For example, the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a first specified angle range (eg, about 0 degrees to about 15 degrees), the electronic devices 101 and 201 are in a first closed state Can be
다양한 실시예들에 따르면, 전자 장치(101, 201)는 제2 닫힌(closed) 상태(또는 아웃 폴딩(out-folding) 상태)가 될 수 있다. 다양한 실시예들에 따르면, 전자 장치(101, 201)가 제2 닫힌 상태인 경우, 제1 하우징(112)의 제3 면(153)과 제2 하우징(114)의 제4 면(154), 또는 제1 디스플레이(220)의 제1 영역(또는 좌측 영역) 및 제2 영역(또는 우측 영역)은 서로 마주보게 되며, 실질적으로 평행한 상태를 이룰 수 있다. 다양한 실시예들에 따르면, 제2 닫힌 상태는 전자 장치(101, 201)의 후면을 향하는 사용자의 시야(field of view 또는 angle of view) 내에서 제1 디스플레이(120, 220)가 가려지는 상태를 의미할 수 있다. 다양한 실시예들에 따르면, 전자 장치(101, 201)가 제2 닫힌 상태인 경우, 사용자는 전자 장치(101, 201)의 모든 방향에서 전자 장치(101, 201)의 제1 디스플레이(120, 220)를 볼 수 없으며, 전자 장치(101, 201)의 제2 디스플레이(122, 222)만 볼 수 있다. 한편, 전자 장치(101, 201)가 제2 디스플레이(122, 222)를 구비하지 않거나 제2 면(232)의 일부에만 제2 디스플레이(222)가 포함된 경우에는, 전자 장치(101, 201)가 제2 닫힌 상태인 경우, 제2 디스플레이(222)가 포함되지 않은 또는 일부 포함된 제2 면(232)이 사용자의 시야 내에 포함될 수 있다. 다양한 실시예들에 따르면, 제2 닫힌 상태는 전자 장치(101, 201)를 향하는 사용자의 시야 내에 제2 디스플레이(120, 220)가 포함되고, 제1 디스플레이(120, 220)가 가려지는 상태를 의미할 수 있다. 예를 들어, 전자 장치(101, 201)의 1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152)이 이루는 각도, 또는 제2 디스플레이(222)의 제1 영역(141) 및 제2 영역(142)이 이루는 각도가 제2 지정된 각도 범위(예: 약 345도 ~ 약 360도)에 해당하는 경우, 전자 장치(101, 201)는 제2 닫힌 상태일 수 있다. According to various embodiments, the electronic devices 101 and 201 may be in a second closed state (or out-folding state). According to various embodiments, when the electronic devices 101 and 201 are in the second closed state, the third surface 153 of the first housing 112 and the fourth surface 154 of the second housing 114, Alternatively, the first area (or the left area) and the second area (or the right area) of the first display 220 face each other, and may be in a substantially parallel state. According to various embodiments, the second closed state is a state in which the first displays 120 and 220 are covered within the field of view or angle of view of the user facing the rear of the electronic devices 101 and 201. It can mean. According to various embodiments, when the electronic devices 101 and 201 are in the second closed state, the user may display the first displays 120 and 220 of the electronic devices 101 and 201 in all directions of the electronic devices 101 and 201. ) Cannot be viewed, and only the second displays 122 and 222 of the electronic devices 101 and 201 can be viewed. On the other hand, when the electronic devices 101 and 201 do not have the second displays 122 and 222 or the second display 222 is included only in a part of the second surface 232, the electronic devices 101 and 201 When is in the second closed state, the second surface 232 that does not include or partially includes the second display 222 may be included in the user's field of view. According to various embodiments, the second closed state is a state in which the second displays 120 and 220 are included in the user's field of view facing the electronic devices 101 and 201 and the first displays 120 and 220 are covered. It can mean. For example, the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a second specified angle range (eg, about 345 degrees to about 360 degrees), the electronic devices 101 and 201 are in a second closed state. Can be
다양한 실시예들에 따르면, 전자 장치(101, 201)는 접힌(folded in) 상태(또는 부분 접힌 상태, 또는 부분 오픈 상태)가 될 수 있다. 다양한 실시예들에 따르면, 전자 장치(101, 201)가 접힌 상태인 경우, 제1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152) 사이의 각도, 또는 제2 디스플레이(222)의 제1 영역 및 제2 영역 사이의 각도는 지정된 범위 내의 각도를 이룰 수 있다. 일실시예에 따르면, 전자 장치(101, 201)가 접힌 상태인 경우, 전자 장치(101, 201)의 방향에 따라 전자 장치(101, 201)의 전면을 향하는 사용자의 시야 내에(within) 제2 디스플레이(122, 222)의 전체 영역(entire area)이 포함되거나, 제2 디스플레이(122, 222)의 우측 적어도 일부 영역과 제1 디스플레이(120, 220)가 포함되거나, 제2 디스플레이(122, 222)의 좌측 적어도 일부 영역과 제2 하우징(114)의 제4 면(또는 제2 후면)(154)이 포함될 수 있다. 예를 들어, 전자 장치(101, 201)의 1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152)이 이루는 각도, 또는 제2 디스플레이(222)의 제1 영역(141) 및 제2 영역(142)이 이루는 각도가 제3 지정된 각도 범위(예: 약 15도 ~ 약 165도, 및/또는 약 195도 ~ 약 345도)에 해당하는 경우, 전자 장치(101, 201)는 접힌 상태일 수 있다.According to various embodiments, the electronic devices 101 and 201 may be in a folded in state (or a partially folded state, or a partially open state). According to various embodiments, when the electronic devices 101 and 201 are folded, the angle between the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114 Alternatively, an angle between the first area and the second area of the second display 222 may form an angle within a specified range. According to an embodiment, when the electronic devices 101 and 201 are in a folded state, a second within the user's field of view facing the front of the electronic devices 101 and 201 according to the direction of the electronic devices 101 and 201 The entire area of the displays 122 and 222 is included, at least a partial area on the right side of the second displays 122 and 222 and the first displays 120 and 220 are included, or the second displays 122 and 222 ) And a fourth surface (or second rear surface) 154 of the second housing 114 may be included. For example, the angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or of the second display 222 When the angle formed by the first area 141 and the second area 142 falls within a third specified angle range (eg, about 15 degrees to about 165 degrees, and/or about 195 degrees to about 345 degrees), the former Devices 101 and 201 may be in a folded state.
다양한 실시예들에 따르면, 전자 장치(101, 201)는 펼쳐진(folded out) 상태(또는 전체 오픈(full open) 상태)가 될 수 있다. 일실시예에 따르면, 전자 장치(101)가 펼쳐진 상태인 경우, 제1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152), 또는 제2 디스플레이(122, 222)의 제1 영역 및 제2 영역은 실질적으로(substantially) 동일한 평면을 이룰(flushed with) 수 있다. 일실시예에 따르면, 전자 장치(101, 201)가 펼쳐진 상태인 경우, 전자 장치(101, 201)의 전면을 향하는 사용자의 시야(field of view 또는 angle of view) 내에(within) 제2 디스플레이(122, 222)의 전체 영역(entire area)이 포함될 수 있다. 예를 들어, 전자 장치(101, 201)의 제1 하우징(112)의 제1 면(151)과 제2 하우징(114)의 제2 면(152)이 이루는 각도, 또는 제2 디스플레이(222)의 제1 영역(141) 및 제2 영역(142)이 이루는 각도가 제4 지정된 각도 범위(예: 약 165도 ~ 약 195도)에 해당하는 경우, 전자 장치(101, 201)는 펼쳐진 상태일 수 있다.According to various embodiments, the electronic devices 101 and 201 may be in a folded out state (or a full open state). According to an embodiment, when the electronic device 101 is in an unfolded state, the first surface 151 of the first housing 112 and the second surface 152 of the second housing 114, or the second display ( The first region and the second region of 122 and 222 may be substantially flushed with the same plane. According to an embodiment, when the electronic devices 101 and 201 are in an unfolded state, the second display (within) the user's field of view or angle of view facing the front of the electronic devices 101 and 201 The entire area of 122 and 222 may be included. For example, an angle formed by the first surface 151 of the first housing 112 of the electronic devices 101 and 201 and the second surface 152 of the second housing 114, or the second display 222 When the angle formed by the first area 141 and the second area 142 of is within a fourth specified angle range (eg, about 165 degrees to about 195 degrees), the electronic devices 101 and 201 are in an unfolded state. I can.
다양한 실시예들에 따르면, 제2 디스플레이(122, 222)의 폴딩 상태를 판단하는 방법은 다양하게 구성될 수 있다. 제2 디스플레이(122, 222)의 폴딩 상태를 판단하는 방법은 본 발명에 기술한 내용으로 한정되지 않으며 다양한 센서를 통해서 판단할 수 있다. 예를 들어, 제2 디스플레이(122, 222)의 적어도 일부에 적어도 하나의 각도 감지 센서를 포함할 수 있다. 각도 감지 센서는 제2 디스플레이(122, 222)의 적어도 일 측면의 접힘에 따라서 발생하는 각도의 변화를 측정할 수 있다. 제2 디스플레이(122, 222)의 적어도 일부에 적어도 하나의 홀 센서를 포함할 수 있고, 홀 센서로 인해 감지되는 마그네틱 정보에 의해 접힘 또는 폴딩 상태를 판단할 수 있다. According to various embodiments, a method of determining the folding state of the second displays 122 and 222 may be configured in various ways. The method of determining the folding state of the second displays 122 and 222 is not limited to the contents described in the present invention, and may be determined through various sensors. For example, at least one angle sensor may be included in at least a portion of the second displays 122 and 222. The angle detection sensor may measure a change in angle that occurs when at least one side of the second displays 122 and 222 is folded. At least one Hall sensor may be included in at least a portion of the second displays 122 and 222, and a folded or folded state may be determined based on magnetic information detected by the Hall sensor.
도 3은 다양한 실시 예들에 따른, 네트워크 환경(300) 내의 전자 장치(301)의 블록도이다. 도 3의 전자 장치(301)는 도 1a 및 도 1b의 전자 장치(101), 또는 도 2a 및 도 2b의 전자 장치(201)일 수 있다.3 is a block diagram of an electronic device 301 in a network environment 300 according to various embodiments. The electronic device 301 of FIG. 3 may be the electronic device 101 of FIGS. 1A and 1B, or the electronic device 201 of FIGS. 2A and 2B.
도 3을 참고하면, 네트워크 환경(300)에서 전자 장치(301)는 제1 네트워크(398)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(302)와 통신하거나, 또는 네트워크(399)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(304) 또는 서버(308)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(301)는 서버(308)를 통하여 전자 장치(304)와 통신할 수 있다. 일 실시 예에 따르면, 전자 장치(301)는 프로세서(320), 메모리(330), 입력 장치(350), 음향 출력 장치(355), 표시 장치(360), 오디오 모듈(370), 센서 모듈(376), 인터페이스(377), 햅틱 모듈(379), 카메라 모듈(380), 전력 관리 모듈(388), 배터리(389), 통신 모듈(390), 가입자 식별 모듈(396), 또는 안테나 모듈(397)을 포함할 수 있다. 어떤 실시 예에서는, 전자 장치(301)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(360) 또는 카메라 모듈(380))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(376)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(360)(예: 디스플레이)에 임베디드된 채 구현될 수 있다Referring to FIG. 3, in a network environment 300, the electronic device 301 communicates with the electronic device 302 through a first network 398 (eg, a short-range wireless communication network), or a network 399 (eg, a short-range wireless communication network). : It is possible to communicate with the electronic device 304 or the server 308 through a long-distance wireless communication network). According to an embodiment, the electronic device 301 may communicate with the electronic device 304 through the server 308. According to an embodiment, the electronic device 301 includes a processor 320, a memory 330, an input device 350, an audio output device 355, a display device 360, an audio module 370, and a sensor module ( 376), interface 377, haptic module 379, camera module 380, power management module 388, battery 389, communication module 390, subscriber identification module 396, or antenna module 397 ) Can be included. In some embodiments, at least one of these components (for example, the display device 360 or the camera module 380) may be omitted or one or more other components may be added to the electronic device 301. In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 376 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 360 (eg, a display).
프로세서(320)는, 예를 들면, 소프트웨어(예: 프로그램(340))를 실행하여 프로세서(320)에 연결된 전자 장치(301)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시 예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(320)는 다른 구성요소(예: 센서 모듈(376) 또는 통신 모듈(390))로부터 수신된 명령 또는 데이터를 휘발성 메모리(332)에 로드하고, 휘발성 메모리(332)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(334)에 저장할 수 있다. 일 실시 예에 따르면, 프로세서(320)는 메인 프로세서(321)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(323)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(323)는 메인 프로세서(321)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(323)는 메인 프로세서(321)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 320, for example, executes software (eg, a program 340) to perform at least one other component (eg, a hardware or software component) of the electronic device 301 connected to the processor 320. It can be controlled and can perform various data processing or operations. According to an embodiment, as at least part of data processing or operation, the processor 320 may transfer commands or data received from other components (eg, the sensor module 376 or the communication module 390) to the volatile memory 332. The command or data stored in the volatile memory 332 may be processed, and result data may be stored in the nonvolatile memory 334. According to an embodiment, the processor 320 includes a main processor 321 (eg, a central processing unit or an application processor), and a secondary processor 323 that can be operated independently or together with the main processor 321 (eg, a graphics processing unit, an image signal processor). , A sensor hub processor, or a communication processor). Additionally or alternatively, the coprocessor 323 may be set to use less power than the main processor 321 or to be specialized for a designated function. The secondary processor 323 may be implemented separately from the main processor 321 or as a part thereof.
보조 프로세서(323)는, 예를 들면, 메인 프로세서(321)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(321)를 대신하여, 또는 메인 프로세서(321)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(321)와 함께, 전자 장치(301)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(360), 센서 모듈(376), 또는 통신 모듈(390))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시 예에 따르면, 보조 프로세서(323)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(380) 또는 통신 모듈(390))의 일부로서 구현될 수 있다. The coprocessor 323 is, for example, in place of the main processor 321 while the main processor 321 is in an inactive (eg, sleep) state, or the main processor 321 is active (eg, executes an application). ), together with the main processor 321 in the state, at least one of the components of the electronic device 301 (for example, the display device 360, the sensor module 376, or the communication module 390) It is possible to control at least some of the functions or states associated with it. According to an embodiment, the coprocessor 323 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, a camera module 380 or a communication module 390). have.
메모리(330)는, 전자 장치(301)의 적어도 하나의 구성요소(예: 프로세서(320) 또는 센서모듈(376))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(340)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(330)는, 휘발성 메모리(332) 또는 비휘발성 메모리(334)를 포함할 수 있다. The memory 330 may store various types of data used by at least one component of the electronic device 301 (for example, the processor 320 or the sensor module 376). The data may include, for example, software (eg, the program 340) and input data or output data for commands related thereto. The memory 330 may include a volatile memory 332 or a nonvolatile memory 334.
프로그램(340)은 메모리(330)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(342), 미들 웨어(344) 또는 어플리케이션(346)을 포함할 수 있다. The program 340 may be stored as software in the memory 330, and may include, for example, an operating system 342, middleware 344, or an application 346.
입력 장치(350)는, 전자 장치(301)의 구성요소(예: 프로세서(320))에 사용될 명령 또는 데이터를 전자 장치(301)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(350)는, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input device 350 may receive commands or data to be used for components of the electronic device 301 (eg, the processor 320) from outside the electronic device 301 (eg, a user). The input device 350 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).
음향 출력 장치(355)는 음향 신호를 전자 장치(301)의 외부로 출력할 수 있다. 음향 출력 장치(355)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시 예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output device 355 may output an sound signal to the outside of the electronic device 301. The sound output device 355 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to an embodiment, the receiver may be implemented separately from or as a part of the speaker.
표시 장치(360)는 전자 장치(301)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(360)는, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시 예에 따르면, 표시 장치(360)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다. The display device 360 may visually provide information to the outside of the electronic device 301 (eg, a user). The display device 360 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the device. According to an embodiment, the display device 360 may include a touch circuitry set to sense a touch, or a sensor circuit (eg, a pressure sensor) set to measure the strength of a force generated by the touch. have.
오디오 모듈(370)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(370)은, 입력 장치(350)를 통해 소리를 획득하거나, 음향 출력 장치(355), 또는 전자 장치(301)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(302))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 370 may convert sound into an electrical signal, or conversely, may convert an electrical signal into sound. According to an embodiment, the audio module 370 acquires sound through the input device 350, or an external electronic device (eg: Sound may be output through the electronic device 302 (for example, a speaker or headphones).
센서 모듈(376)은 전자 장치(301)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시 예에 따르면, 센서 모듈(376)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 376 detects an operating state (eg, power or temperature) of the electronic device 301, or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the detected state. can do. According to an embodiment, the sensor module 376 includes, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
인터페이스(377)는 전자 장치(301)가 외부 전자 장치(예: 전자 장치(302))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시 예에 따르면, 인터페이스(377)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 377 may support one or more specified protocols that may be used to connect the electronic device 301 directly or wirelessly to an external electronic device (eg, the electronic device 302 ). According to an embodiment, the interface 377 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
연결 단자(378)는, 그를 통해서 전자 장치(301)가 외부 전자 장치(예: 전자 장치(302))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시 예에 따르면, 연결 단자(378)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 378 may include a connector through which the electronic device 301 can be physically connected to an external electronic device (eg, the electronic device 302 ). According to an embodiment, the connection terminal 378 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
햅틱 모듈(379)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시 예에 따르면, 햅틱 모듈(379)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 379 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that a user can perceive through tactile or motor sensations. According to an embodiment, the haptic module 379 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
카메라 모듈(380)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시 예에 따르면, 카메라 모듈(380)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 380 may capture a still image and a video. According to an embodiment, the camera module 380 may include one or more lenses, image sensors, image signal processors, or flashes.
전력 관리 모듈(388)은 전자 장치(301)에 공급되는 전력을 관리할 수 있다. 일 실시 예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 388 may manage power supplied to the electronic device 301. According to an embodiment, the power management module 388 may be implemented as at least a part of, for example, a power management integrated circuit (PMIC).
배터리(389)는 전자 장치(301)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시 예에 따르면, 배터리(389)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 389 may supply power to at least one component of the electronic device 301. According to an embodiment, the battery 389 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
통신 모듈(390)은 전자 장치(301)와 외부 전자 장치(예: 전자 장치(302), 전자 장치(304), 또는 서버(308))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(390)은 프로세서(320)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시 예에 따르면, 통신 모듈(390)은 무선 통신 모듈(392)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(394)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제1 네트워크(398)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 네트워크(399)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치(304)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(392)은 가입자 식별 모듈(396)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제1 네트워크(398) 또는 네트워크(399)와 같은 통신 네트워크 내에서 전자 장치(301)를 확인 및 인증할 수 있다. The communication module 390 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 301 and an external electronic device (eg, electronic device 302, electronic device 304, or server 308). It is possible to support establishment and communication through the established communication channel. The communication module 390 operates independently of the processor 320 (eg, an application processor) and may include one or more communication processors supporting direct (eg, wired) communication or wireless communication. According to an embodiment, the communication module 390 is a wireless communication module 392 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 394 (eg : A local area network (LAN) communication module, or a power line communication module) may be included. Among these communication modules, the corresponding communication module is a first network 398 (for example, a short-range communication network such as Bluetooth, WiFi direct or IrDA (infrared data association)) or a network 399 (for example, a cellular network, the Internet, or a computer network). It is possible to communicate with the external electronic device 304 through a (for example, a long-distance communication network such as a LAN or WAN). These various types of communication modules may be integrated into a single component (eg, a single chip), or may be implemented as a plurality of separate components (eg, multiple chips). The wireless communication module 392 is an electronic device within a communication network such as the first network 398 or the network 399 using subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 396. (301) can be checked and authenticated.
안테나 모듈(397)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시 예에 따르면, 안테나 모듈(397)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일 실시 예에 따르면, 안테나 모듈(397)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제1 네트워크(398) 또는 네트워크(399)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(390)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(390)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시 예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(397)의 일부로 형성될 수 있다.The antenna module 397 may transmit a signal or power to the outside (eg, an external electronic device) or receive from the outside. According to an embodiment, the antenna module 397 may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 397 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 398 or the network 399 may be selected from the plurality of antennas by the communication module 390, for example. I can. The signal or power may be transmitted or received between the communication module 390 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, RFIC) other than the radiator may be additionally formed as part of the antenna module 397.
상기 구성요소들 중 적어도 일부는 주변 장치들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method (e.g., bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI))) between peripheral devices and signals ( E.g. commands or data) can be exchanged with each other.
일 실시 예에 따르면, 명령 또는 데이터는 네트워크(399)에 연결된 서버(308)를 통해서 전자 장치(301)와 외부의 전자 장치(304) 간에 송신 또는 수신될 수 있다. 외부 전자 장치(302, 304) 각각은 전자 장치(301)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시 예에 따르면, 전자 장치(301)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(302, 304, 또는 308) 중 하나 이상의 외부 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(301)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(301)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(301)로 전달할 수 있다. 전자 장치(301)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. According to an embodiment, commands or data may be transmitted or received between the electronic device 301 and the external electronic device 304 through the server 308 connected to the network 399. Each of the external electronic devices 302 and 304 may be the same or different types of devices as the electronic device 301. According to an embodiment, all or part of the operations executed by the electronic device 301 may be executed by one or more of the external electronic devices 302, 304, or 308. For example, when the electronic device 301 needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device 301 In addition or in addition, it is possible to request one or more external electronic devices to perform the function or at least part of the service. One or more external electronic devices receiving the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 301. The electronic device 301 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, or client-server computing technology may be used.
다양한 실시예들에 따르면, 도 3의 일부 구성 요소들은 도 1a, 도 1b, 도 2a, 또는 도 2b에 도시된 적어도 하나의 구성 요소를 포함할 수 있다. 일실시예에 따르면, 표시 장치(360)는 도 1b의 제1 디스플레이(120), 도 1a의 제2 디스플레이(122), 도 2a의 제1 디스플레이(220), 또는 도 2b의 제2 디스플레이(222) 중 적어도 하나를 포함할 수 있다. 일실시예에 따르면, 센서 모듈(376)은, 도 1a 및 도 1b의 각도 감지 센서(160)를 포함할 수 있다. 일실시예에 따르면, 카메라 모듈(380)은, 도 1a의 제2 센서(132), 또는 도 1b의 제1 센서(130) 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에 따르면, 프로세서(320)는 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 이벤트를 감지할 수 있다. 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 이벤트는, 전자 장치(301)의 폴딩 상태 변화, 지정된 사용자 입력(예: 터치 입력, 드래그 입력, 제스처 입력), 멀티 윈도우 사용(또는 실행), 또는 적어도 하나의 외부 오디오 페어(pair) 장치로부터의 수신된 신호 중 적어도 하나에 기초하여 감지할 수 있다.According to various embodiments, some of the components of FIG. 3 may include at least one component of FIG. 1A, 1B, 2A, or 2B. According to an embodiment, the display device 360 includes the first display 120 of FIG. 1B, the second display 122 of FIG. 1A, the first display 220 of FIG. 2A, or the second display of FIG. 2B. 222). According to an embodiment, the sensor module 376 may include the angle detection sensor 160 of FIGS. 1A and 1B. According to an embodiment, the camera module 380 may include at least one of the second sensor 132 of FIG. 1A or the first sensor 130 of FIG. 1B. According to various embodiments, the processor 320 may detect an event for outputting audio data of a plurality of applications. Events for outputting audio data of a plurality of applications include a change in the folding state of the electronic device 301, a designated user input (eg, touch input, drag input, gesture input), use (or execution) of a multi-window, or at least one It may be detected based on at least one of the signals received from an external audio pair of the device.
다양한 실시예들에 따르면, 프로세서(320)는 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 이벤트가 감지된 것에 응답하여, 근거리 무선 통신 모듈(예: 무선 통신 모듈(392))을 통해 연결된 외부 오디오 페어 장치를 확인할 수 있다. 예를 들어, 프로세서(320)는 근거리 무선 통신 모듈을 통해, 하나의 외부 오디오 페어 장치가 연결된 상태인지, 또는 복수 개의 외부 오디오 페어 장치가 연결된 상태인지 여부를 결정할 수 있다. 일실시예에 따르면, 외부 오디오 페어 장치는, 제1 장치(또는 마스터 장치, 우측 장치) 및 제2 장치(또는 슬레이브 장치, 좌측 장치)를 포함할 수 있다. According to various embodiments, the processor 320 is an external audio pair connected through a short-range wireless communication module (eg, wireless communication module 392) in response to detecting an event for outputting audio data of a plurality of applications. You can check the device. For example, the processor 320 may determine whether one external audio pair device is connected or a plurality of external audio pair devices are connected through the short-range wireless communication module. According to an embodiment, the external audio pair device may include a first device (or a master device, a right device) and a second device (or a slave device, a left device).
다양한 실시예들에 따르면, 프로세서(320)는 상기 근거리 통신 모듈(392)을 통해 제1 외부 오디오 페어 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여, 상기 제1 외부 오디오 페어 장치로 전송하도록 상기 근거리 무선 통신 모듈(392)을 제어할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하고, 인코딩된 데이터를 제1 외부 오디오 페어 장치의 제1 장치와 제2 장치 각각으로 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하고, 인코딩된 데이터를 제1 외부 오디오 페어 장치 중 제1 장치로 전송함으로써, 제1 장치와 제2 장치가 인코딩된 데이터를 수신하도록 할 수 있다. 예컨대, 프로세서(320)는 제1 장치의 주소 정보(예: MAC(media access control) address)를 이용하여 인코딩된 데이터를 전송할 수 있다. 이때, 제2 장치는 미리 획득된 제1 장치의 주소 정보를 이용하여, 전자 장치(301)에서 제1 장치로 전송되는 인코딩된 데이터를 청취할 수 있다. 예를 들어, 제2 장치는 스니핑 기법에 따라 전자 장치(301)에서 제1 장치로 전송되는 인코딩 데이터를 획득하고, 획득된 인코딩 데이터에서 제2 장치에 대응되는 어플리케이션의 오디오 데이터를 추출할 수 있다. According to various embodiments, when a first external audio pair device is connected through the short-range communication module 392, the processor 320 encodes audio data of a first application and audio data of a second application together, and the The short-range wireless communication module 392 may be controlled to transmit to a first external audio pair device. According to an embodiment, the processor 320 encodes audio data of a first application and audio data of a second application together, and transmits the encoded data to each of the first and second devices of the first external audio pair device. I can. According to an embodiment, the processor 320 encodes the audio data of the first application and the audio data of the second application together, and transmits the encoded data to a first device among the first external audio pair devices. And a second device to receive the encoded data. For example, the processor 320 may transmit encoded data using address information (eg, a media access control (MAC) address) of the first device. In this case, the second device may listen to encoded data transmitted from the electronic device 301 to the first device by using the address information of the first device obtained in advance. For example, the second device may obtain encoded data transmitted from the electronic device 301 to the first device according to a sniffing technique, and extract audio data of an application corresponding to the second device from the obtained encoded data. .
다양한 실시예들에 따르면, 프로세서(320)는 상기 근거리 통신 모듈(392)을 통해 상기 제1 외부 오디오 페어 장치 및 제2 외부 오디오 페어 장치가 연결된 경우, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 각각 인코딩하여, 상기 제1 외부 오디오 페어 장치와 상기 제2 외부 오디오 페어 장치 각각으로 전송하도록 상기 근거리 무선 통신 모듈(392)을 제어할 수 있다. 일실시예에 따르면, 전자 장치(301)에 복수 개의 근거리 무선 통신 모듈이 포함된 경우, 프로세서(320)는 복수 개의 근거리 무선 통신 모듈 중 제1 근거리 무선 통신 모듈을 이용하여, 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치로 전송하고, 제2 근거리 무선 통신 모듈을 이용하여 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치로 전송할 수 있다. 일실시예에 따르면, 전자 장치(301)에 하나의 근거리 통신 모듈이 포함된 경우, 프로세서(320)는 근거리 무선 통신 모듈에 의해 지원되는 제1 프로토콜을 이용하여 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치로 전송하고, 근거리 무선 통신 모듈에 의해 지원되는 제2 프로토콜을 이용하여 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치로 전송할 수 있다. 제1 프로토콜, 및/또는 제2 프로토콜은 A2DP(advanced audio distribution profile), 또는 HFP(hands-free profile) 중 적어도 하나를 포함할 수 있다.According to various embodiments, when the first external audio pair device and the second external audio pair device are connected through the short-range communication module 392, the processor 320 may perform audio data of the first application and the second The short-range wireless communication module 392 may be controlled to encode audio data of an application and transmit them to each of the first external audio pair device and the second external audio pair device. According to an embodiment, when a plurality of short-range wireless communication modules are included in the electronic device 301, the processor 320 uses the first short-range wireless communication module among the plurality of short-range wireless communication modules to provide audio of the first application. Data may be transmitted to the first external audio pair device, and audio data of the second application may be transmitted to the second external audio pair device using a second short-range wireless communication module. According to an embodiment, when one short-range communication module is included in the electronic device 301, the processor 320 first transmits audio data of the first application using a first protocol supported by the short-range wireless communication module. The audio data of the second application may be transmitted to the external audio pair device and transmitted to the second external audio pair device by using a second protocol supported by the short-range wireless communication module. The first protocol and/or the second protocol may include at least one of an advanced audio distribution profile (A2DP) or a hands-free profile (HFP).
다양한 실시예들에 따르면, 프로세서(320)는 복수의 어플리케이션들의 정보, 전자 장치(301)에 연결된 외부 오디오 페어 장치의 정보, 또는 사용자 입력 중 적어도 하나에 기초하여, 복수의 어플리케이션들 각각의 오디오 데이터 출력 장치를 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 적어도 하나의 외부 오디오 페어 장치가 전자 장치(301)에 연결된 시점, 적어도 하나의 외부 오디오 페어 장치의 우선순위, 전자 장치(301)를 기준으로 적어도 하나의 외부 오디오 페어 장치가 위치한 방향, 복수의 어플리케이션들 각각의 실행 시작 시점(또는 실행 순서), 복수의 어플리케이션들 각각의 우선순위, 복수의 어플리케이션들 각각이 표시되는 디스플레이의 영역, 또는 사용자 입력 중 적어도 하나에 기초하여, 복수의 어플리케이션들 각각의 오디오 데이터 출력 장치를 결정할 수 있다. 예를 들어, 프로세서(320)는 복수의 어플리케이션들 중에서 제2 디스플레이(122, 222)의 제1 영역에 표시되는 어플리케이션의 오디오 데이터 출력 장치를, 적어도 하나의 외부 오디오 페어 장치 중에서 제1 영역에 대응되는 방향에 위치한 장치(예: 제1 외부 오디오 페어 장치, 또는 제1 외부 오디오 페어 장치의 제1 장치)로 결정하고, 복수의 어플리케이션들 중에서 제2 디스플레이(122, 222)의 제2 영역에 표시되는 어플리케이션의 오디오 데이터 출력 장치를, 적어도 하나의 외부 오디오 페어 장치 중에서 제2 영역에 대응되는 방향에 위치한 장치(예: 제2 외부 오디오 페어 장치, 또는 제1 외부 오디오 페어 장치의 제2 장치)로 결정할 수 있다. 다른 예로, 프로세서(320)는 복수의 어플리케이션들 각각의 오디오 데이터 출력 장치에 대한 선택을 요구하는 사용자 인터페이스(예: 팝업 창)를 제공하고, 사용자 입력에 기초하여 복수의 어플리케이션들 각각의 오디오 데이터 출력 장치를 결정할 수 있다. 오디오 데이터 출력 장치의 선택을 요구하는 사용자 인터페이스는, 전자 장치(301)에 근거리 통신 모듈을 통해 연결된 외부 오디오 페어 장치 목록을 포함할 수 있다. According to various embodiments, the processor 320 is based on at least one of information on a plurality of applications, information on an external audio pair device connected to the electronic device 301, or a user input, based on the audio data of each of the plurality of applications. The output device can be determined. According to an embodiment, the processor 320 includes at least one external audio pair device based on a time point when at least one external audio pair device is connected to the electronic device 301, the priority of the at least one external audio pair device, and the electronic device 301. At least one of the direction in which the external audio pair device is located, the execution start time (or execution order) of each of the plurality of applications, the priority of each of the plurality of applications, the area of the display where each of the plurality of applications is displayed, or a user input Based on, an audio data output device of each of a plurality of applications may be determined. For example, the processor 320 corresponds to an audio data output device of an application displayed in the first area of the second display 122, 222 among a plurality of applications, and corresponds to a first area among at least one external audio pair device. It is determined as a device located in the direction (eg, a first external audio pair device or a first device of a first external audio pair device), and is displayed in the second area of the second display 122 and 222 among a plurality of applications. The audio data output device of the application to be output to a device (eg, a second external audio pair device or a second device of a first external audio pair device) located in a direction corresponding to a second area among at least one external audio pair device. You can decide. As another example, the processor 320 provides a user interface (eg, a pop-up window) requesting selection of an audio data output device of each of a plurality of applications, and outputs audio data of each of a plurality of applications based on a user input. The device can be determined. The user interface for requesting selection of an audio data output device may include a list of external audio pair devices connected to the electronic device 301 through a short-range communication module.
다양한 실시예들에 따르면, 프로세서(320)는 복수의 어플리케이션들 각각의 오디오 데이터 출력 장치에 대한 정보를 표시 장치(360)에 표시할 수 있다. 예를 들어, 프로세서(320)는 제1 어플리케이션의 실행 화면이 표시되고 있는 제2 디스플레이(122, 222)의 제1 영역 중 적어도 일부에 제1 어플리케이션의 오디오 데이터의 출력 장치 정보를 표시하고, 제2 어플리케이션의 실행 화면이 표시되고 있는 제2 디스플레이(122, 222)의 제2 영역 중 적어도 일부에 제2 어플리케이션의 오디오 데이터의 출력 장치 정보를 표시할 수 있다. 출력 장치 정보는, 외부 오디오 페어 장치의 식별 정보, 외부 오디오 페어 장치의 명칭, 또는 외부 오디오 페어 장치에 대응되는 심볼(또는 아이콘) 정보 중 적어도 하나를 포함할 수 있다. 예를 들어, 제1 어플리케이션의 오디오 데이터의 출력 장치가 제1 외부 오디오 페어 장치인 경우, 출력 장치 정보는, 제1 외부 오디오 페어 장치의 식별 정보, 명칭, 또는 심볼 정보 중 적어도 하나를 포함할 수 있다. 다른 예로, 제1 어플리케이션의 오디오 데이터의 출력 장치가 제1 외부 오디오 페어 장치 중 제1 장치인 경우, 출력 장치 정보는, 제1 외부 오디오 페어 장치 중 제1 장치의 식별 정보, 제1 장치의 명칭, 또는 심볼 정보 중 적어도 하나를 포함할 수 있다. According to various embodiments, the processor 320 may display information on an audio data output device of each of a plurality of applications on the display device 360. For example, the processor 320 may display the output device information of the audio data of the first application in at least a part of the first area of the second display 122, 222 on which the execution screen of the first application is displayed, and 2 The output device information of the audio data of the second application may be displayed on at least a part of the second area of the second displays 122 and 222 on which the execution screen of the application is displayed. The output device information may include at least one of identification information of an external audio pair device, a name of an external audio pair device, or symbol (or icon) information corresponding to the external audio pair device. For example, when the output device of audio data of the first application is a first external audio pair device, the output device information may include at least one of identification information, name, or symbol information of the first external audio pair device. have. As another example, when the output device of the audio data of the first application is the first device among the first external audio pair devices, the output device information is identification information of the first device among the first external audio pair devices, the name of the first device , Or symbol information.
다양한 실시예들에 따르면, 프로세서(320)는 전자 장치(301)의 방향 전환 감지 시, 복수의 어플리케이션들의 오디오 데이터 출력 장치를 전환할 수 있다. 예를 들어, 프로세서(320)는 전자 장치(301)의 제2 디스플레이(122, 222)의 제1 영역이 제1 방향을 향하고 제2 디스플레이(122, 222)의 제2 영역이 제1 방향과 다른 제2 방향을 향하는 상태에서, 제1 영역이 제2 방향을 향하고 제2 영역이 제1 방향을 향하도록 전자 장치(301)의 방향이 전환된 경우, 프로세서(320)는 복수의 어플리케이션들의 오디오 데이터 출력 장치를 전환할 수 있다. 예컨대, 프로세서(320)는 제1 어플리케이션의 오디오 데이터 출력 장치가 제1 외부 오디오 페어 장치의 제1 장치이고, 제2 어플리케이션의 오디오 데이터 출력 장치가 제1 외부 오디오 페어 장치의 제2 장치인 상태에서, 전자 장치(301)의 방향 전환이 감지된 경우, 제1 어플리케이션의 오디오 데이터 출력 장치를 제1 외부 오디오 페어 장치의 제2 장치로 변경하고, 제2 어플리케이션의 오디오 데이터 출력 장치를 제1 외부 오디오 페어 장치의 제1 장치로 변경할 수 있다.According to various embodiments, the processor 320 may switch audio data output devices of a plurality of applications when detecting the direction change of the electronic device 301. For example, the processor 320 may determine that the first area of the second display 122 and 222 of the electronic device 301 faces the first direction, and the second area of the second display 122 and 222 faces the first direction. When the direction of the electronic device 301 is changed so that the first region faces the second direction and the second region faces the first direction in a state facing the other second direction, the processor 320 The data output device can be switched. For example, in a state in which the audio data output device of the first application is the first device of the first external audio pair device, and the audio data output device of the second application is the second device of the first external audio pair device, , When the direction change of the electronic device 301 is detected, the audio data output device of the first application is changed to the second device of the first external audio pair device, and the audio data output device of the second application is changed to the first external audio device. It can be changed to the first device of the pair device.
다양한 실시예들에 따르면, 프로세서(320)는 전자 장치(301)에 연결된 외부 오디오 페어 장치 중 어느 하나의 장치로부터 싱글 오디오 데이터 전송 요청 신호, 또는 멀티 오디오 데이터 전송 요청 신호를 수신하고, 수신된 신호에 따라 하나의 어플리케이션의 오디오 데이터를 전송하거나 복수의 어플리케이션의 오디오 데이터를 전송할 수 있다. 일실시예에 따르면, 싱글 오디오 데이터는, 하나의 어플리케이션의 오디오 데이터를 포함할 수 있다. 멀티 오디오 데이터는, 복수의 어플리케이션들의 오디오 데이터를 포함할 수 있다. 예를 들어, 프로세서(320)는 제1 및 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여 전자 장치(301)에 연결된 제1 외부 오디오 페어 장치로 전송하는 중에 제1 외부 오디오 페어 장치 중 제1 장치로부터 싱글 오디오 데이터 전송 요청 신호를 수신할 수 있다. 프로세서(320)는 싱글 오디오 데이터 전송 요청 신호에 따라, 제1 및 제2 어플리케이션 중 제1 장치에 대응되는 어플리케이션의 오디오 데이터만을 인코딩하여 제1 장치로 전송할 수 있다. 프로세서(320)는 제1 장치에 대응되는 어플리케이션의 오디오 데이터만을 인코딩하여 제1 장치로 전송하는 중에 제1 장치로부터 멀티 오디오 데이터 전송 요청 신호를 수신하고, 수신된 멀티 오디오 데이터 전송 요청 신호에 따라 제1 및 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여 제1 장치로 전송할 수 있다. According to various embodiments, the processor 320 receives a single audio data transmission request signal or a multi-audio data transmission request signal from any one of the external audio pair devices connected to the electronic device 301, and receives the received signal. Accordingly, audio data of one application may be transmitted or audio data of a plurality of applications may be transmitted. According to an embodiment, single audio data may include audio data of one application. The multi-audio data may include audio data of a plurality of applications. For example, the processor 320 encodes the audio data of the first and second applications together and transmits the encoded audio data to the first external audio pair device connected to the electronic device 301 from the first device among the first external audio pair devices. A single audio data transmission request signal can be received. The processor 320 may encode only audio data of an application corresponding to the first device among the first and second applications according to the single audio data transmission request signal and transmit the encoded audio data to the first device. The processor 320 receives the multi-audio data transmission request signal from the first device while encoding only the audio data of the application corresponding to the first device and transmits it to the first device. Audio data of the first and second applications may be encoded together and transmitted to the first device.
다양한 실시예들에 따르면, 프로세서(320)는 전자 장치(301)에 적어도 하나의 외부 오디오 페어 장치와 적어도 하나의 다른 외부 출력 장치(예: 외부 스피커)가 연결된 경우, 적어도 하나의 외부 오디오 페어 장치의 성능 정보, 적어도 하나의 다른 외부 출력 장치의 성능 정보, 또는 적어도 하나의 다른 외부 출력 장치의 개수 중 적어도 하나에 기초하여, 적어도 하나의 외부 오디오 페어 장치와 적어도 하나의 다른 외부 출력 장치를 이용하여 복수의 어플리케이션들의 오디오 데이터가 출력되도록 제어할 수 있다. 예를 들어, 프로세서(320)는 제1 외부 오디오 페어 장치를 통해 제1 어플리케이션의 오디오 데이터가 출력되고, 제1 외부 스피커를 통해 제2 어플리케이션의 오디오 데이터가 출력되도록 제어할 수 있다. According to various embodiments, when at least one external audio pair device and at least one other external output device (eg, an external speaker) are connected to the electronic device 301, the processor 320 Based on at least one of the performance information of, at least one other external output device, or the number of at least one other external output device, using at least one external audio pair device and at least one other external output device It is possible to control audio data of a plurality of applications to be output. For example, the processor 320 may control audio data of a first application to be output through a first external audio pair device and audio data of a second application through a first external speaker.
다양한 실시예들에 따르면, 프로세서(320)는 전자 장치(301)에 연결된 외부 오디오 페어 장치의 방향을 결정할 수 있다. 예를 들어, 프로세서(320)는 전자 장치(301)를 기준으로 외부 오디오 페어 장치가 위치한 방향 정보를 결정할 수 있다. 외부 오디오 페어 장치가 위치한 방향 정보는, 외부 오디오 페어 장치로부터 신호가 수신되는 방향, 또는 외부 오디오 페어 장치로부터 수신되는 위치 정보 중 적어도 하나에 기초하여 결정될 수 있다. 외부 오디오 페어 장치로부터 신호가 수신되는 방향은, 빔포밍 방식을 이용하여 결정할 수 있다.According to various embodiments, the processor 320 may determine a direction of an external audio pair device connected to the electronic device 301. For example, the processor 320 may determine direction information in which the external audio pair device is located based on the electronic device 301. The direction information in which the external audio pair device is located may be determined based on at least one of a direction in which a signal is received from the external audio pair device or location information received from the external audio pair device. A direction in which a signal is received from an external audio pair device may be determined using a beamforming method.
다양한 실시예들에 따르면, 오디오 모듈(370)은, MS(mid-side stereo) 방식을 이용하여 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩할 수 있다. 예를 들어, MS 방식은 하기 수학식 1과 같이 표현될 수 있다.According to various embodiments, the audio module 370 may encode audio data of a first application and audio data of a second application together using a mid-side stereo (MS) method. For example, the MS scheme can be expressed as Equation 1 below.
Figure PCTKR2020014117-appb-I000001
Figure PCTKR2020014117-appb-I000001
여기에서, S1은 제1 어플리케이션의 오디오 데이터를 의미하고, S2는 제2 어플리케이션의 오디오 데이터를 의미할 수 있다. 오디오 모듈(370)은 수학식 1과 같이 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩할 수 있다.Here, S1 may refer to audio data of a first application, and S2 may refer to audio data of a second application. The audio module 370 may encode the audio data of the first application and the audio data of the second application together as shown in Equation (1).
도 4는 다양한 실시예들에 따른, 외부 오디오 장치의 블럭도(400)이다. 도 4의 외부 오디오 장치(401)는 도 3에서 개시된 외부 오디오 페어 장치의 제1 장치, 및/또는 제2 장치일 수 있다.4 is a block diagram 400 of an external audio device according to various embodiments. The external audio device 401 of FIG. 4 may be a first device and/or a second device of the external audio pair device disclosed in FIG. 3.
도 4를 참조하면, 외부 오디오 장치(401)는 버스(410), 프로세서(420), 메모리(430), 입력 장치(440), 통신 모듈(450), 및 오디오 모듈(460)을 포함할 수 있다. 일실시예에 따르면, 외부 오디오 장치(401)는, 구성요소들 중 적어도 하나를 생략하거나 다른 구성요소를 추가적으로 구비할 수 있다. Referring to FIG. 4, the external audio device 401 may include a bus 410, a processor 420, a memory 430, an input device 440, a communication module 450, and an audio module 460. have. According to an embodiment, the external audio device 401 may omit at least one of the constituent elements or may additionally include other constituent elements.
다양한 실시예들에 따르면, 버스(410)는 예를 들면, 구성요소들(420 내지 450)을 서로 연결하고, 구성요소들 간의 통신(예: 제어 메시지 및/또는 데이터)을 전달하는 회로를 포함할 수 있다.According to various embodiments, the bus 410 includes, for example, a circuit that connects the components 420 to 450 to each other and transfers communication (eg, control messages and/or data) between the components. can do.
다양한 실시예들에 따르면, 프로세서(420)는, 예를 들면, 소프트웨어(예: 프로그램)를 구동하여 프로세서(420)에 연결된 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 및 연산을 수행할 수 있다. According to various embodiments, the processor 420 may control at least one other component (eg, hardware or software component) connected to the processor 420 by driving software (eg, a program). And perform various data processing and operations.
다양한 실시예들에 따르면, 프로세서(420)는 입력 장치(440)를 통해 근거리 무선 통신 연결 이벤트를 감지하고, 통신 모듈(450)을 제어하여 전자 장치(예: 전자 장치(301))와 근거리 무선 통신 연결을 수행할 수 있다. According to various embodiments, the processor 420 detects a short-range wireless communication connection event through the input device 440 and controls the communication module 450 to communicate with an electronic device (for example, the electronic device 301). Communication connection can be made.
다양한 실시예들에 따르면, 프로세서(420)는 전자 장치(301)로부터 오디오 데이터를 수신하고, 수신된 오디오 데이터가 디코딩된 후 출력되도록 오디오 모듈(460)을 제어할 수 있다. 일실시예에 따르면, 프로세서(420)는 전자 장치(301)에서 외부 오디오 장치(401)로 전송되는 오디오 데이터를 수신하거나, 전자 장치(301)에서 외부 오디오 장치(401)의 페어 장치로 전송되는 오디오 데이터를 수신할 수 있다. 예를 들어, 프로세서(420)는 메모리(430)에 기 저장된 페어 장치의 정보를 이용하여 전자 장치(301)에서 페어 장치로 전송되는 오디오 데이터를 수신할 수 있다. 외부 오디오 장치(401)의 페어 장치는, 외부 오디오 장치(401)가 전자 장치(301)에 연결될 경우, 전자 장치(301)에 함께 연결되어, 외부 오디오 장치(401)와 적어도 하나의 연계 동작을 수행할 수 있는 장치일 수 있다. 예를 들어, 외부 오디오 장치(401)는 외부 오디오 페어 장치 중 제1 장치(예: 이어버드의 우측 장치)일 수 있고, 페어 장치는 외부 오디오 페어 장치 중 제2 장치(예: 이어버드의 좌측 장치)일 수 있다. According to various embodiments, the processor 420 may receive audio data from the electronic device 301 and control the audio module 460 so that the received audio data is decoded and then output. According to an embodiment, the processor 420 receives audio data transmitted from the electronic device 301 to the external audio device 401, or is transmitted from the electronic device 301 to a pair of the external audio device 401. Can receive audio data. For example, the processor 420 may receive audio data transmitted from the electronic device 301 to the pair device by using information on the pair device previously stored in the memory 430. When the external audio device 401 is connected to the electronic device 301, the pair device of the external audio device 401 is connected to the electronic device 301 together to perform at least one cooperative operation with the external audio device 401. It may be a device capable of performing. For example, the external audio device 401 may be a first device (eg, a device on the right side of an earbud) among external audio pair devices, and the pair device is a second device (eg, a device on the left side of the earbud) among external audio pair devices. Device).
일실시예에 따르면, 프로세서(420)는 전자 장치(301)로부터 수신된 오디오 데이터를 디코딩하여, 외부 오디오 장치(401)에 대응되는 어플리케이션의 오디오 데이터를 추출하고, 추출된 오디오 데이터를 출력할 수 있다. 수신된 오디오 데이터는, 외부 오디오 페어 장치 중 제1 장치에서 출력될 제1 오디오 데이터와 제2 장치에서 출력될 제2 오디오 데이터를 포함할 수 있다. 제1 오디오 데이터와 제2 오디오 데이터는 서로 다른 어플리케이션들의 오디오 데이터일 수 있고, 동일한 하나의 어플리케이션의 오디오 데이터일 수 있다. According to an embodiment, the processor 420 may decode audio data received from the electronic device 301, extract audio data of an application corresponding to the external audio device 401, and output the extracted audio data. have. The received audio data may include first audio data to be output from a first device among external audio pair devices and second audio data to be output from a second device. The first audio data and the second audio data may be audio data of different applications, or may be audio data of the same application.
일실시예에 따르면, 프로세서(420)는 전자 장치(301) 및/또는 페어 장치로부터 수신되는 신호에 기초하여, 외부 오디오 장치(401)와 페어 장치 각각이 전자 장치(301)와 통신 가능한 상태인지 여부를 결정할 수 있다. 예를 들어, 프로세서(420)는 전자 장치(301)로부터 수신되는 오디오 패킷 신호를 이용하여 제1 신호 수신 세기를 측정하여 외부 오디오 장치(401)와 전자 장치(301)가 통신이 가능한지 여부를 결정하고, 외부 오디오 장치(401)의 페어 장치와 주기적으로 송수신되는 신호를 이용하여 외부 오디오 장치(401)와 페어 장치가 통신이 가능한지 여부를 결정할 수 있다. 외부 오디오 장치(401)와 페어 장치 사이에 주기적으로 송수신되는 신호는, 외부 오디오 장치(401) 또는 페어 장치가 전자 장치(301)와 통신 가능한지 여부를 나타내는 정보를 포함할 수 있다. 예를 들어, 외부 오디오 장치(401)의 프로세서(420)는 측정된 제1 신호 수신 세기, 또는 측정된 제1 신호 수신 세기를 기반으로 결정된 통신 가능 여부에 대한 정보 중 적어도 하나를 포함하는 신호를 페어 장치로 전송할 수 있다. 프로세서(420)는 페어 장치로부터 페어 장치가 전자 장치(301)와 통신이 가능한지 여부를 나타내는 정보(예: 제2 신호 수신 세기, 및/또는 측정된 제2 신호 수신 세기를 기반으로 결정된 통신 가능 여부에 대한 정보)를 포함하는 신호를 수신할 수 있다. 제2 신호 수신 세기는, 페어 장치에서 전자 장치(301)로부터 수신되는 오디오 패킷 신호를 기반으로 측정된 신호 수신 세기일 수 있다. According to an embodiment, the processor 420 determines whether each of the external audio device 401 and the pair device can communicate with the electronic device 301 based on signals received from the electronic device 301 and/or the pair device. You can decide whether or not. For example, the processor 420 determines whether communication between the external audio device 401 and the electronic device 301 is possible by measuring a first signal reception strength using an audio packet signal received from the electronic device 301 In addition, it is possible to determine whether or not the external audio device 401 and the pair device can communicate using a signal periodically transmitted/received to and from the pair device of the external audio device 401. The signal periodically transmitted/received between the external audio device 401 and the pair device may include information indicating whether the external audio device 401 or the pair device can communicate with the electronic device 301. For example, the processor 420 of the external audio device 401 may generate a signal including at least one of information on whether communication is possible or not determined based on the measured first signal reception strength or the measured first signal reception strength. Can be transmitted to a pair device. The processor 420 includes information indicating whether the pair device can communicate with the electronic device 301 from the pair device (eg, whether the second signal reception strength and/or the measured second signal reception strength determined based on the communication availability) Information) may be received. The second signal reception strength may be a signal reception strength measured based on an audio packet signal received from the electronic device 301 in the pair device.
일실시예에 따르면, 프로세서(420)는 전자 장치(301)로부터 제1 신호 수신 세기가 지정된 제1 임계값보다 크거나 같은 경우, 외부 오디오 장치(401)가 전자 장치(301)와 통신이 가능한 상태인 것을 확인하고, 페어 장치로부터 수신된 신호에 포함된 정보에 기초하여 페어 장치가 전자 장치(301)와 통신이 가능한지 여부를 확인할 수 있다. 프로세서(420)는 페어 장치로부터 수신된 신호에 포함된 제2 신호 수신 세기가 지정된 제2 임계값보다 작은 경우, 또는 페어 장치로부터 수신된 신호에 페어 장치가 전자 장치(301)와 통신이 불가능함을 나타내는 정보가 포함된 경우, 페어 장치가 전자 장치(301)와 통신이 불가능한 것으로 결정하고, 전자 장치(301)로 멀티 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 외부 오디오 장치(301)는 페어 장치와 전자 장치(301)의 통신이 불가능한 상황임을 결정하고, 전자 장치(301)로 싱글 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 프로세서(420)는 싱글 오디오 데이터의 전송을 요청하는 신호에 대한 응답으로, 전자 장치(301)로부터 외부 오디오 장치(401)에 대한 오디오 데이터만을 포함하는 싱글 오디오 데이터 신호를 수신할 수 있다. 일실시예에 따르면, 프로세서(420)는 싱글 오디오 데이터 신호를 수신하는 중에 페어 장치가 전자 장치(301)와 통신 가능한 상태로 변경되는지 여부를 결정할 수 있다. 예를 들어, 프로세서(420)는 제1 신호 수신 세기가 지정된 제1 임계값보다 크거나 같은 상황에서 페어 장치로부터 수신된 신호에 포함된 제2 신호 수신 세기가 제2 임계값보다 크거나 같은 경우, 또는 페어 장치로부터 수신된 신호에 페어 장치가 전자 장치(301)와 통신이 가능함을 나타내는 정보가 포함된 경우, 페어 장치가 전자 장치(301)와 통신이 가능한 상태로 변경된 것을 감지할 수 있다. 프로세서(420)는, 외부 오디오 장치(401) 및 페어 장치 모두 전자 장치(301)와 통신이 가능한 상태로 변경된 경우, 전자 장치(301)로 멀티 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 프로세서(420)는 멀티 오디오 데이터의 전송을 요청하는 신호에 대한 응답으로, 전자 장치(301)로부터 외부 오디오 장치(401)에 대한 오디오 데이터와 페어 장치에 대한 오디오 데이터를 함께 포함하는 신호를 수신할 수 있다. 제1 임계값과 제2 임계값은 서로 다른 값일 수도 있고, 동일한 값일 수도 있다.According to an embodiment, the processor 420 allows the external audio device 401 to communicate with the electronic device 301 when the first signal reception strength from the electronic device 301 is greater than or equal to a specified first threshold. It is possible to confirm that the device is in a state and determine whether the pair device can communicate with the electronic device 301 based on information included in the signal received from the pair device. The processor 420 is unable to communicate with the electronic device 301 when the second signal reception strength included in the signal received from the pair device is less than the specified second threshold value, or the signal received from the pair device. When the information indicating is included, the pair device may determine that communication with the electronic device 301 is impossible, and transmit a signal requesting transmission of multi-audio data to the electronic device 301. The external audio device 301 may determine that communication between the pair device and the electronic device 301 is impossible, and transmit a signal requesting transmission of single audio data to the electronic device 301. The processor 420 may receive a single audio data signal including only audio data for the external audio device 401 from the electronic device 301 in response to a signal requesting transmission of single audio data. According to an embodiment, while receiving a single audio data signal, the processor 420 may determine whether the pair device is changed to a state capable of communicating with the electronic device 301. For example, in a situation where the first signal reception strength is greater than or equal to the specified first threshold value, the processor 420 may perform a second signal reception strength included in the signal received from the pair device greater than or equal to the second threshold value. Alternatively, when the signal received from the pair device includes information indicating that the pair device is capable of communicating with the electronic device 301, it may be detected that the pair device is changed to a state in which communication with the electronic device 301 is possible. When both the external audio device 401 and the pair device are changed to a state in which communication with the electronic device 301 is possible, the processor 420 may transmit a signal requesting transmission of multi-audio data to the electronic device 301. The processor 420 may receive a signal including audio data for the external audio device 401 and audio data for a pair device from the electronic device 301 in response to a signal requesting transmission of multi-audio data. I can. The first threshold and the second threshold may be different values or may be the same.
일실시예에 따르면, 프로세서(420)는 전자 장치(301) 및/또는 페어 장치와 위치 정보를 교환하고, 위치 정보에 기반하여, 외부 오디오 장치(401)와 페어 장치 각각이 전자 장치(301)와 통신 가능한 상태인지 여부를 결정할 수 있다. 예를 들어, 프로세서(420)는 전자 장치(301)로부터 전자 장치(301)의 위치 정보를 수신하고, 페어 장치로부터 페어 장치의 위치 정보를 획득할 수 있다. 프로세서(420)는 전자 장치(301)의 위치 정보와 외부 오디오 장치(401)의 위치 정보를 기반으로, 전자 장치(301)와 외부 오디오 장치(401) 사이의 제1 거리를 추정할 수 있다. 프로세서(420)는 전자 장치(301)의 위치 정보와 페어 장치의 위치 정보를 기반으로, 전자 장치(301)와 페어 장치 사이의 제2 거리를 추정할 수 있다. 프로세서(420)는 제1 거리가 지정된 범위에 대응되고, 제2 거리가 지정된 범위에 대응되지 않는 경우, 외부 오디오 장치(401)가 전자 장치(301)와 통신할 수 있으나, 페어 장치와 전자 장치(301)의 통신이 불가능한 상황임을 결정하고, 전자 장치(301)로 싱글 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 프로세서(420)는 싱글 오디오 데이터의 전송을 요청하는 신호에 대한 응답으로, 전자 장치(301)로부터 외부 오디오 장치(401)에 대한 오디오 데이터만을 포함하는 싱글 오디오 데이터 신호를 수신할 수 있다. 프로세서(420)는 제1 거리가 지정된 범위에 대응되고, 제2 거리가 지정된 범위에 대응하는 경우, 외부 오디오 장치(401) 및 페어 장치 모두 전자 장치(301)와 통신이 가능한 상황임을 결정하고, 전자 장치(320)로 멀티 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 프로세서(420)는 멀티 오디오 데이터의 전송을 요청하는 신호에 대한 응답으로, 전자 장치(301)로부터 외부 오디오 장치(401)에 대한 오디오 데이터와 페어 장치에 대한 오디오 데이터를 함께 포함하는 신호를 수신할 수 있다. According to an embodiment, the processor 420 exchanges location information with the electronic device 301 and/or the pair device, and, based on the location information, the external audio device 401 and the pair device each have the electronic device 301 It is possible to determine whether or not it is possible to communicate with. For example, the processor 420 may receive location information of the electronic device 301 from the electronic device 301 and obtain location information of the pair device from the pair device. The processor 420 may estimate a first distance between the electronic device 301 and the external audio device 401 based on the location information of the electronic device 301 and the location information of the external audio device 401. The processor 420 may estimate a second distance between the electronic device 301 and the pair device based on the location information of the electronic device 301 and the location information of the pair device. When the first distance corresponds to the specified range and the second distance does not correspond to the specified range, the processor 420 may communicate with the electronic device 301, but the pair device and the electronic device It is determined that communication of 301 is impossible, and a signal requesting transmission of single audio data may be transmitted to the electronic device 301. The processor 420 may receive a single audio data signal including only audio data for the external audio device 401 from the electronic device 301 in response to a signal requesting transmission of single audio data. When the first distance corresponds to the specified range and the second distance corresponds to the specified range, the processor 420 determines that both the external audio device 401 and the pair device can communicate with the electronic device 301, A signal requesting transmission of multi-audio data may be transmitted to the electronic device 320. The processor 420 may receive a signal including audio data for the external audio device 401 and audio data for a pair device from the electronic device 301 in response to a signal requesting transmission of multi-audio data. I can.
다양한 실시예들에 따르면, 메모리(430)는 페어 장치의 정보를 저장할 수 있다. 페어 장치의 정보는, 외부 오디오 장치(401)와 함께 전자 장치(301)에 연결되는 적어도 하나의 다른 외부 오디오 장치의 주소 정보를 포함할 수 있다. 일실시예에 따르면, 페어 장치의 정보는, 설계시에 설정될 수 있으며, 프로세서(420)의 제어에 따라 갱신될 수 있다. According to various embodiments, the memory 430 may store information on a pair device. The pair device information may include address information of at least one other external audio device connected to the electronic device 301 together with the external audio device 401. According to an embodiment, information on the pair device may be set at design time and may be updated under the control of the processor 420.
다양한 실시예들에 따르면, 입력 장치(440)는 외부 오디오 장치(401)의 구성요소(예: 프로세서(420))에 사용될 명령 또는 데이터를 외부 오디오 장치(401)의 외부(예: 사용자)로부터 수신하기 위한 장치로서, 예를 들면, 마이크, 키 버튼, 키패드, 터치 센서, 또는 압력 센서를 포함할 수 있다. 일실시예에 따르면, 입력 장치(440)는 근거리 무선 통신 연결을 요청하는 사용자 입력을 수신할 수 있다.According to various embodiments, the input device 440 may transmit commands or data to be used in components (eg, the processor 420) of the external audio device 401 from the outside (eg, a user) of the external audio device 401. As a device for receiving, for example, it may include a microphone, a key button, a keypad, a touch sensor, or a pressure sensor. According to an embodiment, the input device 440 may receive a user input requesting a short-range wireless communication connection.
다양한 실시예들에 따르면, 통신 모듈(450)은 외부 오디오 장치(401)와 전자 장치(301)간의 유선 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(450)은 프로세서(420)(예: 어플리케이션 프로세서)와 독립적으로 운영되는, 유선 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(450)은 근거리 무선 통신 모듈을 포함하고, 근거리 무선 통신 모듈을 통해 전자 장치와 통신할 수 있다.According to various embodiments, the communication module 450 may support establishing a wired or wireless communication channel between the external audio device 401 and the electronic device 301 and performing communication through the established communication channel. The communication module 450 may include one or more communication processors operating independently of the processor 420 (eg, an application processor) and supporting wired communication or wireless communication. According to an embodiment, the communication module 450 includes a short-range wireless communication module, and may communicate with an electronic device through a short-range wireless communication module.
다양한 실시예들에 따르면, 오디오 모듈(460)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시 예에 따르면, 오디오 모듈(460)은, 외부 오디오 장치(401)와 직접 또는 무선으로 연결된 전자 장치(301)로부터 오디오 데이터를 획득하고, 획득된 오디오 데이터를 디코딩할 수 있다.According to various embodiments, the audio module 460 may convert sound into an electrical signal, or vice versa. According to an embodiment, the audio module 460 may acquire audio data from the electronic device 301 directly or wirelessly connected to the external audio device 401 and decode the acquired audio data.
다양한 실시예들에 따르면, 전자 장치(301)는 무선 통신 모듈(예: 도 3의 무선 통신 모듈(392)), 및 상기 무선 통신 모듈(392)과 작동적으로 연결된 프로세서(예: 도 3의 프로세서(320))를 포함하며, 상기 프로세서(320)는, 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하고, 상기 이벤트 감지에 기반하여, 상기 무선 통신 모듈(392)을 통해 상기 전자 장치에 연결된 적어도 하나의 외부 오디오 장치를 확인하고, 상기 전자 장치(301)에 제1 외부 오디오 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 상기 무선 통신 모듈(392)을 통해 상기 제1 외부 오디오 장치로 전송하고, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 무선 통신 모듈(392)을 통해, 상기 제1 외부 오디오 장치로 상기 제1 어플리케이션의 오디오 데이터를 전송하고, 상기 제2 외부 오디오 장치로 상기 제2 어플리케이션의 오디오 데이터를 전송하도록 제어할 수 있다. According to various embodiments, the electronic device 301 includes a wireless communication module (eg, a wireless communication module 392 of FIG. 3 ), and a processor operatively connected to the wireless communication module 392 (eg, a wireless communication module 392 of FIG. 3 ). And a processor 320, wherein the processor 320 detects an event for outputting audio of a plurality of applications, and, based on the event detection, transmits the electronic device to the electronic device through the wireless communication module 392. Check at least one connected external audio device, and when a first external audio device is connected to the electronic device 301, audio data of a first application and audio data of a second application are transmitted through the wireless communication module 392 When the first external audio device is transmitted to the first external audio device and the first external audio device and the second external audio device are connected to the electronic device, the first external audio device is transmitted to the first external audio device through the wireless communication module 392. The audio data of the application may be transmitted, and control may be performed to transmit the audio data of the second application to the second external audio device.
일실시예에 따르면, 상기 전자 장치의 폴딩 상태를 감지하는 적어도 하나의 센서(예: 도 3의 센서 모듈(376))를 더 포함하며, 상기 프로세서는, 상기 센서로부터 수신된 상기 전자 장치의 폴딩 상태에 기반하여 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하도록 설정될 수 있다.According to an embodiment, the electronic device further includes at least one sensor (for example, the sensor module 376 of FIG. 3) for detecting a folding state of the electronic device, and the processor further comprises: folding the electronic device received from the sensor. It may be set to detect an event for outputting audio of the plurality of applications based on a state.
일실시예에 따르면, 상기 프로세서(320)는, 상기 제1 어플리케이션을 실행 중인 상태에서 상기 제2 어플리케이션의 실행 요청을 감지하고, 상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는지 여부를 결정하고, 상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는 경우, 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트가 발생된 것으로 결정할 수 있다.According to an embodiment, the processor 320 detects an execution request of the second application while the first application is being executed, determines whether the folding state of the electronic device satisfies a specified angle condition, and When the folding state of the electronic device satisfies a specified angle condition, it may be determined that an event for outputting audio of the plurality of applications has occurred.
일실시예에 따르면, 상기 프로세서(320)는, 상기 복수의 어플리케이션들의 실행 중에 지정된 폴딩 이벤트가 발생되는지 여부를 확인하고, 상기 지정된 폴딩 이벤트가 발생되는 경우, 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트가 발생된 것으로 결정할 수 있다.According to an embodiment, the processor 320 is configured to check whether a specified folding event occurs during execution of the plurality of applications, and to output audio of the plurality of applications when the specified folding event occurs. It can be determined that the event has occurred.
일실시예에 따르면, 상기 프로세서(320)는, 상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 상기 제1 외부 오디오 장치에 포함되는 제1 장치 및 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 상기 무선 통신 모듈을 제어할 수 있다.According to an embodiment, when a first external audio device is connected to the electronic device, the processor 320 is at least one of a first device and a second device included in the first external audio device, and the The wireless communication module may be controlled to transmit a signal including audio data of the first application and audio data of the second application.
일실시예에 따르면, 상기 프로세서(320)는, 상기 제1 장치 또는 상기 제2 장치로부터 싱글 오디오 데이터 전송 요청 신호를 수신하고, 상기 싱글 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치와 상기 제2 장치 중에서 상기 싱글 오디오 데이터 전송 요청 신호를 전송한 하나의 장치를 식별하고, 상기 제1 어플리케이션과 상기 제2 어플리케이션 중에서 상기 식별된 장치에 대응되는 어플리케이션의 오디오 데이터만을 포함하는 신호를 상기 식별된 장치로 전송하도록 상기 근거리 통신 모듈을 제어할 수 있다.According to an embodiment, the processor 320 receives a single audio data transmission request signal from the first device or the second device, and based on the single audio data transmission request signal, the first device and the One device that has transmitted the single audio data transmission request signal among the second devices is identified, and a signal including only audio data of an application corresponding to the identified device among the first application and the second application is identified. The short-range communication module can be controlled to transmit to the device.
일실시예에 따르면, 상기 프로세서(320)는, 상기 싱글 오디오 데이터 전송 중에, 상기 식별된 장치로 전송하는 동안에 상기 식별된 장치로부터 멀티 오디오 데이터 전송 요청 신호를 수신하고, 상기 수신된 멀티 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치 및 상기 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 제어할 수 있다.According to an embodiment, the processor 320 receives a multi-audio data transmission request signal from the identified device while transmitting the single audio data to the identified device, and transmits the received multi-audio data. Based on the request signal, a control may be performed to transmit a signal including audio data of the first application and audio data of the second application to at least one of the first device and the second device.
일실시예에 따르면, 상기 근거리 무선 통신 모듈은, 제1 근거리 무선 통신 모듈 및 제2 근거리 무선 통신 모듈을 포함하고, 상기 프로세서(320)는, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 제1 근거리 무선 통신 모듈을 통해 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하면서, 상기 제2 근거리 무선 통신 모듈을 통해 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 상기 제1 근거리 무선 통신 모듈 및 제2 근거리 무선 통신 모듈을 제어할 수 있다.According to an embodiment, the short-range wireless communication module includes a first short-range wireless communication module and a second short-range wireless communication module, and the processor 320 includes the first external audio device and the second When an external audio device is connected, audio data of the first application is transmitted to the first external audio device through the first short-range wireless communication module, while audio data of the second application is transmitted through the second short-range wireless communication module. The first short-range wireless communication module and the second short-range wireless communication module may be controlled to transmit the signal to the second external audio device.
일실시예에 따르면, 상기 프로세서(320)는, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 근거리 무선 통신 모듈(392)에 의해 지원되는 제1 프로토콜을 이용하여 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하면서, 상기 근거리 무선 통신 모듈(392)에 의해 지원되는 제2 프로토콜을 이용하여 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 제어할 수 있다.According to an embodiment, when the first external audio device and the second external audio device are connected to the electronic device, the processor 320 uses a first protocol supported by the short-range wireless communication module 392 Thus, while transmitting the audio data of the first application to the first external audio device, the audio data of the second application is transmitted to the second external audio device using a second protocol supported by the short-range wireless communication module 392. It can be controlled to send to the device.
일실시예에 따르면, 적어도 하나의 센서(예: 도 3의 센서 모듈(376))를 더 포함하며, 상기 프로세서(320)는, 상기 적어도 하나의 센서(376)를 이용하여 상기 전자 장치의 방향 전환을 감지하고, 상기 전자 장치의 방향 전환에 응답하여, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치와 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치를 전환하도록 설정되며, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치가 상기 제1 외부 오디오 장치 중 제1 장치인 경우, 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치는, 상기 제1 외부 오디오 장치 중 제2 장치이며, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치가 상기 제1 외부 오디오 장치인 경우, 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치는, 상기 제2 외부 오디오 장치일 수 있다.According to an embodiment, at least one sensor (for example, the sensor module 376 of FIG. 3) is further included, and the processor 320 uses the at least one sensor 376 to determine the direction of the electronic device. It is set to switch between a device to which audio data of the first application is output and a device to which audio data of the second application is output, in response to a change of direction of the electronic device, and to detect a changeover, and to switch between a device to which the audio data of the second application is output. When a device to which data is output is a first device among the first external audio devices, a device to which audio data of the second application is output is a second device among the first external audio devices, and an audio device of the first application When the device outputting data is the first external audio device, the device outputting the audio data of the second application may be the second external audio device.
다양한 실시예들에 따르면, 전자 장치(301)는, 적어도 일부가 폴딩되는 디스플레이(예: 도 3의 표시 장치(360)), 상기 디스플레이(360)의 폴딩 상태를 감지하는 적어도 하나의 센서(예: 도 3의 센서 모듈(376)), 근거리 무선 통신 모듈(예: 도 3의 무선 통신 모듈(392)), 및 상기 디스플레이(360), 상기 적어도 하나의 센서(376), 및 상기 근거리 무선 통신 모듈(392)과 작동적으로 연결된 프로세서(320)를 포함하며, 상기 프로세서(320)는, 상기 디스플레이의 폴딩 상태가 제1 지정된 상태인 동안에 제1 어플리케이션의 오디오 데이터를, 상기 근거리 무선 통신 모듈(392)을 통해, 적어도 하나의 외부 오디오 장치로 전송하고, 상기 디스플레이의 폴딩 상태가 제1 지정된 상태에서 제2 지정된 상태로 변경되는 경우, 복수의 어플리케이션의 오디오 데이터를 출력하기 위한 이벤트를 감지하고, 상기 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를, 상기 근거리 무선 통신 모듈(392)을 통해, 상기 적어도 하나의 외부 오디오 장치로 동시에 전송하도록 설정될 수 있다. 예를 들면 제1 지정된 상태는 전자 장치의 디스플레이가 펼쳐진 상태를 포함할 수 있다. 예를 들어 제2 지정된 상태는 전자 장치의 디스플레이가 접힌 상태를 포함할 수 있다. According to various embodiments, the electronic device 301 includes a display in which at least a portion is folded (eg, the display device 360 of FIG. 3 ), and at least one sensor (eg : The sensor module 376 of FIG. 3), a short-range wireless communication module (for example, the wireless communication module 392 of FIG. 3), and the display 360, the at least one sensor 376, and the short-range wireless communication And a processor 320 operatively connected to the module 392, wherein the processor 320 transmits audio data of a first application while the display is in a first designated state, and the short-range wireless communication module ( 392), when transmitting to at least one external audio device, and when the folding state of the display is changed from the first designated state to the second designated state, detects an event for outputting audio data of a plurality of applications, The audio data of the first application and the audio data of the second application may be configured to be simultaneously transmitted to the at least one external audio device through the short-range wireless communication module 392. For example, the first designated state may include a state in which the display of the electronic device is unfolded. For example, the second designated state may include a state in which the display of the electronic device is folded.
일실시예에 따르면, 상기 프로세서(320)는, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 상기 적어도 하나의 외부 오디오 장치로 전송하도록 상기 근거리 무선 통신 모듈(392)을 제어할 수 있다.According to an embodiment, the processor 320 transmits a signal including audio data of the first application and audio data of the second application to the at least one external audio device. ) Can be controlled.
일실시예에 따르면, 상기 프로세서(320)는, 상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 상기 제1 외부 오디오 장치에 포함되는 제1 장치 및 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 상기 근거리 무선 통신 모듈(392)을 제어할 수 있다.According to an embodiment, when a first external audio device is connected to the electronic device, the processor 320 is at least one of a first device and a second device included in the first external audio device, and the The short-range wireless communication module 392 may be controlled to transmit a signal including audio data of the first application and audio data of the second application.
일실시예에 따르면, 상기 프로세서(320)는, 상기 제1 장치 또는 상기 제2 장치로부터 싱글 오디오 데이터 전송 요청 신호를 수신하고, 상기 싱글 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치와 상기 제2 장치 중에서 상기 싱글 오디오 데이터 전송 요청 신호를 전송한 하나의 장치를 식별하고, 상기 제1 어플리케이션과 상기 제2 어플리케이션 중에서 상기 식별된 장치에 대응되는 어플리케이션의 오디오 데이터만을 포함하는 신호를 상기 식별된 장치로 전송하도록 상기 근거리 통신 모듈을 제어할 수 있다.According to an embodiment, the processor 320 receives a single audio data transmission request signal from the first device or the second device, and based on the single audio data transmission request signal, the first device and the One device that has transmitted the single audio data transmission request signal among the second devices is identified, and a signal including only audio data of an application corresponding to the identified device among the first application and the second application is identified. The short-range communication module can be controlled to transmit to the device.
일실시예에 따르면, 상기 프로세서(320)는, 상기 식별된 장치에 대응되는 어플리케이션의 오디오 데이터를 상기 식별된 장치로 전송하는 동안에 상기 식별된 장치로부터 멀티 오디오 데이터 전송 요청 신호를 수신하고, 상기 멀티 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치 및 상기 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 제어할 수 있다.According to an embodiment, the processor 320 receives a multi-audio data transmission request signal from the identified device while transmitting audio data of an application corresponding to the identified device to the identified device, and Based on an audio data transmission request signal, control to transmit a signal including audio data of the first application and audio data of the second application to at least one of the first device and the second device have.
일실시예에 따르면, 상기 프로세서(320)는, 상기 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 장치로 전송하면서, 상기 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 장치로 전송하도록 상기 근거리 무선 통신 모듈(392)을 제어할 수 있다.According to an embodiment, the processor 320 transmits the audio data of the first application to a first external audio device and transmits the audio data of the second application to a second external audio device. The module 392 can be controlled.
일실시예에 따르면, 상기 근거리 무선 통신 모듈은, 제1 근거리 무선 통신 모듈 및 제2 근거리 무선 통신 모듈을 포함하고, 상기 프로세서(320)는, 제1 근거리 무선 통신 모듈을 통해 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하면서, 제2 근거리 무선 통신 모듈을 통해 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 상기 제1 근거리 무선 통신 모듈 및 제2 근거리 무선 통신 모듈을 제어할 수 있다.According to an embodiment, the short-range wireless communication module includes a first short-range wireless communication module and a second short-range wireless communication module, and the processor 320 includes a first short-range wireless communication module. The first short-range wireless communication module and the second short-range wireless transmit audio data of the second application to the second external audio device through a second short-range wireless communication module while transmitting audio data to the first external audio device. You can control the communication module.
일실시예에 따르면, 상기 프로세서(320)는, 상기 근거리 무선 통신 모듈(392)에 의해 지원되는 제1 프로토콜을 이용하여 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하면서, 상기 근거리 무선 통신 모듈(392)에 의해 지원되는 제2 프로토콜을 이용하여 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 제어할 수 있다.According to an embodiment, the processor 320 transmits the audio data of the first application to the first external audio device using a first protocol supported by the short-range wireless communication module 392, while the The audio data of the second application may be transmitted to the second external audio device using a second protocol supported by the short-range wireless communication module 392.
일실시예에 따르면, 상기 전자 장치의 방향을 감지하는 적어도 하나의 다른 센서(예: 도 3의 센서 모듈(376))를 더 포함하며, 상기 프로세서(320)는, 상기 적어도 하나의 다른 센서(376)를 이용하여 상기 전자 장치의 방향 전환을 감지하고, 상기 전자 장치의 방향 전환에 응답하여, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치와 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치를 전환하도록 설정되며, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치가 상기 제1 외부 오디오 장치 중 제1 장치인 경우, 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치는, 상기 제1 외부 오디오 장치 중 제2 장치이며, 상기 제1 어플리케이션의 오디오 데이터가 출력되는 장치가 상기 제1 외부 오디오 장치인 경우, 상기 제2 어플리케이션의 오디오 데이터가 출력되는 장치는, 상기 제2 외부 오디오 장치일 수 있다.According to an embodiment, further comprising at least one other sensor (for example, the sensor module 376 of FIG. 3) for detecting the direction of the electronic device, the processor 320, the at least one other sensor ( 376) to detect a change in the direction of the electronic device, and switch between a device for outputting audio data of the first application and a device for outputting audio data of the second application in response to the change of direction of the electronic device And when the device to which the audio data of the first application is output is a first device among the first external audio devices, the device to which the audio data of the second application is output is a first of the first external audio devices. If the device for outputting the audio data of the second application is the first external audio device, the device for outputting the audio data of the second application may be the second external audio device.
도 5는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 흐름도(500)이다. 도 5의 동작을 수행하는 전자 장치는 도 3의 전자 장치(301)일 수 있다. 여기에서, 점선으로 표시된 동작은 실시예에 따라 생략될 수 있다. 이하 설명되는 도 5의 적어도 일부 동작은 도 6a 내지 도 6d를 참조하여 설명할 것이다. 도 6a는 다양한 실시예들에 따른 전자 장치에서 제1 외부 오디오 페어 장치로 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다. 도 6b는 다양한 실시예들에 따른 전자 장치에서 복수의 외부 오디오 페어 장치들로 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다. 도 6c는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 오디오 데이터가 출력되는 장치에 대한 정보를 표시하는 예시도이다. 도 6d는 다양한 실시예들에 따른 전자 장치에서 적어도 일부 영역에 대응되는 외부 오디오 장치를 지정하는 예시도이다. 이하, 도 6a 또는 도 6b를 참조하여 하나 또는 그 이상의 외부 오디오 페어 장치로 복수의 어플리케이션들의 오디오 데이터를 전송하는 실시예들에 대해 설명하나, 다양한 실시예들은 이에 한정되지 아니하며, 예를 들면 도 6a 또는 도 6b를 참조하여 후술하는 실시 예들은 복수의 외부 오디오 장치들에 대해 또한 적용될 수 있다. 5 is a flowchart 500 for outputting audio data of a plurality of applications in an electronic device according to various embodiments. The electronic device that performs the operation of FIG. 5 may be the electronic device 301 of FIG. 3. Here, the operation indicated by the dotted line may be omitted depending on the embodiment. At least some of the operations of FIG. 5 described below will be described with reference to FIGS. 6A to 6D. 6A is an exemplary diagram for transmitting audio data of a plurality of applications from an electronic device to a first external audio pair device according to various embodiments of the present disclosure. 6B is an exemplary diagram of transmitting audio data of a plurality of applications from an electronic device to a plurality of external audio pair devices according to various embodiments of the present disclosure. 6C is an exemplary diagram illustrating information on a device for outputting audio data of a plurality of applications in an electronic device according to various embodiments of the present disclosure. 6D is an exemplary diagram of designating an external audio device corresponding to at least a partial area in an electronic device according to various embodiments of the present disclosure. Hereinafter, embodiments of transmitting audio data of a plurality of applications to one or more external audio pair devices will be described with reference to FIGS. 6A or 6B, but various embodiments are not limited thereto, for example, FIG. 6A Alternatively, embodiments described later with reference to FIG. 6B may also be applied to a plurality of external audio devices.
도 5를 참조하면, 다양한 실시예들에 따른, 전자 장치(예: 도 3의 프로세서(320))는 동작 501에서, 복수의 어플리케이션들의 오디오 출력 이벤트를 감지할 수 있다. 일실시예에 따르면, 프로세서(320)는, 전자 장치(301)의 폴딩 상태 변화, 지정된 사용자 입력(예: 터치 입력, 드래그 입력, 또는 제스처 입력), 멀티 윈도우 사용(또는 실행), 복수의 외부 오디오 페어 장치 연결, 또는 적어도 하나의 외부 오디오 페어 장치로부터의 수신된 신호 중 적어도 하나에 기초하여, 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 이벤트를 감지할 수 있다. 예컨대, 프로세서(320)는 제1 어플리케이션을 제2 디스플레이(예: 도 1a의 제2 디스플레이(122), 도 2b의 제2 디스플레이(222))의 제1 영역에 표시하고, 제2 어플리케이션을 제2 디스플레이(122, 222)의 제2 영역에 표시하는 중에 전자 장치(301)가 폴딩 상태가 변경(예: 펼쳐진 상태에서 접힌 상태(인 폴딩 또는 아웃 폴딩)로 변경)되는 경우, 복수의 어플리케이션들의 오디오 출력 이벤트(또는 멀티 오디오 데이터 출력 이벤트)가 발생된 것으로 결정할 수 있다. 다른 예로, 프로세서(320)는 제1 어플리케이션을 제2 디스플레이(122, 222)에 표시하면서 제1 어플리케이션의 오디오 데이터를 전자 장치(301)에 연결된 적어도 하나의 외부 오디오 페어 장치를 통해 출력 중인 상태에서, 멀티 윈도우를 이용한 제2 어플리케이션의 추가 실행이 감지되는 경우, 복수의 어플리케이션들의 오디오 출력 이벤트(또는 멀티 오디오 데이터 출력 이벤트)가 발생된 것으로 결정할 수 있다. 또 다른 예로, 프로세서(320)는 제1 어플리케이션과 제2 어플리케이션이 실행 중이고 제1 어플리케이션의 오디오 데이터를 전자 장치(301)에 연결된 제1 외부 오디오 페어 장치를 통해 출력 중인 상태에서, 전자 장치(301)에 제2 외부 오디오 페어 장치의 추가 연결이 감지된 경우, 복수의 어플리케이션들의 오디오 출력 이벤트(또는 멀티 오디오 데이터 출력 이벤트)가 발생된 것으로 결정할 수 있다. 나열된 예시들은 이해를 돕기 위한 것일 뿐, 본 발명의 다양한 실시 예들은 이에 한정되지 않을 것이다.Referring to FIG. 5, according to various embodiments, an electronic device (eg, the processor 320 of FIG. 3) may detect audio output events of a plurality of applications in operation 501. According to an embodiment, the processor 320 may include a change in the folding state of the electronic device 301, a designated user input (eg, a touch input, a drag input, or a gesture input), a multi-window use (or execution), a plurality of external An event for outputting audio data of a plurality of applications may be detected based on at least one of an audio pair device connection or a signal received from at least one external audio pair device. For example, the processor 320 displays a first application on a first area of a second display (eg, the second display 122 of FIG. 1A and the second display 222 of FIG. 2B), and displays the second application. 2 When the electronic device 301 changes its folding state while being displayed in the second area of the displays 122 and 222 (e.g., changes from an unfolded state to a folded state (in-folding or out-folding)), a plurality of applications It may be determined that an audio output event (or multiple audio data output event) has occurred. As another example, the processor 320 displays the first application on the second displays 122 and 222 while outputting the audio data of the first application through at least one external audio pair device connected to the electronic device 301. , When additional execution of the second application using the multi-window is detected, it may be determined that audio output events (or multi-audio data output events) of the plurality of applications have occurred. As another example, the processor 320 is in a state in which a first application and a second application are being executed and audio data of the first application is being output through a first external audio pair device connected to the electronic device 301, and the electronic device 301 ), when an additional connection of the second external audio pair device is detected, it may be determined that audio output events (or multi-audio data output events) of a plurality of applications have occurred. The listed examples are for illustrative purposes only, and various embodiments of the present invention will not be limited thereto.
다양한 실시예들에 따르면, 동작 503에서, 전자 장치(예: 프로세서(320))는 복수의 외부 오디오 페어 장치가 연결되었는지 여부를 결정할 수 있다. 예를 들어, 프로세서(320)는 근거리 무선 통신 연결을 통해 전자 장치(301)에 복수의 외부 오디오 페어 장치들이 연결된 상태인지 여부를 결정할 수 있다. 일실시예에 따르면, 전자 장치(301)는 제1 근거리 무선 통신 모듈을 통해 제1 외부 오디오 페어 장치 또는 제2 외부 오디오 페어 장치 중 어느 하나와 연결될 수 있다. 일실시예에 따르면, 전자 장치(301)는 제1 근거리 통신 모듈을 통해 제1 외부 오디오 페어 장치 및 제2 외부 오디오 페어 장치와 연결된 상태일 수 있다. 일실시예에 따르면, 전자 장치(301)는 제1 근거리 통신 모듈을 통해 제1 외부 오디오 페어 장치와 연결되고 제2 근거리 무선 통신 모듈을 통해 제2 외부 오디오 페어 장치와 연결된 상태일 수 있다. According to various embodiments, in operation 503, the electronic device (eg, the processor 320) may determine whether a plurality of external audio pair devices are connected. For example, the processor 320 may determine whether a plurality of external audio pair devices are connected to the electronic device 301 through a short-range wireless communication connection. According to an embodiment, the electronic device 301 may be connected to either a first external audio pair device or a second external audio pair device through a first short-range wireless communication module. According to an embodiment, the electronic device 301 may be connected to the first external audio pair device and the second external audio pair device through the first short-range communication module. According to an embodiment, the electronic device 301 may be connected to a first external audio pair device through a first short-range communication module and connected to a second external audio pair device through a second short-range wireless communication module.
다양한 실시예들에 따르면, 복수의 외부 오디오 페어 장치들이 연결되지 않고 제1 외부 오디오 페어 장치만 연결된 경우, 전자 장치(예: 프로세서(320))는 동작 505에서 제1 및 제2 어플리케이션들의 오디오 데이터를 함께 인코딩하여 제1 외부 오디오 페어 장치로 전송할 수 있다. 예를 들어, 도 6a에 도시된 바와 같이, 프로세서(320)는 전자 장치(301)에 제1 장치(621)와 제2 장치(623)를 포함하는 제1 외부 오디오 페어 장치만 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하고, 인코딩된 오디오 데이터(611, 613)를 제1 장치(621) 및 제2 장치(623)로 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 및 제2 어플리케이션의 오디오 데이터가 함께 인코딩된 데이터를 제1 외부 오디오 페어 장치의 제1 장치 및 제2 장치 각각으로 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 및 제2 어플리케이션의 오디오 데이터가 함께 인코딩된 데이터를 제1 외부 오디오 페어 장치 중 마스터 장치인 제1 장치로 전송할 수 있다. According to various embodiments, when a plurality of external audio pair devices are not connected and only the first external audio pair device is connected, the electronic device (for example, the processor 320) performs audio data of the first and second applications in operation 505. May be encoded together and transmitted to the first external audio pair device. For example, as shown in FIG. 6A, when only the first external audio pair device including the first device 621 and the second device 623 is connected to the electronic device 301, the processor 320 The audio data of the first application and the audio data of the second application may be encoded together, and the encoded audio data 611 and 613 may be transmitted to the first device 621 and the second device 623. According to an embodiment, the processor 320 may transmit data encoded with audio data of the first and second applications to each of the first and second devices of the first external audio pair device. According to an embodiment, the processor 320 may transmit data encoded with audio data of the first and second applications to a first device that is a master device among the first external audio pair devices.
다양한 실시예들에 따르면, 복수의 외부 오디오 페어 장치가 연결된 경우, 전자 장치(예: 프로세서(320))는 동작 507에서 제1 및 제2 어플리케이션들의 오디오 데이터를 각각 인코딩하여 제1 및 제2 외부 오디오 페어 장치 각각으로 전송할 수 있다. 예를 들어, 도 6b에 도시된 바와 같이, 프로세서(320)는 전자 장치(301)에 제1 외부 오디오 페어 장치(651)와 제2 외부 오디오 페어 장치(653)가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 각각 인코딩하고, 인코딩된 제1 어플리케이션의 오디오 데이터(641)를 제1 외부 오디오 페어 장치(651)로 전송하고, 인코딩된 제2 어플리케이션의 오디오 데이터(643)를 제2 오디오 페어 장치(653)로 전송할 수 있다. According to various embodiments, when a plurality of external audio pair devices are connected, the electronic device (for example, the processor 320) encodes the audio data of the first and second applications, respectively, in operation 507 to provide the first and second external audio data. It can be transmitted to each of the audio pair devices. For example, as shown in FIG. 6B, when the first external audio pair device 651 and the second external audio pair device 653 are connected to the electronic device 301, the processor 320 The audio data and the audio data of the second application are each encoded, the encoded audio data 641 of the first application is transmitted to the first external audio pair device 651, and the encoded audio data of the second application 643 May be transmitted to the second audio pair device 653.
다양한 실시예들에 따르면, 전자 장치(예: 프로세서(320), 및/또는 도 3의 표시 장치(360))는 동작 509에서 제1 및 제2 어플리케이션들 각각의 오디오 데이터 출력 장치에 대한 정보를 표시할 수 있다. 출력 장치에 대한 정보는, 외부 오디오 페어 장치의 식별 정보, 외부 오디오 페어 장치의 명칭, 또는 외부 오디오 페어 장치에 대응되는 심볼(또는 아이콘) 정보 중 적어도 하나를 포함할 수 있다. 예를 들어, 프로세서(320)는 제1 어플리케이션의 실행 화면상에 제1 어플리케이션의 오디오 데이터가 출력되는 장치의 식별 정보, 명칭, 또는 심볼 중 적어도 하나를 표시하고, 제2 어플리케이션의 실행 화면상에 제2 어플리케이션의 오디오 데이터가 출력되는 장치의 식별 정보, 명칭, 또는 심볼 중 적어도 하나를 표시할 수 있다. 예컨대, 도 6c에 도시된 바와 같이, 프로세서(320)는 제1 어플리케이션의 화면(671)이 표시되고 있는 제2 디스플레이(예: 도 1a의 제2 디스플레이(122), 도 2b의 제2 디스플레이(222))의 제1 영역 중 적어도 일부 영역에 제1 어플리케이션의 오디오 데이터의 출력 장치 정보로 "L"(675)을 표시하고, 제2 어플리케이션의 화면(673)이 표시되고 있는 제2 디스플레이(122, 222)의 제2 영역 중 적어도 일부 영역에 제2 어플리케이션의 오디오 데이터의 출력 장치 정보로 "R"(677)을 표시할 수 있다. "L"은 제1 외부 오디오 페어 장치의 슬레이브 장치, 또는 좌측 장치인 제2 장치를 의미하고, "R"은 제1 외부 오디오 페어 장치의 마스터 장치, 또는 우측 장치인 제1 장치를 의미할 수 있다. 일실시예에 따르면, 프로세서(320)는 디스플레이의 일부 영역에 대응되는 외부 오디오 출력 장치가 미리 지정된 경우, 제1 및 제2 어플리케이션들의 각각의 오디오 데이터 출력 장치에 대한 정보 표시 동작을 생략할 수 있다. 예를 들어, 도 6d에 도시된 바와 같이, 디스플레이의 제1 영역(681)에 대응되는 외부 오디오 출력 장치가, 연결된 제1 외부 오디오 페어 장치의 마스터 장치, 또는 우측 장치로 미리 지정되고, 제1 영역(681)을 포함하는 디스플레이의 우측 영역에 제2 어플리케이션의 화면이 표시되는 중인 경우, 프로세서(320)는 제2 어플리케이션의 오디오 데이터를 마스터 장치 또는 우측 장치로 전송하고, 디스플레이의 좌측 영역에 화면이 표시되고 있는 제1 어플리케이션의 오디오 데이터는 슬레이브 장치 또는 좌측 장치로 전송하면서, 제1 및 제2 어플리케이션들의 각각의 오디오 데이터 출력 장치에 대한 정보 표시 동작을 생략할 수 있다. 디스플레이의 일부 영역(예: 제1 영역(681))에 대응되는 외부 오디오 출력 장치는, 설계자 및/또는 사용자에 의해 설정 및/또는 변경될 수 있다. 일실시예에 따르면, 디스플레이의 일부 영역은, 설계자 및/또는 사용자에 의해 설정 및/또는 변경될 수 있다. 예를 들어, 디스플레이의 일부 영역의 크기, 위치, 또는 형태 중 적어도 하나가, 설계자 및/또는 사용자에 의해 설정 및/또는 변경될 수 있다.According to various embodiments, in operation 509, the electronic device (eg, the processor 320 and/or the display device 360 of FIG. 3) may display information on the audio data output device of each of the first and second applications. Can be displayed. The information on the output device may include at least one of identification information of the external audio pair device, the name of the external audio pair device, or symbol (or icon) information corresponding to the external audio pair device. For example, the processor 320 displays at least one of identification information, a name, or a symbol of a device for outputting audio data of the first application on the execution screen of the first application, and on the execution screen of the second application. At least one of identification information, a name, or a symbol of a device to which audio data of the second application is output may be displayed. For example, as shown in FIG. 6C, the processor 320 includes a second display on which the screen 671 of the first application is displayed (for example, the second display 122 of FIG. 1A and the second display of FIG. 2B ). 222) in at least a partial area of the second display 122 in which “L” 675 is displayed as the output device information of the audio data of the first application, and the screen 673 of the second application is displayed. A "R" 677 may be displayed as output device information of the audio data of the second application in at least some of the second regions of the second region 222. "L" means a slave device of the first external audio pair device, or a second device that is a left device, and "R" may mean a master device of the first external audio pair device, or a first device that is a right device. have. According to an embodiment, when an external audio output device corresponding to a partial area of the display is previously designated, the processor 320 may omit an operation of displaying information on each audio data output device of the first and second applications. . For example, as shown in FIG. 6D, the external audio output device corresponding to the first area 681 of the display is previously designated as the master device or the right device of the connected first external audio pair device, and the first When the screen of the second application is being displayed in the right area of the display including the area 681, the processor 320 transmits the audio data of the second application to the master device or the right device, and displays the screen in the left area of the display. While the displayed audio data of the first application is transmitted to the slave device or the left device, an operation of displaying information for each audio data output device of the first and second applications may be omitted. An external audio output device corresponding to a partial area of the display (eg, the first area 681) may be set and/or changed by a designer and/or a user. According to an embodiment, some areas of the display may be set and/or changed by a designer and/or a user. For example, at least one of the size, position, or shape of a partial area of the display may be set and/or changed by a designer and/or a user.
도 7은 다양한 실시예들에 따른 전자 장치에서 폴딩 상태에 기초하여 복수의 어플리케이션들의 오디오 데이터를 출력하기 위한 흐름도(700)이다. 도 7의 동작을 수행하는 전자 장치는 도 3의 전자 장치(301)일 수 있다. 이하에서 설명되는 도 7의 동작들은 도 5의 동작 501의 상세한 동작 중 적어도 일부일 수 있다. 이하 설명되는 도 7의 적어도 일부 동작은 도 8을 참조하여 설명할 것이다. 도 8은 다양한 실시예들에 따른 전자 장치에서 폴딩 상태에 기초하여 복수의 어플리케이션들의 오디오 데이터를 출력하는 예시도이다.7 is a flowchart 700 for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure. The electronic device that performs the operation of FIG. 7 may be the electronic device 301 of FIG. 3. The operations of FIG. 7 described below may be at least some of the detailed operations of operation 501 of FIG. 5. At least some operations of FIG. 7 described below will be described with reference to FIG. 8. 8 is an exemplary diagram for outputting audio data of a plurality of applications based on a folding state in an electronic device according to various embodiments of the present disclosure.
도 7을 참조하면, 동작 701에서, 다양한 실시예들에 따른 전자 장치(예: 도 3의 프로세서(320))는 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치로 전송할 수 있다. 예를 들어, 프로세서(320)는 도 8에 도시된 바와 같이, 전자 장치(301)의 디스플레이(801)에 제1 어플리케이션의 화면(803)을 표시하고, 제1 어플리케이션의 오디오 데이터(807)를 전자 장치(301)에 연결된 제1 외부 오디오 페어 장치(805)로 전송할 수 있다. 제1 외부 오디오 페어 장치로 전송되는 제1 어플리케이션의 오디오 데이터는 제1 외부 오디오 페어 장치 중 제1 장치(또는 마스터 장치, 우측 장치)에서 출력될 오디오 데이터와 제1 외부 오디오 페어 장치 중 제2 장치(또는 슬레이브 장치, 좌측 장치)에서 출력될 오디오 데이터를 포함할 수 있다. 전자 장치(301)의 디스플레이(801)는, 도 1a의 제2 디스플레이(122), 및/또는 도 2b의 제2 디스플레이(222)일 수 있다.Referring to FIG. 7, in operation 701, an electronic device (eg, the processor 320 of FIG. 3) according to various embodiments may transmit audio data of a first application to a first external audio pair device. For example, as shown in FIG. 8, the processor 320 displays the screen 803 of the first application on the display 801 of the electronic device 301 and transmits the audio data 807 of the first application. It may be transmitted to the first external audio pair device 805 connected to the electronic device 301. The audio data of the first application transmitted to the first external audio pair device includes audio data to be output from the first device (or the master device, the right device) among the first external audio pair devices and the second device among the first external audio pair devices. It may include audio data to be output from (or a slave device, a left device). The display 801 of the electronic device 301 may be the second display 122 of FIG. 1A and/or the second display 222 of FIG. 2B.
다양한 실시예들에 따르면, 동작 703에서, 전자 장치(예: 프로세서(320))는 제2 어플리케이션의 실행 요청을 감지할 수 있다. 예를 들어, 프로세서(320)는 도 8에 도시된 바와 같이 디스플레이(801)에 제1 어플리케이션의 화면(803)을 표시하면서 제1 어플리케이션을 실행하는 중에 제2 어플리케이션에 대한 실행 요청을 감지(851)할 수 있다.According to various embodiments, in operation 703, the electronic device (eg, the processor 320) may detect an execution request of the second application. For example, the processor 320 detects an execution request for the second application while executing the first application while displaying the screen 803 of the first application on the display 801 as shown in FIG. 8 (851) )can do.
다양한 실시예들에 따르면, 동작 705에서, 전자 장치(예: 프로세서(320))는 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하는지 여부를 결정할 수 있다. 예를 들어, 프로세서(320)는 전자 장치(301)의 현재 폴딩 상태, 또는 제2 어플리케이션의 실행 요청이 감지된 시점에서의 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하는지 여부를 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 전자 장치(301)의 제1 하우징(예: 도 1a의 제1 하우징(112))과 제2 하우징(예: 도 1a의 제2 하우징(114)) 사이의 각도, 또는 제2 디스플레이(112, 또는 222)의 폴딩 각도를 측정(또는 결정)하고, 측정된 각도가 지정된 각도 조건을 만족하는지 여부를 결정할 수 있다. 지정된 각도 조건은, 설계자 및/또는 사용자에 의해 설정 및/또는 변경될 수 있다. 예를 들어, 지정된 각도 조건은, 제1 하우징(112)과 제2 하우징(114) 사이의 각도, 또는 제2 디스플레이(112, 또는 222)의 폴딩 각도에 대한 적어도 하나의 각도 범위 조건을 포함할 수 있다. 예컨대, 지정된 각도 조건은, 약 15도에서 165도의 각도 범위, 또는 약 195도에서 345도의 각도 범위를 포함할 수 있다. 프로세서(320)는 제1 하우징(112)과 제2 하우징(114) 사이의 각도, 또는 제2 디스플레이(112, 222)의 폴딩 각도가 180도인 경우, 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하지 않는 것으로 결정할 수 있다. 프로세서(320)는 제1 하우징(112)과 제2 하우징(114) 사이의 각도, 또는 제2 디스플레이(112, 또는 222)의 폴딩 각도가 약 15도에서 165도의 각도 범위, 또는 약 195도에서 345도의 각도 범위에 해당하는 경우, 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하는 것으로 결정할 수 있다. According to various embodiments, in operation 705, the electronic device (eg, the processor 320) may determine whether the folding state of the electronic device 301 satisfies a specified angle condition. For example, the processor 320 determines whether the current folding state of the electronic device 301 or the folding state of the electronic device 301 at the time when the execution request of the second application is detected satisfy a specified angle condition. I can. According to an embodiment, the processor 320 includes a first housing (eg, the first housing 112 in FIG. 1A) and a second housing (eg, the second housing 114 in FIG. 1A) of the electronic device 301. The angle between or the folding angle of the second display 112 or 222 may be measured (or determined), and whether the measured angle satisfies a specified angle condition may be determined. The specified angular condition can be set and/or changed by the designer and/or user. For example, the specified angular condition may include at least one angular range condition for the angle between the first housing 112 and the second housing 114, or the folding angle of the second display 112 or 222. I can. For example, the specified angular condition may include an angular range of about 15 degrees to 165 degrees, or an angular range of about 195 degrees to 345 degrees. When the angle between the first housing 112 and the second housing 114 or the folding angle of the second displays 112 and 222 is 180 degrees, the processor 320 is an angle in which the folding state of the electronic device 301 is specified. It can be determined that the condition is not satisfied. The processor 320 has an angle between the first housing 112 and the second housing 114, or the folding angle of the second display 112, or 222, in an angular range of about 15 degrees to 165 degrees, or about 195 degrees. If it falls within the 345 degree angle range, it may be determined that the folding state of the electronic device 301 satisfies the specified angle condition.
다양한 실시예들에 따르면, 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하지 않는 경우, 전자 장치(예: 프로세서(320))는 동작 707에서, 제1 어플리케이션과 제2 어플리케이션 중에서 지정된 제1 조건을 만족하는 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(805)를 통해 출력할 수 있다. 지정된 제1 조건은, 어플리케이션의 우선순위에 관련된 조건, 어플리케이션의 실행 시점에 관련된 조건, 어플리케이션의 표시 영역에 관련된 조건 중 적어도 하나를 포함할 수 있다. 예를 들어, 프로세서(320)는 제1 어플리케이션과 제2 어플리케이션 중에서 우선순위가 높은 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(805)로 전송할 수 있다. 다른 예로, 프로세서(320)는 제1 어플리케이션과 제2 어플리케이션 중에서 최근에 실행이 요청된 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(805)로 전송할 수 있다. 또 다른 예로, 프로세서(320)는 제1 어플리케이션과 제2 어플리케이션 중에서 미리 지정된 영역에 표시된 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(805)로 전송할 수 있다. 예컨대, 프로세서(320)는 도 8에 도시된 바와 같이, 제2 디스플레이(122, 또는 222)의 제1 영역에 제1 어플리케이션의 화면(811)을 표시하고, 제2 디스플레이(122, 또는 222)의 제2 영역에 제2 어플리케이션 화면(813)을 표시한 후, 제2 영역에 대응되는 제2 어플리케이션의 오디오 데이터(817)를 제1 외부 오디오 페어 장치(805)로 전송할 수 있다. According to various embodiments, when the folding state of the electronic device 301 does not satisfy a specified angle condition, in operation 707, the electronic device (eg, the processor 320) Audio data of an application that satisfies the first condition may be output through the first external audio pair device 805. The designated first condition may include at least one of a condition related to an application priority, a condition related to an execution time point of an application, and a condition related to a display area of an application. For example, the processor 320 may transmit audio data of an application having a high priority among the first application and the second application to the first external audio pair device 805. As another example, the processor 320 may transmit audio data of an application recently requested to be executed among the first application and the second application to the first external audio pair device 805. As another example, the processor 320 may transmit audio data of an application displayed in a predetermined area among the first application and the second application to the first external audio pair device 805. For example, the processor 320 displays the screen 811 of the first application in the first area of the second display 122 or 222, as shown in FIG. 8, and the second display 122 or 222 After displaying the second application screen 813 in the second region of, the audio data 817 of the second application corresponding to the second region may be transmitted to the first external audio pair device 805.
다양한 실시예들에 따르면, 동작 709에서, 전자 장치(예: 프로세서(320))는 지정된 폴딩 이벤트가 감지되는지 여부를 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 전자 장치(301)의 제1 하우징(예: 도 1a의 제1 하우징(112))과 제2 하우징(예: 도 1a의 제2 하우징(114)) 사이의 각도, 또는 제2 디스플레이(112, 또는 222)의 폴딩 각도가 변경되고, 변경된 각도가 지정된 각도 조건을 만족하는지 여부를 결정할 수 있다. 지정된 각도 조건은 동작 705의 지정된 각도 조건과 동일할 수 있다. 예를 들어, 프로세서(320)는 실행 중인 제1 어플리케이션 화면(811) 및 제2 어플리케이션 화면(813)을 디스플레이(801)에 표시하고, 지정된 제1 조건을 만족하는 제2 어플리케이션의 오디오 데이터(817)를 제1 외부 오디오 페어 장치(805)로 출력하는 중에 전자 장치(301)의 제2 디스플레이(112, 또는 222)가 펼쳐진 상태에서 접힌 상태로 변경되는지 여부를 결정할 수 있다. 지정된 폴딩 이벤트는 예를 들면 전자 장치(301)의 제1 하우징(112)과 제2 하우징(114) 사이의 각도, 또는 제2 디스플레이(112 또는 222)의 폴딩 각도가 지정된 각도 조건을 만족하는 상태로 변경되는 경우를 포함할 수 있다. According to various embodiments, in operation 709, the electronic device (eg, the processor 320) may determine whether a designated folding event is detected. According to an embodiment, the processor 320 includes a first housing (eg, the first housing 112 in FIG. 1A) and a second housing (eg, the second housing 114 in FIG. 1A) of the electronic device 301. The angle between or the folding angle of the second display 112 or 222 is changed, and it may be determined whether the changed angle satisfies the specified angle condition. The specified angle condition may be the same as the specified angle condition in operation 705. For example, the processor 320 displays the running first application screen 811 and the second application screen 813 on the display 801, and the audio data 817 of the second application satisfying the specified first condition. While outputting) to the first external audio pair device 805, it may be determined whether the second display 112 or 222 of the electronic device 301 is changed from the unfolded state to the folded state. The designated folding event is, for example, a state in which the angle between the first housing 112 and the second housing 114 of the electronic device 301 or the folding angle of the second display 112 or 222 satisfies the specified angle condition. It may include a case where it is changed to.
다양한 실시예들에 따르면, 전자 장치(301)의 지정된 폴딩 이벤트가 감지되는 경우, 전자 장치(예: 프로세서(320))는 동작 711에서 복수의 어플리케이션들의 오디오 데이터 출력을 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 복수의 어플리케이션들의 오디오 데이터 출력을 결정하고, 도 5의 동작 505 또는 동작 507을 수행할 수 있다. 예를 들어, 도 8에 도시된 바와 같이, 전자 장치(301)의 폴딩 이벤트가 감지(853)되면, 프로세서(320)는 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여 제1 외부 오디오 페어 장치(805)로 전송함으로써, 제1 어플리케이션의 오디오 데이터(827)가 제1 외부 오디오 페어 장치의 제2 장치(821)를 통해 출력되고, 제2 어플리케이션의 오디오 데이터(837)가 제1 외부 오디오 페어 장치(805)의 제2 장치(823)를 통해 출력되도록 제어할 수 있다. According to various embodiments, when a designated folding event of the electronic device 301 is detected, the electronic device (eg, the processor 320) may determine audio data output of a plurality of applications in operation 711. According to an embodiment, the processor 320 may determine audio data output of a plurality of applications and perform operation 505 or operation 507 of FIG. 5. For example, as illustrated in FIG. 8, when a folding event of the electronic device 301 is detected (853), the processor 320 encodes the audio data of the first application and the audio data of the second application together, 1 By transmitting to the external audio pair device 805, the audio data 827 of the first application is output through the second device 821 of the first external audio pair device, and the audio data 837 of the second application is It may be controlled to be output through the second device 823 of the first external audio pair device 805.
다양한 실시예들에 따르면, 전자 장치(301)의 지정된 폴딩 이벤트가 감지되지 않는 경우, 전자 장치(예: 프로세서(320))는 동작 707로 되돌아가 이하 동작을 재수행할 수 있다. According to various embodiments, when a designated folding event of the electronic device 301 is not detected, the electronic device (eg, the processor 320) may return to operation 707 and perform the following operation again.
다양한 실시예들에 따르면, 동작 705의 확인 결과 전자 장치(301)의 폴딩 상태가 지정된 각도 조건을 만족하는 경우, 전자 장치(예: 프로세서(320))는 동작 713에서 복수의 어플리케이션들의 오디오 데이터 출력을 결정할 수 있다. 일실시예에 따르면, 동작 713은 동작 711과 동일할 수 있다. According to various embodiments, when the folding state of the electronic device 301 satisfies a specified angle condition as a result of checking in operation 705, the electronic device (for example, the processor 320) outputs audio data of a plurality of applications in operation 713. Can be determined. According to an embodiment, operation 713 may be the same as operation 711.
도 9는 다양한 실시예들에 따른 전자 장치에서 전자 장치에 포함된 근거리 통신 모듈(예: 도 3의 무선 통신 모듈(392))을 이용하여 복수의 어플리케이션들의 오디오 데이터를 전송하는 흐름도(900)이다. 도 9의 동작을 수행하는 전자 장치는 도 3의 전자 장치(301)일 수 있다. 이하에서 설명되는 도 9의 동작들은 도 5의 동작 507의 상세한 동작 중 적어도 일부일 수 있다. 이하 설명되는 도 9의 적어도 일부 동작은 도 10a 및 도 10b를 참조하여 설명할 것이다. 도 10a는 다양한 실시예들에 따라 복수의 근거리 통신 모듈을 포함하는 전자 장치에서 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다. 도 10b는 다양한 실시예들에 따라 하나의 근거리 통신 모듈을 포함하는 전자 장치에서 서로 다른 프로토콜을 이용하여 복수의 어플리케이션들의 오디오 데이터를 전송하는 예시도이다.FIG. 9 is a flowchart 900 of transmitting audio data of a plurality of applications by using a short-range communication module (eg, the wireless communication module 392 of FIG. 3) included in the electronic device according to various embodiments. . The electronic device that performs the operation of FIG. 9 may be the electronic device 301 of FIG. 3. The operations of FIG. 9 described below may be at least some of the detailed operations of operation 507 of FIG. 5. At least some operations of FIG. 9 described below will be described with reference to FIGS. 10A and 10B. 10A is an exemplary diagram of transmitting audio data of a plurality of applications in an electronic device including a plurality of short-range communication modules, according to various embodiments. 10B is an exemplary diagram of transmitting audio data of a plurality of applications by using different protocols in an electronic device including one short-range communication module according to various embodiments.
도 9를 참조하면, 다양한 실시예들에 따른 전자 장치(예: 도 3의 프로세서(320))는 동작 901에서, 전자 장치(301)가 복수의 근거리 무선 통신 모듈을 이용하는지 여부를 결정할 수 있다. 예를 들어, 프로세서(320)는 전자 장치(301)에 복수의 외부 오디오 페어 장치들(1021, 1023)이 연결된 경우, 복수의 외부 오디오 페어 장치들(1021, 1023)이 하나의 근거리 무선 통신 모듈을 통해 전자 장치(301)에 연결되었는지, 또는 복수의 근거리 무선 통신 모듈 각각을 통해 전자 장치(301)에 연결되었는지 여부를 결정할 수 있다. Referring to FIG. 9, an electronic device (eg, the processor 320 of FIG. 3) according to various embodiments may determine whether the electronic device 301 uses a plurality of short-range wireless communication modules in operation 901. . For example, when a plurality of external audio pair devices 1021 and 1023 are connected to the electronic device 301, the processor 320 may connect a plurality of external audio pair devices 1021 and 1023 to a single short-range wireless communication module. Whether it is connected to the electronic device 301 through or to the electronic device 301 through each of a plurality of short-range wireless communication modules may be determined.
다양한 실시예들에 따르면, 전자 장치(301)가 복수의 근거리 무선 통신 모듈을 이용하는 경우, 전자 장치(예: 프로세서(320))는 동작 903에서, 제1 근거리 무선 통신 모듈 및 제2 근거리 무선 통신 모듈 각각을 이용하여 제1 및 제2 어플리케이션의 오디오 데이터를 전송할 수 있다. 일실시예에 따르면, 제1 외부 오디오 페어 장치(1021)가 제1 근거리 무선 통신 모듈을 통해 연결되고, 제2 외부 오디오 페어 장치(1023)가 제2 근거리 무선 통신 모듈을 통해 연결된 경우, 프로세서(320)는 인코딩된 제1 어플리케이션의 오디오 데이터를 제1 근거리 무선 통신 모듈을 통해 제1 외부 오디오 페어 장치(1021)로 전송하고, 제2 어플리케이션의 오디오 데이터를 제2 근거리 무선 통신 모듈을 통해 제2 외부 오디오 페어 장치(1023)로 전송할 수 있다. 일실시예에 따르면, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터는 서로 다른 근거리 무선 통신 모듈을 통해 해당하는 외부 오디오 페어 장치로 전송되므로, 프로세서(320)는 동일한 프로토콜을 이용하여 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 각각 전송할 수 있다. 예를 들어, 도 10a에 도시된 바와 같이, 프로세서(120)는 제1 근거리 무선 통신 모듈에 의해 지원되는 A2DP(1011)를 이용하여 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(1021)로 전송하고, 제2 근거리 무선 통신 모듈에 의해 지원되는 A2DP(1013)를 이용하여 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치(1023)로 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 근거리 무선 통신 모듈의 제1 프로토콜을 이용하여 제1 어플리케이션의 오디오 데이터를 전송하고, 제2 근거리 무선 통신 모듈의 제2 프로토콜을 이용하여 제2 어플리케이션의 오디오 데이터를 전송할 수 있다. 제1 프로토콜과, 제2 프로토콜은 서로 다른 프로토콜들일 수 있다. According to various embodiments, when the electronic device 301 uses a plurality of short-range wireless communication modules, the electronic device (for example, the processor 320) performs a first short-range wireless communication module and a second short-range wireless communication in operation 903. Audio data of the first and second applications may be transmitted using each of the modules. According to an embodiment, when the first external audio pair device 1021 is connected through a first short-range wireless communication module, and the second external audio pair device 1023 is connected through a second short-range wireless communication module, the processor ( 320) transmits the encoded audio data of the first application to the first external audio pair device 1021 through the first short-range wireless communication module, and transmits the audio data of the second application through the second short-range wireless communication module. It can be transmitted to the external audio pair device 1023. According to an embodiment, since audio data of a first application and audio data of a second application are transmitted to a corresponding external audio pair device through different short-range wireless communication modules, the processor 320 uses the same protocol. Audio data of an application and audio data of a second application may be transmitted, respectively. For example, as shown in FIG. 10A, the processor 120 transmits the audio data of the first application to the first external audio pair device 1021 using the A2DP 1011 supported by the first short-range wireless communication module. And transmits the audio data of the second application to the second external audio pair device 1023 using the A2DP 1013 supported by the second short-range wireless communication module. According to an embodiment, the processor 320 transmits audio data of a first application using a first protocol of a first short-range wireless communication module, and transmits a second application using a second protocol of the second short-range wireless communication module. Can transmit the audio data. The first protocol and the second protocol may be different protocols.
다양한 실시예들에 따르면, 전자 장치(301)는 지정된 이벤트에 기반하여, 외부 오디오 페어 장치로 오디오 데이터를 전송하기 위해 이용되는 프로토콜을 변경할 수 있다. 예를 들어, 전자 장치(301)는 제1 근거리 무선 통신 모듈의 제1 프로토콜을 이용하여 제1 외부 오디오 페어 장치로 제1 어플리케이션의 오디오 데이터를 전송하고, 제2 근거리 무선 통신 모듈의 제2 프로토콜을 이용하여 제2 외부 오디오 페어 장치로 제2 어플리케이션의 오디오 데이터를 전송하는 중에 지정된 이벤트(예: 제3 어플리케이션 실행 요청 이벤트)가 발생될 경우, 제1 근거리 무선 통신 모듈의 제2 프로토콜, 또는 제3 프로토콜을 이용하여 제1 외부 오디오 페어 장치로 제3 어플리케이션의 오디오 데이터를 전송하고, 제2 근거리 무선 통신 모듈의 제2 프로토콜을 이용하여 제2 외부 오디오 페어 장치로 제2 어플리케이션의 오디오 데이터를 전송할 수 있다.According to various embodiments, the electronic device 301 may change a protocol used to transmit audio data to an external audio pair device based on a specified event. For example, the electronic device 301 transmits audio data of a first application to a first external audio pair device by using the first protocol of the first short-range wireless communication module, and transmits the second protocol of the second short-range wireless communication module. When a specified event (eg, a third application execution request event) occurs while transmitting the audio data of the second application to the second external audio pair device by using, the second protocol of the first short-range wireless communication module, or the second 3 Transmit audio data of a third application to a first external audio pair device using a protocol, and transmit audio data of a second application to a second external audio pair device using a second protocol of a second short-range wireless communication module. I can.
다양한 실시예들에 따르면, 전자 장치(301)가 하나의 근거리 무선 통신 모듈을 이용하는 경우, 전자 장치(예: 프로세서(320))는 동작 905에서, 제1 근거리 무선 통신 모듈에서 지원하는 제1 프로파일 및 제2 프로파일을 이용하여 제1 및 제2 어플리케이션의 오디오 데이터를 전송할 수 있다. 일실시예에 따르면, 제1 외부 오디오 페어 장치(1021) 및 제2 외부 오디오 페어 장치(1023)가 제1 근거리 무선 통신 모듈을 통해 연결된 경우, 프로세서(320)는 근거리 무선 통신 모듈에 의해 지원되는 제1 프로토콜을 이용하여 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(1021)로 전송하고, 근거리 무선 통신 모듈에 의해 지원되는 제2 프로토콜을 이용하여 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치(1023)로 전송할 수 있다. 예를 들어, 프로세서(120)는 제1 근거리 무선 통신 모듈에 의해 지원되는 A2DP(1011)를 이용하여 제1 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(1021)로 전송하고, 제1 근거리 무선 통신 모듈에 의해 지원되는 HFP(1031)를 이용하여 제2 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치(1023)로 전송할 수 있다.According to various embodiments, when the electronic device 301 uses one short-range wireless communication module, in operation 905, the electronic device (eg, the processor 320) provides a first profile supported by the first short-range wireless communication module. And audio data of the first and second applications may be transmitted using the second profile. According to an embodiment, when the first external audio pair device 1021 and the second external audio pair device 1023 are connected through the first short-range wireless communication module, the processor 320 is supported by the short-range wireless communication module. The audio data of the first application is transmitted to the first external audio pair device 1021 using the first protocol, and the audio data of the second application is transmitted to the second external device using the second protocol supported by the short-range wireless communication module. It can be transmitted to the audio pair device 1023. For example, the processor 120 transmits the audio data of the first application to the first external audio pair device 1021 using the A2DP 1011 supported by the first short-range wireless communication module, and transmits the first short-range wireless communication module. Audio data of the second application may be transmitted to the second external audio pair device 1023 using the HFP 1031 supported by the communication module.
도 11a는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 흐름도(1100)이다. 도 11a의 동작을 수행하는 전자 장치는 도 3의 전자 장치(301)일 수 있다. 여기에서, 점선으로 표시된 동작은 실시예에 따라 생략될 수 있다. 이하에서 설명되는 도 11a의 동작들은 도 5의 동작 505 또는 동작 507이 수행된 이후에 수행될 수 있다. 이하 설명되는 도 11a의 적어도 일부 동작은 도 11b 내지 도 11g를 참조하여 설명할 것이다. 도 11b는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다. 도 11c는 다양한 실시예들에 따른 전자 장치에서 전자 장치의 방향 전환에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다. 도 11d는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 표시 영역 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다. 도 11e는 다양한 실시예들에 따른 전자 장치에서 복수의 어플리케이션들의 표시 영역 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다. 도 11f는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 장치의 위치 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 장치를 전환하는 예시도이다. 도 11g는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 장치의 위치 변경에 기초하여 복수의 어플리케이션들의 외부 오디오 페어 장치를 전환하는 예시도이다.11A is a flowchart 1100 of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure. The electronic device that performs the operation of FIG. 11A may be the electronic device 301 of FIG. 3. Here, the operation indicated by the dotted line may be omitted depending on the embodiment. The operations of FIG. 11A described below may be performed after operation 505 or 507 of FIG. 5 is performed. At least some of the operations of FIG. 11A described below will be described with reference to FIGS. 11B to 11G. 11B is an exemplary diagram of switching an external audio device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure. 11C is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a direction change of the electronic device in an electronic device according to various embodiments of the present disclosure. 11D is an exemplary diagram of switching an external audio device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure. 11E is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a change in a display area of a plurality of applications in an electronic device according to various embodiments of the present disclosure. 11F is an exemplary diagram of switching an external audio device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure. 11G is an exemplary diagram of switching an external audio pair device of a plurality of applications based on a location change of an external audio device in an electronic device according to various embodiments of the present disclosure.
도 11a를 참조하면, 다양한 실시예들에 따른 전자 장치(예: 도 3의 프로세서(320))는 동작 1101에서, 오디오 출력 장치 전환 이벤트를 감지할 수 있다. 오디오 출력 장치 전환 이벤트는, 전자 장치(301)의 방향 전환, 복수의 어플리케이션들의 표시 영역 변경, 또는 외부 오디오 페어 장치의 위치 변경 중 적어도 하나에 기초하여 감지될 수 있다. 일실시예에 따르면, 프로세서(320)는 전자 장치(301)에 구비된 적어도 하나의 센서(예: 도 3의 센서 모듈(376))를 이용하여 전자 장치(301)의 방향 전환을 감지하고, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 예를 들어, 도 11b 및 도 11c에 도시된 바와 같이, 전자 장치(101)의 제1 하우징(112)이 제1 방향을 향하고 제2 하우징(114)이 제 2 방향을 향한 상태에서, 전자 장치(101)의 방향 전환(1141, 1161)으로 인해, 제1 하우징(112)이 제2 방향을 향하고 제2 하우징이 제1 방향을 향하도록 변경되는 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 다른 예로, 도 11b 및 도 11c에 도시된 바와 같이, 전자 장치(101)를 향하는 사용자의 시야 내에, 전자 장치(101)의 제1 하우징(112)의 우측에 제2 하우징(114)이 존재하는 상태에서, 전자 장치(101)의 방향 전환(1141, 1161)으로 인해, 제1 하우징(112)의 좌측에 제2 하우징(114)이 존재하는 상태로 변경되는 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 또 다른 예로, 제2 닫힌 상태(아웃 폴딩)인 전자 장치(101)를 향한 사용자의 시야 내에, 전자 장치(101)의 제2 하우징(114)만 포함된 상태에서, 전자 장치(101)의 방향 전환으로 인해, 사용자의 시야 내에 제1 하우징(112)만 포함되는 상태로 변경되는 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 사용자 입력(예: 터치 입력, 드래그 입력, 및/또는 제스처 입력)에 기초하여, 제1 어플리케이션의 표시 영역과 제2 어플리케이션의 표시 영역이 변경되는 것을 감지하고, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 예를 들어, 도 11d 및 도 11e에 도시된 바와 같이, 전자 장치(101)의 디스플레이의 영역 중 제1 하우징(112)에 대응되는 영역에 제1 어플리케이션의 화면(1131)이 표시되고, 제2 하우징(114)에 대응되는 영역에 제2 어플리케이션의 화면(1133)이 표시된 상태에서, 표시 영역 변경을 요청하는 사용자 입력(1143, 1163)에 기초하여, 제1 하우징(112)에 대응되는 영역에 제2 어플리케이션의 화면(1133)이 표시되고 제2 하우징(114)에 대응되는 영역에 제1 어플리케이션의 화면(1131)이 표시되도록 변경되는 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 외부 오디오 페어 장치의 위치 변경을 감지하고, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 예를 들어, 도 11f에 도시된 바와 같이, 전자 장치(101)의 제2 하우징(114)에 인접한 영역에 외부 오디오 페어 장치 중 제1 장치(1123)가 위치하고, 전자 장치(101)의 제1 하우징(112)에 인접한 영역에 외부 오디오 페어 장치 중 제2 장치(1121)가 위치한 상태에서, 제1 장치(1123)가 제1 하우징(112)에 인접하고 제2 장치(1121)가 제2 하우징(114)에 인접하도록 위치가 변경(1145)된 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. 다른 예로, 도 11g에 도시된 바와 같이, 전자 장치(101)의 제1 하우징(112)에 인접한 영역에 제1 외부 오디오 페어 장치(1151)가 위치하고 제2 하우징(114)에 인접한 영역에 제2 외부 오디오 페어 장치 (1153)가 위치한 상태에서, 제1 외부 오디오 페어 장치(1151)가 제2 하우징(114)에 인접하고 제2 외부 오디오 페어 장치 (1153)가 제1 하우징(1142)에 인접하도록 위치가 변경(1167)된 경우, 오디오 출력 장치 전환 이벤트가 발생된 것으로 결정할 수 있다. Referring to FIG. 11A, an electronic device (eg, the processor 320 of FIG. 3) according to various embodiments may detect an audio output device switching event in operation 1101. The audio output device switching event may be detected based on at least one of a change in a direction of the electronic device 301, a change in a display area of a plurality of applications, or a change in a location of an external audio pair device. According to an embodiment, the processor 320 detects a direction change of the electronic device 301 using at least one sensor (for example, the sensor module 376 of FIG. 3) provided in the electronic device 301, It may be determined that an audio output device switching event has occurred. For example, as shown in FIGS. 11B and 11C, when the first housing 112 of the electronic device 101 faces the first direction and the second housing 114 faces the second direction, the electronic device If the first housing 112 is changed to face the second direction and the second housing faces the first direction due to the change of direction of 101 (1141, 1161), it is determined that the audio output device switching event has occurred. I can. As another example, as shown in FIGS. 11B and 11C, the second housing 114 is present on the right side of the first housing 112 of the electronic device 101 in the user's field of view facing the electronic device 101. In the state, when the second housing 114 is changed to a state in which the second housing 114 is present on the left side of the first housing 112 due to the direction change (1141, 1161) of the electronic device 101, an audio output device switching event occurs. Can be determined. As another example, when only the second housing 114 of the electronic device 101 is included in the user's field of view toward the electronic device 101 in the second closed state (out-folding), the direction of the electronic device 101 When the state is changed to include only the first housing 112 in the user's field of view due to the conversion, it may be determined that an audio output device switching event has occurred. According to an embodiment, the processor 320 detects that the display area of the first application and the display area of the second application are changed based on a user input (eg, a touch input, a drag input, and/or a gesture input). And, it may be determined that an audio output device switching event has occurred. For example, as shown in FIGS. 11D and 11E, a screen 1131 of a first application is displayed in an area corresponding to the first housing 112 of the display area of the electronic device 101, and the second In a state in which the screen 1133 of the second application is displayed in the area corresponding to the housing 114, based on the user inputs 1143 and 1163 requesting the display area change, the area corresponding to the first housing 112 is When the screen 1133 of the second application is displayed and the screen 1131 of the first application is changed to be displayed in an area corresponding to the second housing 114, it may be determined that an audio output device switching event has occurred. According to an embodiment, the processor 320 may detect a change in the location of the external audio pair device and determine that an audio output device switching event has occurred. For example, as shown in FIG. 11F, a first device 1123 of an external audio pair device is located in a region adjacent to the second housing 114 of the electronic device 101, and the first device 1123 of the electronic device 101 In a state where the second device 1121 of the external audio pair device is located in the area adjacent to the housing 112, the first device 1123 is adjacent to the first housing 112 and the second device 1121 is the second housing. If the location is changed 1145 to be adjacent to 114, it may be determined that an audio output device switching event has occurred. As another example, as shown in FIG. 11G, a first external audio pair device 1151 is located in an area adjacent to the first housing 112 of the electronic device 101 and a second external audio pair device 1151 is located in an area adjacent to the second housing 114. With the external audio pair device 1153 positioned, the first external audio pair device 1151 is adjacent to the second housing 114 and the second external audio pair device 1153 is adjacent to the first housing 1142. When the location is changed (1167), it may be determined that an audio output device switching event has occurred.
다양한 실시예들에 따르면, 동작 1103에서, 전자 장치(예: 프로세서(320))는 오디오 출력 장치 전환 동작을 수행할지 여부를 결정할 수 있다. 일실시예에 따르면, 프로세서(320)는 사용자 입력에 기초하여, 오디오 출력 장치 전환 동작을 수행할지 여부를 결정할 수 있다. 예를 들어, 프로세서(320)는 제1 어플리케이션 및 제2 어플리케이션의 오디오 데이터가 전자 장치(301)에 연결된 적어도 하나의 외부 오디오 페어 장치로 전송되는 중에 오디오 출력 장치 전환 이벤트가 감지되면, 제1 어플리케이션 및 제2 어플리케이션의 오디오 데이터 출력 장치를 전환할 것인지 여부를 문의하는 사용자 인터페이스를 제공할 수 있다. 예컨대, 사용자 인터페이스는, 제1 어플리케이션의 오디오 데이터 출력 장치를 제2 어플리케이션의 오디오 데이터를 출력하던 오디오 장치로 전환하고, 제2 어플리케이션의 오디오 데이터 출력 장치를 제1 어플리케이션의 오디오 데이터를 출력하던 오디오 장치로 전환할지 여부를 묻는 메시지를 포함할 수 있다. 프로세서(320)는 오디오 데이터를 출력할 장치의 전환을 요청하는 사용자 입력이 수신되는 경우, 오디오 출력 장치 전환 동작 수행을 결정할 수 있다. 프로세서(320)는 오디오 데이터 출력 장치 유지를 요청하는 사용자 입력이 수신되는 경우, 오디오 출력 장치 전환 동작 수행하지 않고, 현재 상태를 유지함을 결정할 수 있다. According to various embodiments, in operation 1103, the electronic device (eg, the processor 320) may determine whether to perform the audio output device switching operation. According to an embodiment, the processor 320 may determine whether to perform an audio output device switching operation based on a user input. For example, when an audio output device switching event is detected while audio data of a first application and a second application is transmitted to at least one external audio pair device connected to the electronic device 301, the first application And a user interface for inquiring whether to switch the audio data output device of the second application. For example, in the user interface, the audio data output device of the first application is converted to an audio device that outputs audio data of the second application, and the audio data output device of the second application is an audio device that outputs audio data of the first application. You can include a message asking if you want to switch to. When a user input requesting switching of a device to output audio data is received, the processor 320 may determine to perform an audio output device switching operation. When a user input requesting maintenance of the audio data output device is received, the processor 320 may determine to maintain the current state without performing an audio output device switching operation.
다양한 실시예들에 따르면, 오디오 출력 장치 전환 동작의 수행이 결정된 경우, 전자 장치(예: 프로세서(320))는 동작 1105에서 제1 및 제2 어플리케이션의 오디오 데이터 출력 장치를 전환할 수 있다. 예를 들어, 프로세서(320)는 도 11b, 도 11d, 또는 도 11f에 도시된 바와 같이, 제1 영역(1131)에 표시되는 동영상 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치의 제2 장치(1121)를 통해 출력하고, 제2 영역(1133)에 표시되는 음악 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치의 제1 장치(1123)를 통해 출력하는 중에 전자 장치(301)의 방향 전환(1141), 표시 장치 변경(1143), 또는 외부 오디오 페어 장치의 위치 변경(1145)으로 인한 오디오 출력 장치 전환 이벤트가 감지될 시, 동영상 어플리케이션의 오디오 데이터가 제1 장치(1123)를 통해 출력되고, 음악 어플리케이션의 오디오 데이터가 제2 장치(1121)를 통해 출력되도록 오디오 데이터 출력 장치를 전환할 수 있다. 다른 예로, 프로세서(320)는 도 11c, 도 11e, 또는 도 11g에 도시된 바와 같이, 제1 영역(1131)에 표시되는 동영상 어플리케이션의 오디오 데이터를 제1 외부 오디오 페어 장치(1151)를 통해 출력하고, 제2 영역(1133)에 표시되는 음악 어플리케이션의 오디오 데이터를 제2 외부 오디오 페어 장치(1153)를 통해 출력하는 중에 전자 장치(301)의 방향 전환(1161), 표시 장치 변경(1163), 또는 외부 오디오 페어 장치의 위치 변경(1165)으로 인한 오디오 출력 장치 전환 이벤트가 감지(1161)될 시, 동영상 어플리케이션의 오디오 데이터가 제2 외부 오디오 페어 장치(1153)를 통해 출력되고, 음악 어플리케이션의 오디오 데이터가 제1 외부 오디오 페어 장치(1151)를 통해 출력되도록 오디오 데이터 출력 장치를 전환할 수 있다. According to various embodiments, when it is determined to perform the audio output device switching operation, the electronic device (for example, the processor 320) may switch the audio data output devices of the first and second applications in operation 1105. For example, as shown in FIG. 11B, 11D, or 11F, the processor 320 may transmit the audio data of the video application displayed in the first area 1131 to the second device of the first external audio pair device ( While outputting through 1121 and outputting audio data of a music application displayed in the second area 1133 through the first device 1123 of the first external audio pair device, the direction change of the electronic device 301 (1141) ), when an audio output device switching event due to a display device change 1143, or a position change 1145 of an external audio pair device is detected, audio data of the video application is output through the first device 1123, and music The audio data output device may be switched so that the application audio data is output through the second device 1121. As another example, the processor 320 outputs audio data of a video application displayed in the first area 1131 through the first external audio pair device 1151 as shown in FIGS. 11C, 11E, or 11G. And, while the audio data of the music application displayed in the second area 1133 is output through the second external audio pair device 1153, the direction change of the electronic device 301 (1161), the display device change (1163), Alternatively, when an audio output device switching event due to the location change 1165 of the external audio pair device is detected (1161), audio data of the video application is output through the second external audio pair device 1153, and the audio of the music application The audio data output device may be switched so that data is output through the first external audio pair device 1151.
다양한 실시예들에 따르면, 동작 1107에서, 전자 장치(예: 프로세서(320))는 적어도 하나의 외부 오디오 페어 장치로 전환 이벤트 알림 신호를 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 전자 장치(301)에 연결된 적어도 하나의 외부 오디오 페어 장치로, 오디오 데이터 출력 장치 전환 이벤트에 의해 복수의 어플리케이션들의 오디오 데이터 출력 장치가 변경되었음을 나타내는 신호를 전송할 수 있다. 일실시예에 따르면, 프로세서(320)는 제1 및 제2 어플리케이션의 오디오 데이터를 포함하는 신호에, 복수의 어플리케이션들의 오디오 데이터 출력 장치가 변경되었음을 나타내는 정보를 포함시켜 전송할 수 있다. 일실시예에 따르면, 동작 1107은 생략될 수 있다.According to various embodiments, in operation 1107, the electronic device (eg, the processor 320) may transmit a switching event notification signal to at least one external audio pair device. According to an embodiment, the processor 320 transmits a signal indicating that the audio data output device of a plurality of applications has been changed by an audio data output device switching event to at least one external audio pair device connected to the electronic device 301. I can. According to an embodiment, the processor 320 may transmit a signal including audio data of the first and second applications by including information indicating that the audio data output device of the plurality of applications has been changed. According to an embodiment, operation 1107 may be omitted.
다양한 실시예들에 따르면, 동작 1109에서, 전자 장치(예: 프로세서(320))는 전환된 결과에 따라 제1 및 제2 어플리케이션의 오디오 데이터를 전송할 수 있다. 동작 1109는 도 5의 동작 505 또는 동작 507과 동일할 수 있다.According to various embodiments, in operation 1109, the electronic device (eg, the processor 320) may transmit audio data of the first and second applications according to the conversion result. Operation 1109 may be the same as operation 505 or operation 507 of FIG. 5.
다양한 실시예들에 따르면, 동작 1111에서, 전자 장치(예: 프로세서(320))는 전환된 정보를 표시할 수 있다. 동작 1111은, 도 5의 동작 509와 동일할 수 있다. 일실시예에 따르면, 프로세서(320)는 전자 장치(301)의 방향 전환에 의해 복수의 어플리케이션들의 오디오 데이터 출력 장치가 변경되었음을 나타내는 정보를 디스플레이(예: 도 3의 표시 장치(360))의 적어도 일부 영역에 표시할 수 있다. According to various embodiments, in operation 1111, the electronic device (eg, the processor 320) may display the converted information. Operation 1111 may be the same as operation 509 of FIG. 5. According to an embodiment, the processor 320 displays information indicating that the audio data output device of a plurality of applications has been changed due to the direction change of the electronic device 301 (for example, the display device 360 of FIG. 3 ). Can be displayed in some areas.
다양한 실시예들에 따르면, 전자 장치(301)에서 오디오 출력 장치 전환 이벤트가 감지되면, 적어도 하나의 외부 오디오 페어 장치로 전송하는 오디오 데이터를 생성하기 위한 인코딩 방식을 변경할 수 있다. 예를 들어, 전자장치(301, 또는 1201)에서 2개의 어플리케이션이 동작하여 복수의 음원(또는 오디오 데이터)을 출력하는 경우, 오디오 출력 장치 전환 이전에 외부 오디오 페어 장치로 음원을 전송하기 위해 제 1 어플리케이션, 제2 어플리케이션 순서로 음원을 인코딩 했다면, 오디오 출력 장치 전환 이후에는 제 2 어플리케이션, 제 1 어플리케이션 순서로 음원을 인코딩 할 수 있다. 또한, 다양한 실시예들에 따르면, 전자 장치(310)에서 오디오 출력 장치 전환 이벤트가 감지됨을 이벤트(또는 알림)를 통해 외부 오디오 페어 장치로 알릴 수 있다. 외부 오디오 페어 장치는 전자 장치(310)의 오디오 출력 장치 전환 알림에 의해 디코딩 방식을 변경함으로써 음원 출력을 변경할 수 있다. 이와 같은 디코딩 방식 변경 시나리오의 경우, 음원의 인코딩 방식은 이전과 동일할 수 있다. 또한, 다양한 실시예들에 따르면, 전자 장치(301)는 오디오 출력 장치 전환 이벤트 감지에 따라, 외부 오디오 페어 장치를 지원하는 프로파일 또는 케이퍼빌리티(capability)를 확인하고, 이에 기초하여 인코딩을 위한 프로토콜 또는 인코딩 방식(codec)을 변경할 수 있다. 또한, 다양한 실시예들에 따르면, 전자 장치(301)는 오디오 출력 장치 전환 이벤트를 감지함에 따라, 외부 오디오 페어 장치를 지원하는 프로파일 또는 외부 오디오 페어 장치의 케이퍼빌리티(capability)를 확인하고, 이에 기초하여 인코딩을 위한 프로토콜 또는 인코딩 방식(codec)을 변경할 수 있다.According to various embodiments, when an audio output device switching event is detected by the electronic device 301, an encoding method for generating audio data transmitted to at least one external audio pair device may be changed. For example, when two applications operate in the electronic device 301 or 1201 to output a plurality of sound sources (or audio data), the first If the sound source is encoded in the order of the application and the second application, after switching the audio output device, the sound source may be encoded in the order of the second application and the first application. In addition, according to various embodiments, the electronic device 310 may notify an external audio pair device that an audio output device switching event is detected through an event (or notification). The external audio pair device may change the sound source output by changing a decoding method in response to an audio output device change notification of the electronic device 310. In the case of such a decoding method change scenario, the encoding method of the sound source may be the same as before. In addition, according to various embodiments, the electronic device 301 checks a profile or capability supporting an external audio pair device according to detection of an audio output device switching event, and based on this, a protocol for encoding Alternatively, you can change the encoding method (codec). In addition, according to various embodiments, as the electronic device 301 detects an audio output device switching event, the electronic device 301 checks a profile supporting an external audio pair device or a capability of an external audio pair device, and thus A protocol for encoding or an encoding method (codec) may be changed based on the encoding.
도 12는 다양한 실시예들에 따른 전자 장치에서 외부 오디오 페어 장치의 제1 장치의 요청에 따라 오디오 데이터를 전송하는 흐름도(1200)이다. 도 12의 동작을 수행하는 전자 장치(1201)는 도 3의 전자 장치(301)이고, 제1 장치(1203) 및/또는 제2 장치(1205)는 도 4의 외부 오디오 장치(401)일 수 있다. 이하에서 설명되는 도 12의 동작들은 도 5의 동작 505 또는 동작 507이 수행된 이후에 수행될 수 있다. 이하 설명되는 도 12의 적어도 일부 동작은 도 13, 및 도 14를 참조하여 설명할 것이다. 도 13은 다양한 실시예들에 따른 외부 오디오 페어 장치 각각에서 수신 신호 세기를 측정하는 예시도이다. 도 14는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치(1203)에서 제2 장치(1205)의 통신 불가능 상황을 감지하는 예시도이다. 12 is a flowchart 1200 of transmitting audio data in response to a request from a first device of an external audio pair device in an electronic device according to various embodiments of the present disclosure. The electronic device 1201 performing the operation of FIG. 12 may be the electronic device 301 of FIG. 3, and the first device 1203 and/or the second device 1205 may be the external audio device 401 of FIG. 4. have. The operations of FIG. 12 described below may be performed after operation 505 or 507 of FIG. 5 is performed. At least some operations of FIG. 12 described below will be described with reference to FIGS. 13 and 14. 13 is an exemplary diagram for measuring the strength of a received signal in each of an external audio pair device according to various embodiments. 14 is a diagram illustrating an example in which the first device 1203 detects a communication failure situation of the second device 1205 among external audio pair devices according to various embodiments.
도 12를 참조하면, 동작 1210에서 다양한 실시예들에 따른 전자 장치(1201)는 멀티 오디오 데이터를 전송할 수 있다. 멀티 오디오 데이터는, 복수의 어플리케이션들의 오디오 데이터가 함께 인코딩된 데이터를 포함할 수 있다. 일실시예에 따르면, 전자 장치(120)는 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터가 함께 인코딩된 멀티 오디오 데이터를 제1 외부 오디오 페어 장치(1207) 중 제1 장치(1203)로 전송할 수 있다.Referring to FIG. 12, in operation 1210, the electronic device 1201 according to various embodiments may transmit multi-audio data. The multi-audio data may include data in which audio data of a plurality of applications are encoded together. According to an embodiment, the electronic device 120 transmits multi-audio data encoded with audio data of a first application and audio data of a second application to the first device 1203 of the first external audio pair devices 1207. Can be transmitted.
다양한 실시예들에 따르면, 제1 장치(1203)는 동작 1210에서 전자 장치(1201)로부터 수신되는 멀티 오디오 데이터를 수신하고, 동작 1220에서 전자 장치(1201)로부터의 수신 신호 세기를 측정하고, 제2 장치(1205)와 신호를 교환할 수 있다. 예를 들어, 도 13에 도시된 바와 같이, 제1 장치(1203)는 멀티 오디오 데이터를 포함하는 신호(1311)를 기반으로 수신 신호 세기를 측정할 수 있다. 또한, 예를 들어, 제1 장치(1203)는 제2 장치(1205)와 신호(1313, 1323)를 송수신할 수 있다. 예를 들어, 제1 장치(1203)는 제2 장치(1205)로부터 수신되는 신호(1313)를 기반으로 수신 신호 세기를 측정할 수 있다. 제2 장치(1205)로부터 수신되는 신호(1313)는, 제2 장치(1205)에서 송신되는 어드버타이징 신호, 또는 제1 장치(1203)와 제2 장치(1205) 사이에 미리 약속된 교환 신호 중 적어도 하나를 포함할 수 있다. 어드버타이징 신호, 또는 미리 약속된 교환 신호는, 해당 장치가 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보를 포함하는 신호를 포함할 수 있다. 일실시예에 따르면, 제1 장치(1203)와 제2 장치(1205) 각각은, 해당 장치가 전자 장치(1201)와 통신 가능한지 여부를 나타내는 정보를 포함하는 신호를 교환할 수 있다. 예를 들어, 제1 장치(1203)는 멀티 오디오 데이터를 포함하는 신호를 기반으로 측정된 신호 수신 세기에 기초하여, 제1 장치(1203)가 전자 장치(1201)와 통신이 가능한지 여부를 결정하고, 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보를 포함하는 신호를 제2 장치(1205)로 전송할 수 있다. 다른 예로, 제1 장치(1203)는 멀티 오디오 데이터를 포함하는 신호를 기반으로 측정된 신호 수신 세기를 나타내는 정보를 포함하는 신호를 제2 장치(1205)로 전송할 수 있다. 제1 장치(1203)는 제2 장치(1205)로부터, 제2 장치(1205)가 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보, 또는 제2 장치(1205)에서 측정된 수신 신호 세기를 나타내는 정보 중 적어도 하나를 포함하는 신호를 수신할 수 있다. 동작 1220의 전자 장치(1201)에 대한 수신 신호 세기 측정 동작과 제2 장치(1205)와 신호 교환 동작은, 동일한 시점에 수행될 수도 있고, 서로 다른 시점에 수행될 수도 있다. According to various embodiments, the first device 1203 receives multi-audio data received from the electronic device 1201 in operation 1210, measures the strength of a received signal from the electronic device 1201 in operation 1220, and 2 Can exchange signals with the device 1205. For example, as shown in FIG. 13, the first device 1203 may measure the received signal strength based on the signal 1311 including multi-audio data. In addition, for example, the first device 1203 may transmit and receive signals 1313 and 1323 with the second device 1205. For example, the first device 1203 may measure the received signal strength based on the signal 1313 received from the second device 1205. The signal 1313 received from the second device 1205 is an advertising signal transmitted from the second device 1205, or a pre-appointed exchange between the first device 1203 and the second device 1205. It may include at least one of the signals. The advertising signal or a pre-promised exchange signal may include a signal including information indicating whether the corresponding device is capable of communicating with the electronic device 1201. According to an embodiment, each of the first device 1203 and the second device 1205 may exchange signals including information indicating whether the corresponding device can communicate with the electronic device 1201. For example, the first device 1203 determines whether the first device 1203 can communicate with the electronic device 1201 based on the measured signal reception strength based on a signal including multi-audio data, and , A signal including information indicating whether communication with the electronic device 1201 is possible may be transmitted to the second device 1205. As another example, the first device 1203 may transmit a signal including information indicating a signal reception strength measured based on a signal including multi-audio data to the second device 1205. The first device 1203 receives information indicating whether the second device 1205 can communicate with the electronic device 1201 or the received signal strength measured by the second device 1205 from the second device 1205. A signal including at least one of the indicated information may be received. The operation of measuring the received signal strength of the electronic device 1201 in operation 1220 and the operation of exchanging signals with the second device 1205 may be performed at the same time point or at different time points.
다양한 실시예들에 따르면, 동작 1224에서 제1 장치(1203)는 제2 장치(1205)로부터 수신된 신호에 대한 수신 신호 세기를 기반으로 제2 장치(1205)가 전자 장치(1201)로부터 멀어진 것을 감지할 수 있다. 일실시예에 따르면, 제1 장치(1203)는 전자 장치(1201)에 대해 측정된 수신 신호 세기가 지정된 제1 임계값보다 크거나 같은 경우, 제1 장치(1203)가 전자 장치(1201)와 통신이 가능함을 결정하고, 제2 장치(1205)로부터 수신된 신호 세기가 제2 임계값보다 작은 경우 제2 장치(1205)가 전자 장치(1201)로부터 멀어진 것으로 결정할 수 있다. 다른 실시예에 따르면, 제1 장치(1203)는 제2 장치(1205)와 교환한 신호를 기반으로 전자 장치(1201)에 대한 제2 장치(1205)의 근접 여부를 감지할 수 있다. 예를 들어, 제1 장치(1203)는 제2 장치(1205)로부터 수신된 신호에 포함된 정보를 확인하여, 제2 장치(1205)가 전자 장치(1201)와 통신이 불가능한 상황임을 감지할 수 있다. 일실시예에 따르면, 제1 장치(1203)는 제2 장치(1205)로부터 수신된 신호에 포함된 수신 신호 세기가 제2 임계값보다 작거나, 제2 장치(1205)로부터 수신된 신호에 제2 장치(1205)가 전자 장치(1201)와 통신이 불가능함을 나타내는 정보가 포함된 경우, 페어 장치인 제2 장치(1205)가 전자 장치(1201) 및/또는 제1 장치(1203)로부터 멀어짐에 따라 통신이 불가능한 상황임을 결정할 수 있다. 다른 예로, 제1 장치(1203)는 제2 장치(1205)로부터 신호가 수신되지 않는 경우, 제2 장치(1205)가 전자 장치(1201) 및/또는 제1 장치(1203)로부터 멀어짐에 따라 통신이 불가능한 상황임을 결정할 수 있다. 일실시예에 따르면, 제1 장치(1203)는 전자 장치(1201)에 대해 측정된 수신 신호 세기가 지정된 제1 임계값보다 작은 경우, 제1 장치(1203)가 전자 장치(1201)와 통신이 불가능함을 결정하고, 동작 1220을 주기적으로 반복하여 수행할 수 있다. 제1 장치(1203)는 전자 장치(1201)와 통신이 가능해진 경우, 이후 동작을 수행할 수 있다.According to various embodiments, in operation 1224, the first device 1203 determines that the second device 1205 is away from the electronic device 1201 based on the received signal strength of the signal received from the second device 1205. Can be detected. According to an embodiment, when the received signal strength measured with respect to the electronic device 1201 is greater than or equal to a specified first threshold, the first device 1203 is connected to the electronic device 1201. When it is determined that communication is possible and the signal strength received from the second device 1205 is less than the second threshold value, it may be determined that the second device 1205 is away from the electronic device 1201. According to another embodiment, the first device 1203 may detect whether the second device 1205 is close to the electronic device 1201 based on a signal exchanged with the second device 1205. For example, the first device 1203 may detect that the second device 1205 is unable to communicate with the electronic device 1201 by checking information included in the signal received from the second device 1205. have. According to an embodiment, the first device 1203 provides a received signal strength included in a signal received from the second device 1205 less than a second threshold value or a signal received from the second device 1205. 2 When information indicating that the device 1205 cannot communicate with the electronic device 1201 is included, the second device 1205, which is a pair device, is moved away from the electronic device 1201 and/or the first device 1203 Depending on the situation, it can be determined that communication is impossible. As another example, when a signal is not received from the second device 1205, the first device 1203 communicates as the second device 1205 moves away from the electronic device 1201 and/or the first device 1203. You can decide that this is an impossible situation. According to an embodiment, when the received signal strength measured for the electronic device 1201 is less than a specified first threshold, the first device 1203 communicates with the electronic device 1201. It is determined that it is impossible, and operation 1220 may be periodically repeated and performed. When communication with the electronic device 1201 becomes possible, the first device 1203 may perform a subsequent operation.
다양한 실시예들에 따르면, 제2 장치(1205)는 동작 1212에서 전자 장치(1201)에서 제1 장치(1203)로 전송되는 멀티 오디오 데이터를 청취(또는 모니터링)하고, 청취된 멀티 오디오 데이터로부터 제2 장치(1205)에 대응되는 어플리케이션의 오디오 데이터를 획득하여 출력할 수 있다. According to various embodiments, the second device 1205 listens (or monitors) multi-audio data transmitted from the electronic device 1201 to the first device 1203 in operation 1212, and removes the multi-audio data from the received multi-audio data. 2 It is possible to obtain and output audio data of an application corresponding to the device 1205.
다양한 실시예들에 따르면, 제2 장치(1205)는 동작 1222에서 전자 장치(1201) 로부터의 수신 신호 세기를 측정하고, 제1 장치(1203)와 신호를 교환할 수 있다. 예를 들어, 도 13에 도시된 바와 같이 제2 장치(1205)는 전자 장치(1201)로부터 수신되는 멀티 오디오 데이터를 포함하는 신호(1321)를 기반으로 수신 신호 세기를 측정할 수 있다. 또한, 예를 들어, 제2 장치(1205)는 제1 장치(1203)로부터 신호(1323)를 수신할 수 있다. 제1 장치(1203)로부터 수신되는 신호는, 제1 장치(1203)에서 송신되는 어드버타이징 신호, 또는 제1 장치(1203)와 제2 장치(1205) 사이에 미리 약속된 교환 신호 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에 따르면, 도시되지는 않았으나 제2 장치(1205)는 전자 장치(1201)로부터 전송되는 신호(예: 멀티 오디오 데이터 신호)에 대해 측정된 수신 신호 세기를 기반으로, 제2 장치(1205)가 전자 장치(1201)로부터 멀어져 통신이 불가능한 상황을 감지할 수 있다. 예를 들어, 제2 장치(1205)는 전자 장치(1201)로부터 멀어져 통신이 가능한지 여부를 결정하고, 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보를 포함하는 신호(1313)를 제1 전자 장치(1203)로 전송할 수 있다. 다른 예로, 제2 장치(1205)는 전자 장치(1201)로부터 수신된 멀티 오디오 데이터를 포함하는 신호를 기반으로 측정된 신호 수신 세기를 나타내는 정보를 포함하는 신호(1313)를 제1 장치(1203)로 전송할 수 있다. 또 다른 예로, 제2 장치(1205)는 제1 전자 장치(1201)로부터 수신된 신호를 기반으로 신호 수신 세기를 측정하고 제1 장치와 통신이 불가능함을 나타내는 정보를 포함하는 신호(1313)를 제1 장치(1203)로 전송할 수 있다. 예를 들어, 제2 장치(1205)는 제1 장치(1203)로, 제2 장치(1205)가 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보, 또는 제2 장치(1205)에서 측정된 수신 신호 세기를 나타내는 정보 중 적어도 하나를 포함하는 신호(1313)를 전송할 수 있다.According to various embodiments, the second device 1205 measures the strength of a received signal from the electronic device 1201 in operation 1222 and may exchange signals with the first device 1203. For example, as illustrated in FIG. 13, the second device 1205 may measure the received signal strength based on the signal 1321 including multi-audio data received from the electronic device 1201. Also, for example, the second device 1205 may receive the signal 1323 from the first device 1203. The signal received from the first device 1203 may be at least one of an advertising signal transmitted from the first device 1203 or an exchange signal previously promised between the first device 1203 and the second device 1205. It can contain one. According to various embodiments, although not shown, based on the received signal strength measured for a signal (eg, a multi-audio data signal) transmitted from the electronic device 1201, the second device 1205 1205 may detect a situation in which communication is impossible due to being away from the electronic device 1201. For example, the second device 1205 determines whether communication is possible away from the electronic device 1201, and transmits a signal 1313 including information indicating whether communication with the electronic device 1201 is possible. To the device 1203. As another example, the second device 1205 transmits a signal 1313 including information indicating a signal reception strength measured based on a signal including multi-audio data received from the electronic device 1201 to the first device 1203. Can be transferred to. As another example, the second device 1205 measures the signal reception strength based on the signal received from the first electronic device 1201 and generates a signal 1313 including information indicating that communication with the first device is impossible. It can be transmitted to the first device 1203. For example, the second device 1205 is the first device 1203, information indicating whether the second device 1205 can communicate with the electronic device 1201, or measured by the second device 1205. The signal 1313 including at least one of information indicating the received signal strength may be transmitted.
다양한 실시예들에 따르면, 동작 1226에서 제1 장치(1203)는 전자 장치(1201)로 싱글 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 예를 들어, 제1 장치(1203)는 제2 장치(1205)가 전자 장치(1201) 및/또는 제1 장치(1203)로부터 멀리 떨어져서 전자 장치(1201)로부터 근거리 무선 통신 모듈을 통해 전송되는 오디오 데이터를 수신할 수 없음을 감지하고, 전자 장치(1201)로 제1 장치(1203)에 대응되는 어플리케이션의 오디오 데이터(예: 싱글 오디오 데이터)만 전송해줄 것을 요청할 수 있다. According to various embodiments, in operation 1226, the first device 1203 may transmit a signal requesting transmission of single audio data to the electronic device 1201. For example, the first device 1203 may provide audio that is transmitted from the electronic device 1201 through a short-range wireless communication module in which the second device 1205 is remote from the electronic device 1201 and/or the first device 1203. Upon detecting that data cannot be received, the electronic device 1201 may request the electronic device 1201 to transmit only audio data (eg, single audio data) of an application corresponding to the first device 1203.
다양한 실시예들에 따르면, 동작 1228에서 전자 장치(1201)는 싱글 오디오 데이터 신호 전송에 대한 응답으로, 제1 장치(1203)에 대응하는 어플리케이션의 오디오 데이터만을 포함하는 싱글 오디오 데이터 신호를 제1 장치(1203)로 전송할 수 있다. 예를 들어, 도 14에 도시된 바와 같이, 전자 장치(1201)는 수신된 싱글 오디오 데이터 신호에 기반하여, 제2 장치(1205)가 전자 장치(1201)의 신호를 수신할 수 없는 상황임을 결정하고, 제1 어플리케이션과 제2 어플리케이션 중에서 제1 장치(1203)에 대응되는 제2 어플리케이션의 오디오 데이터만을 포함하는 싱글 오디오 데이터 신호를 제1 장치(1203)로 전송할 수 있다.According to various embodiments, in operation 1228, in response to transmission of a single audio data signal, the electronic device 1201 transmits a single audio data signal including only audio data of an application corresponding to the first device 1203 to the first device. Can be sent to (1203). For example, as shown in FIG. 14, the electronic device 1201 determines that the second device 1205 cannot receive the signal from the electronic device 1201 based on the received single audio data signal. In addition, among the first application and the second application, a single audio data signal including only audio data of a second application corresponding to the first device 1203 may be transmitted to the first device 1203.
다양한 실시예들에 따르면, 동작 1230에서 제1 장치(1203)는 전자 장치(1201) 로부터의 수신 신호 세기를 측정하고, 제2 장치(1205)와 신호를 교환할 수 있다. 예를 들어, 제1 장치(1203)는 싱글 오디오 데이터를 포함하는 신호의 수신 세기를 측정하고, 제2 장치(1205)로부터, 제2 장치(1205)가 전자 장치(301)와 통신이 가능한지 여부를 나타내는 정보, 또는 제2 장치(1205)에서 측정된 수신 신호 세기를 나타내는 정보 중 적어도 하나를 포함하는 신호를 수신할 수 있다. 동작 1230의 전자 장치(1201)에 대한 수신 신호 세기 측정 동작과 제2 장치(1205)와 신호 교환 동작은, 동일한 시점에 수행될 수도 있고, 서로 다른 시점에 수행될 수도 있다.According to various embodiments, in operation 1230, the first device 1203 may measure the strength of a received signal from the electronic device 1201 and exchange signals with the second device 1205. For example, the first device 1203 measures the reception strength of a signal including single audio data, and whether the second device 1205 can communicate with the electronic device 301 from the second device 1205 A signal including at least one of information indicating a received signal strength measured by the second device 1205 may be received. The operation of measuring the received signal strength of the electronic device 1201 in operation 1230 and the operation of exchanging signals with the second device 1205 may be performed at the same time point or at different time points.
다양한 실시예들에 따르면, 동작 1234에서 제1 장치(1203)는 교환 신호를 기반으로 제2 장치(1205)가 전자 장치(1201)에 근접한 것을 감지할 수 있다. 예를 들어, 제1 장치(1203)는 전자 장치(1201)에 대해 측정된 수신 신호 세기가 지정된 제1 임계값보다 크거나 같은 경우, 제1 장치(1203)가 전자 장치(1201)와 통신이 가능함을 결정하고, 제2 장치(1205)와 교환한 신호를 기반으로 전자 장치(1201)에 대한 제2 장치(1205)의 근접 여부를 감지할 수 있다. 예를 들어, 제1 장치(1203)는 제2 장치(1205)로부터 수신된 신호에 포함된 정보를 확인하여, 제2 장치(1205)가 전자 장치(1201)에 근접한 것을 감지할 수 있다. 제1 장치(1203)는 제2 장치(1205)로부터 수신된 신호에 포함된 수신 신호 세기가 지정된 제2 임계값보다 크거나 같은 경우, 또는 제2 장치(1205)로부터 수신된 신호에 제2 장치(1205)가 전자 장치(1201)와 통신이 가능함을 나타내는 정보가 포함된 경우, 제2 장치(1205)가 전자 장치(1201)와 통신 가능한 상황임을 결정할 수 있다. 다른 예로, 제1 장치(1203)는 제2 장치(1205)로부터 수신되는 신호의 세기를 측정하고, 측정된 신호 수신 세기가 제2 임계값보다 큰 경우, 제2 장치(1205)가 전자 장치(1201) 근접함에 따라 통신이 가능한 상황임을 결정할 수 있다.According to various embodiments, in operation 1234, the first device 1203 may detect that the second device 1205 is close to the electronic device 1201 based on the exchange signal. For example, the first device 1203 may communicate with the electronic device 1201 when the received signal strength measured for the electronic device 1201 is greater than or equal to a specified first threshold. It is possible to determine that it is possible and detect whether the second device 1205 is close to the electronic device 1201 based on a signal exchanged with the second device 1205. For example, the first device 1203 may detect that the second device 1205 is close to the electronic device 1201 by checking information included in a signal received from the second device 1205. The first device 1203 may apply the second device to the signal received from the second device 1205 or when the received signal strength included in the signal received from the second device 1205 is greater than or equal to a specified second threshold. When information indicating that communication with the electronic device 1201 is possible by 1205 is included, it may be determined that the second device 1205 is in a situation in which communication with the electronic device 1201 is possible. As another example, the first device 1203 measures the strength of a signal received from the second device 1205, and when the measured signal reception strength is greater than the second threshold, the second device 1205 1201) It may be determined that communication is possible according to proximity.
다양한 실시예들에 따르면, 제2 장치(1205)는 동작 1232에서 전자 장치(1201) 로부터의 수신 신호 세기를 측정하고, 제1 장치(1203)와 신호를 교환할 수 있다. 예를 들어, 제2 장치(1205)는 전자 장치(1201)에서 제1 장치(1203)로 전송되는 싱글 오디오 데이터를 포함하는 신호를 청취하여 수신 신호 세기를 측정할 수 있다. 또한, 예를 들어 제2 장치(1205)는 제1 장치(1203)로부터 신호를 수신할 수 있다. 다양한 실시예들에 따르면, 도시되지는 않았으나 제2 장치(1205)는 제1 장치(1203)와 교환한 신호를 기반으로, 제1 장치(1203) 가 전자 장치(1201)와 근접하여 통신이 가능한 상황을 감지할 수 있다. 예를 들어, 제2 장치(1205)는 전자 장치(1201)와 가까워져 통신이 가능한지 여부를 결정하고, 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보를 포함하는 신호(1313)를 제1 전자 장치(1203)로 전송할 수 있다. 다른 예로, 제2 장치(1205)는 전자 장치(1201)로부터 수신된 멀티 오디오 데이터를 포함하는 신호를 기반으로 측정된 신호 수신 세기를 나타내는 정보를 포함하는 신호(1313)를 제1 장치(1203)로 전송할 수 있다. 또 다른 예로, 제2 장치(1205)는 제1 전자 장치(1201)로부터 수신된 신호를 기반으로 신호 수신 세기를 측정하고 제1 장치와 통신이 가능함을 나타내는 정보를 포함하는 신호(1313)를 제1 장치(1203)로 전송할 수 있다. 예를 들어, 제2 장치(1205)는 제1 장치(1203)로, 제2 장치(1205)가 전자 장치(1201)와 통신이 가능한지 여부를 나타내는 정보, 또는 제2 장치(1205)에서 측정된 수신 신호 세기를 나타내는 정보 중 적어도 하나를 포함하는 신호(1313)를 전송할 수 있다.According to various embodiments, the second device 1205 may measure the strength of a received signal from the electronic device 1201 in operation 1232 and exchange signals with the first device 1203. For example, the second device 1205 may measure a received signal strength by listening to a signal including single audio data transmitted from the electronic device 1201 to the first device 1203. Also, for example, the second device 1205 may receive a signal from the first device 1203. According to various embodiments, although not shown, the second device 1205 may communicate with the first device 1203 in proximity to the electronic device 1201 based on a signal exchanged with the first device 1203. You can detect the situation. For example, the second device 1205 determines whether communication is possible by being close to the electronic device 1201, and transmits a signal 1313 including information indicating whether communication with the electronic device 1201 is possible. To the device 1203. As another example, the second device 1205 transmits a signal 1313 including information indicating a signal reception strength measured based on a signal including multi-audio data received from the electronic device 1201 to the first device 1203. Can be transferred to. As another example, the second device 1205 measures the signal reception strength based on the signal received from the first electronic device 1201 and generates a signal 1313 including information indicating that communication with the first device is possible. 1 can be transmitted to the device 1203. For example, the second device 1205 is the first device 1203, information indicating whether the second device 1205 can communicate with the electronic device 1201, or measured by the second device 1205. The signal 1313 including at least one of information indicating the received signal strength may be transmitted.
다양한 실시예들에 따르면, 동작 1234에서 제1 장치(1203)는 전자 장치(1201)로 멀티 오디오 데이터의 전송을 요청하는 신호를 전송할 수 있다. 예를 들어, 제1 장치(1203)는 제2 장치(1205)가 전자 장치(1201) 및/또는 제1 장치(1203)에 근접하여 전자 장치(1201)로부터 근거리 무선 통신 모듈을 통해 전송되는 오디오 데이터를 수신할 수 있는 상태임을 감지하고, 전자 장치(1201)로 제1 장치(1203) 및 제2 장치(1205) 각각에 대응되는 복수의 어플리케이션들의 오디오 데이터(예: 멀티 오디오 데이터)를 전송해줄 것을 요청할 수 있다. According to various embodiments, in operation 1234, the first device 1203 may transmit a signal requesting transmission of multi-audio data to the electronic device 1201. For example, the first device 1203 may provide audio that is transmitted from the electronic device 1201 through the short-range wireless communication module by the second device 1205 in proximity to the electronic device 1201 and/or the first device 1203. It detects that data can be received, and transmits audio data (eg, multi-audio data) of a plurality of applications corresponding to each of the first device 1203 and the second device 1205 to the electronic device 1201. Can be requested.
다양한 실시예들에 따르면, 동작 1238에서 전자 장치(1201)는 멀티 오디오 데이터 신호 전송에 대한 응답으로, 제1 장치(1203)에 대응하는 어플리케이션의 오디오 데이터와 제2 장치(1205)에 대응하는 어플리케이션의 오디오 데이터를 포함하는 멀티 오디오 데이터 신호를 제1 장치(1203)로 전송할 수 있다. 제1 장치(1203)는 전자 장치(1201)에서 제1 장치(1203)로 전송되는 멀티 오디오 데이터를 수신하고, 수신된 멀티 오디오 데이터로부터 제1 장치(1203)에 대응되는 어플리케이션의 오디오 데이터를 획득하여 출력할 수 있다.According to various embodiments, in operation 1238, in response to transmission of a multi-audio data signal, the electronic device 1201 includes audio data of an application corresponding to the first device 1203 and an application corresponding to the second device 1205. A multi-audio data signal including audio data of may be transmitted to the first device 1203. The first device 1203 receives multi-audio data transmitted from the electronic device 1201 to the first device 1203, and obtains audio data of an application corresponding to the first device 1203 from the received multi-audio data. Can be printed.
다양한 실시예들에 따르면, 동작 1240에서, 제2 장치(1205)는 전자 장치(1201)에서 제1 장치(1203)로 전송되는 멀티 오디오 데이터를 청취하고, 청취된 멀티 오디오 데이터로부터 제2 장치(1205)에 대응되는 어플리케이션의 오디오 데이터를 획득하여 출력할 수 있다.According to various embodiments, in operation 1240, the second device 1205 listens to multi-audio data transmitted from the electronic device 1201 to the first device 1203, and the second device ( Audio data of an application corresponding to (1205) may be acquired and output.
도 15는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치에서 신호 수신 세기에 기초하여 전자 장치로 오디오 데이터를 요청하는 흐름도(1500)이다. 도 15의 제1 장치는 도 12의 제1 장치(1203)(예: 도 4의 외부 오디오 장치(401))일 수 있다. 이하에서 설명되는 도 15의 동작들은 도 12의 제1 장치(1203)의 동작들을 상세하게 나타낸 것일 수 있다. 이하에서 설명되는 도 15의 적어도 일부 동작은 도 16a 내지 도 16c를 참조하여 설명할 것이다. 도 16a 내지 도 16c는 다양한 실시예들에 따른 외부 오디오 페어 장치 중 제1 장치에서 신호 수신 세기에 기초하여 전자 장치로 오디오 데이터를 요청하는 예시도이다.15 is a flowchart 1500 for requesting audio data from an electronic device based on a signal reception strength from a first device among external audio pair devices according to various embodiments of the present disclosure. The first device of FIG. 15 may be the first device 1203 of FIG. 12 (eg, the external audio device 401 of FIG. 4 ). The operations of FIG. 15 described below may be detailed representations of operations of the first device 1203 of FIG. 12. At least some operations of FIG. 15 described below will be described with reference to FIGS. 16A to 16C. 16A to 16C are exemplary views in which a first device among external audio pair devices according to various embodiments requests audio data from an electronic device based on signal reception strength.
도 15를 참조하면, 동작 1501에서, 다양한 실시예들에 따른 제1 장치(예: 도 4의 프로세서(420))는 전자 장치(301)로부터 멀티 오디오 데이터를 수신할 수 있다. 멀티 오디오 데이터는, 제1 장치(1203)에 대응되는 어플리케이션의 오디오 데이터와 제1 장치(1203)의 페어 장치인 제2 장치(1205)에 대응되는 어플리케이션의 오디오 데이터를 포함하는 데이터일 수 있다.Referring to FIG. 15, in operation 1501, a first device (eg, the processor 420 of FIG. 4) according to various embodiments may receive multi-audio data from the electronic device 301. The multi-audio data may be data including audio data of an application corresponding to the first device 1203 and audio data of an application corresponding to the second device 1205 that is a pair device of the first device 1203.
다양한 실시예들에 따르면, 동작 1503에서, 제1 장치(예: 프로세서(420))는 수신된 멀티 오디오 데이터에서 제1 장치(401)의 오디오 데이터를 추출하여 출력할 수 있다. 일실시예에 따르면, 프로세서(420)는 멀티 오디오 데이터에서 제1 장치(401)에 대응되는 어플리케이션의 오디오 데이터만을 추출하고, 추출된 오디오 데이터를 출력할 수 있다. 예를 들어, 프로세서(420)는 멀티 오디오 데이터를 포함하는 신호의 지정된 위치에서 제1 장치(401)의 오디오 데이터를 출력할 수 있다. 지정된 위치는, 제1 장치(1203)를 위해 전자 장치(1201)와 미리 약속된 위치일 수 있다. 일실시예에 따르면, 지정된 위치는, 설계자에 의해 설정 및/또는 변경될 수 있다. 일실시예에 따르면, 지정된 위치는, 전자 장치(1201)로부터의 오디오 출력 장치 전환 알림이 수신되는 경우에 변경될 수 있다. 예를 들어, 제1 장치(1203)는 수신 신호의 제1 지정된 위치에서 오디오 데이터를 출력하다가, 전자 장치(1201)로부터의 오디오 출력 장치 전환 알림이 수신되면, 수신 신호의 제2 지정된 위치에서 오디오 데이터를 출력할 수 있다. 수신 신호의 제2 지정된 위치는 제2 장치(1205)를 위해 지정된 위치일 수 있다. According to various embodiments, in operation 1503, the first device (eg, the processor 420) may extract and output audio data of the first device 401 from the received multi-audio data. According to an embodiment, the processor 420 may extract only audio data of an application corresponding to the first device 401 from the multi-audio data and output the extracted audio data. For example, the processor 420 may output audio data of the first device 401 at a designated position of a signal including multi-audio data. The designated location may be a location previously promised with the electronic device 1201 for the first device 1203. According to an embodiment, the designated location may be set and/or changed by a designer. According to an embodiment, the designated location may be changed when an audio output device switching notification from the electronic device 1201 is received. For example, the first device 1203 outputs audio data at a first designated position of the received signal, and when an audio output device switching notification from the electronic device 1201 is received, the audio data at the second designated position of the received signal is received. Data can be output. The second designated location of the received signal may be a designated location for the second device 1205.
다양한 실시예들에 따르면, 동작 1505에서, 제1 장치(예: 프로세서(420))는 전자 장치(1201)와 제2 장치(1205)가 통신이 가능한지 여부를 결정할 수 있다. 일실시예에 따르면, 동작 1505는, 도 12의 동작 1220 및 동작 1224의 적어도 일부 동작을 포함할 수 있다. 예를 들어, 도 16a에 도시된 바와 같이, 제1 장치(1203)는 전자 장치(1201)로부터 수신되는 신호(1611)를 기반으로 제1 수신 신호 세기를 측정하여 제1 장치(1203)와 전자 장치(1201)의 통신 가능 여부를 판단하고, 통신이 가능한 경우, 제2 장치(1205)로부터 수신되는 신호를 기반으로 제2 장치(1205)가 전자 장치(1201)와 통신이 가능한지 여부를 결정할 수 있다. 다양한 실시예들에 따르면, 전자 장치(1201)와 제2 장치(1205)가 통신이 불가능한 경우, 제1 장치(예: 프로세서(420))는 동작 1507에서 전자 장치로 싱글 오디오 데이터 전송을 요청할 수 있다. 예를 들어, 프로세서(420)는 제1 수신 신호 세기가 지정된 제1 임계값보다 크거나 같고, 제2 장치(1205)로부터 수신된 신호에 포함된 제2 수신 신호 세기가 제2 임계값보다 작은 경우, 도 16b에 도시된 바와 같이, 제2 장치(1205)가 전자 장치(1201) 로부터 멀어짐에 따라 통신이 불가능한 상황임을 결정하고, 전자 장치(1201)로 싱글 오디오 데이터 전송을 요청하는 신호(1621)를 전송할 수 있다. 일실시예에 따르면, 동작 1507은 도 12의 동작 1226과 동일할 수 있다. 제1 임계 값과 제2 임계 값은 동일한 값, 또는 상이한 값일 수 있다.According to various embodiments, in operation 1505, the first device (eg, the processor 420) may determine whether the electronic device 1201 and the second device 1205 can communicate. According to an embodiment, operation 1505 may include at least some operations of operation 1220 and operation 1224 of FIG. 12. For example, as shown in FIG. 16A, the first device 1203 measures the intensity of the first received signal based on the signal 1611 received from the electronic device 1201 to determine the first device 1203 and the electronic device. It is possible to determine whether the device 1201 is capable of communication, and if communication is possible, determine whether the second device 1205 can communicate with the electronic device 1201 based on a signal received from the second device 1205. have. According to various embodiments, when communication is impossible between the electronic device 1201 and the second device 1205, the first device (eg, the processor 420) may request transmission of single audio data to the electronic device in operation 1507. have. For example, the processor 420 may determine that the first received signal strength is greater than or equal to a specified first threshold, and the second received signal strength included in the signal received from the second device 1205 is less than the second threshold. In this case, as shown in FIG. 16B, as the second device 1205 moves away from the electronic device 1201, it is determined that communication is impossible, and a signal 1621 for requesting transmission of single audio data to the electronic device 1201 ) Can be transmitted. According to an embodiment, operation 1507 may be the same as operation 1226 of FIG. 12. The first threshold value and the second threshold value may be the same value or different values.
다양한 실시예들에 따르면, 동작 1509에서, 제1 장치(예: 프로세서(420))는 전자 장치(1201)로부터 수신되는 싱글 오디오 데이터를 출력할 수 있다. 일실시예에 따르면, 프로세서(420)는 전자 장치(1201)로부터 수신되는 싱글 오디오 데이터를 디코딩하고, 디코딩된 오디오 데이터를 음향 출력 장치를 통해 출력할 수 있다.According to various embodiments, in operation 1509, the first device (eg, the processor 420) may output single audio data received from the electronic device 1201. According to an embodiment, the processor 420 may decode single audio data received from the electronic device 1201 and output the decoded audio data through the sound output device.
다양한 실시예들에 따르면, 동작 1511에서, 제1 장치(예: 프로세서(420))는 전자 장치(1201)와 제2 장치(1205)의 통신이 가능한지 여부를 결정할 수 있다. 일실시예에 따르면, 동작 1511은, 도 12의 동작 1230 및 동작 1234의 적어도 일부 동작을 포함할 수 있다. 예를 들어, 도 16a에 도시된 바와 같이, 제1 장치(1203)는 전자 장치(1201)로부터 수신되는 신호(1611)를 기반으로 제1 수신 신호 세기를 측정하여 제1 장치(1203)와 전자 장치(1201)의 통신 가능 여부를 판단하고, 통신이 가능한 경우, 제2 장치(1205)로부터 수신되는 신호(1613)를 기반으로 제2 장치(1205)가 전자 장치(1201)와 통신이 가능한지 여부를 결정할 수 있다. 다양한 실시예들에 따르면, 제1 장치(1203)는 상술한 동작 1511을 주기적으로 수행할 수 있다.According to various embodiments, in operation 1511, the first device (eg, the processor 420) may determine whether communication between the electronic device 1201 and the second device 1205 is possible. According to an embodiment, operation 1511 may include at least some operations of operation 1230 and operation 1234 of FIG. 12. For example, as shown in FIG. 16A, the first device 1203 measures the intensity of the first received signal based on the signal 1611 received from the electronic device 1201 to determine the first device 1203 and the electronic device. Determines whether the device 1201 can communicate, and if the communication is possible, whether the second device 1205 can communicate with the electronic device 1201 based on the signal 1613 received from the second device 1205 Can be determined. According to various embodiments, the first device 1203 may periodically perform operation 1511 described above.
다양한 실시예들에 따르면, 전자 장치(1201)와 제2 장치(1205)의 통신이 가능한 경우, 제1 장치(예: 프로세서(420))는 동작 1513에서 전자 장치로 멀티 오디오 데이터 전송을 요청할 수 있다. 예를 들어, 프로세서(420)는 제1 수신 신호 세기가 지정된 제1 임계값보다 크거나 같고, 제2 장치(1205)로부터 수신되는 신호(1613)에 포함된 제2 수신 신호 세기가 제2 임계값보다 크거나 같은 경우, 도 16c에 도시된 바와 같이, 제2 장치(1205)가 전자 장치(1201)에 다시 근접해짐에 따라 통신이 가능한 상황임을 결정하고, 전자 장치(1201)로 멀티 오디오 데이터 전송을 요청하는 신호(1631)를 전송할 수 있다. 일실시예에 따르면, 동작 1513은 도 12의 동작 1236과 동일할 수 있다.According to various embodiments, when communication between the electronic device 1201 and the second device 1205 is possible, the first device (eg, the processor 420) may request multi-audio data transmission to the electronic device in operation 1513. have. For example, the processor 420 has a first received signal strength equal to or greater than a specified first threshold, and the second received signal strength included in the signal 1613 received from the second device 1205 is the second threshold. If the value is greater than or equal to the value, as shown in FIG. 16C, as the second device 1205 approaches the electronic device 1201 again, it is determined that communication is possible, and the multi-audio data A signal 1631 requesting transmission may be transmitted. According to an embodiment, operation 1513 may be the same as operation 1236 of FIG. 12.
도 17은 다양한 실시예들에 따른 전자 장치에서 제1 장치의 요청에 따라 오디오 데이터를 전송하는 흐름도(1700)이다. 도 17의 동작을 수행하는 전자 장치는 도 12의 전자 장치(1201)(예: 도 3의 전자 장치(301))일 수 있다. 이하에서 설명되는 도 17의 동작들은 전자 장치(1201)의 동작들을 상세하게 나타낸 것일 수 있다. 17 is a flowchart 1700 of transmitting audio data according to a request from a first device in an electronic device according to various embodiments. The electronic device performing the operation of FIG. 17 may be the electronic device 1201 of FIG. 12 (eg, the electronic device 301 of FIG. 3 ). The operations of FIG. 17 to be described below may represent operations of the electronic device 1201 in detail.
도 17을 참조하면, 동작 1701에서, 다양한 실시예들에 따른 전자 장치(예: 도 3의 프로세서(320))는 제1 외부 오디오 페어 장치(1207) 중 제1 장치(1203)로부터 싱글 오디오 데이터 전송 요청 신호를 수신할 수 있다. 예를 들어, 프로세서(320)는 제1 장치(1203)로 멀티 오디오 데이터를 포함하는 신호를 전송하는 중에 제1 장치(1203)로부터 싱글 오디오 데이터 전송 요청 신호를 수신할 수 있다. 싱글 오디오 데이터 전송 요청 신호는, 제2 장치(1205)가 전자 장치(1201)로부터 신호 수신이 불가능한 상황임을 나타내는 정보를 포함할 수 있다. Referring to FIG. 17, in operation 1701, an electronic device (eg, the processor 320 of FIG. 3) according to various embodiments of the present disclosure provides single audio data from the first device 1203 of the first external audio pair device 1207. It is possible to receive a transmission request signal. For example, the processor 320 may receive a single audio data transmission request signal from the first device 1203 while transmitting a signal including multi-audio data to the first device 1203. The single audio data transmission request signal may include information indicating that the second device 1205 cannot receive a signal from the electronic device 1201.
다양한 실시예들에 따르면, 동작 1703에서, 전자 장치(예: 프로세서(320))는 싱글 오디오 데이터 전송 요청 신호에 기반하여, 제1 어플리케이션 및 제2 어플리케이션 중 하나의 어플리케이션을 결정할 수 있다. 예를 들어, 프로세서(320)는 싱글 오디오 데이터 전송 요청 신호에 기반하여, 제2 장치(1205)가 전자 장치(1201)로부터 신호 수신이 불가능한 상황임을 확인하고, 제1 어플리케이션과 제2 어플리케이션 중에서 어느 어플리케이션이 제1 장치(1203)에 대응되는 어플리케이션인지 확인할 수 있다. 일 실시예에 따르면, 전자 장치(1201)는 지정된 기준(예: 우선 순위 또는 실행 순서)에 기반하여 싱글 오디오 데이터를 전송할 어플리케이션을 결정할 수 있다. 다른 실시예에 따르면, 전자 장치(1201)는 제1 장치(1203)로부터 싱글 오디오 데이터를 전송할 어플리케이션에 대한 정보를 수신하여 어플리케이션을 결정할 수 있다.According to various embodiments, in operation 1703, the electronic device (eg, the processor 320) may determine one of the first application and the second application based on a single audio data transmission request signal. For example, based on a single audio data transmission request signal, the processor 320 checks that the second device 1205 is in a situation in which signal reception from the electronic device 1201 is impossible, and selects one of the first application and the second application. It can be checked whether the application is an application corresponding to the first device 1203. According to an embodiment, the electronic device 1201 may determine an application to transmit single audio data based on a specified criterion (eg, priority or execution order). According to another embodiment, the electronic device 1201 may determine an application by receiving information on an application for transmitting single audio data from the first device 1203.
다양한 실시예들에 따르면, 동작 1705에서, 전자 장치(예: 프로세서(320)는 결정된 어플리케이션의 오디오 데이터를 제1 장치(1203)로 전송할 수 있다. 일실시예에 따르면, 동작 1705는 도 12의 동작 1228과 동일할 수 있다.According to various embodiments, in operation 1705, the electronic device (eg, the processor 320 may transmit audio data of the determined application to the first device 1203. According to an embodiment, operation 1705 is shown in FIG. 12) May be the same as operation 1228.
다양한 실시예들에 따르면, 동작 1707에서, 전자 장치(예: 프로세서(320))는 제1 장치(1203)로부터 멀티 오디오 데이터 전송 요청 신호가 수신되는지 여부를 결정할 수 있다. 예를 들어, 프로세서(320)는 제1 장치(1203)로 싱글 오디오 데이터를 포함하는 신호를 전송하는 중에 제1 장치(1203)로부터 멀티 오디오 데이터 전송 요청 신호가 수신되는지 여부를 결정할 수 있다. 멀티 오디오 데이터 전송 요청 신호는, 제2 장치(1205)가 전자 장치(1201)로부터 신호 수신이 가능한 상황임을 나타내는 정보를 포함할 수 있다. According to various embodiments, in operation 1707, the electronic device (eg, the processor 320) may determine whether a multi-audio data transmission request signal is received from the first device 1203. For example, while transmitting a signal including single audio data to the first device 1203, the processor 320 may determine whether a multi-audio data transmission request signal is received from the first device 1203. The multi-audio data transmission request signal may include information indicating that the second device 1205 is capable of receiving signals from the electronic device 1201.
다양한 실시예들에 따르면, 멀티 오디오 데이터 전송 요청 신호가 수신된 경우, 전자 장치(예: 프로세서(320))는 동작 1709에서 제1 및 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여 제1 장치(1203)로 전송할 수 있다. 예를 들어, 프로세서(320)는 멀티 오디오 데이터 전송 요청 신호에 기반하여, 제1 장치(1203) 및 제2 장치(1205) 모두 전자 장치(1201)로부터 신호 수신이 가능한 상황임을 확인하고, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 포함하는 멀티 오디오 데이터를 제1 장치(1203)로 전송할 수 있다.According to various embodiments, when a multi-audio data transmission request signal is received, the electronic device (for example, the processor 320) encodes the audio data of the first and second applications together in operation 1709, and the first device 1203 ). For example, based on the multi-audio data transmission request signal, the processor 320 confirms that both the first device 1203 and the second device 1205 are capable of receiving signals from the electronic device 1201, and Multi-audio data including audio data of an application and audio data of a second application may be transmitted to the first device 1203.
상술한 도 12 내지 도 17에서는, 제1 장치(1203)가 제2 장치(1205)의 통신 가능 여부를 감지하여, 전자 장치(1201)로 싱글 오디오 데이터 전송을 요청하거나 멀티 오디오 데이터 전송을 요청하는 것에 대해 설명하였으나, 반대의 경우도 가능할 것이다. 예를 들어, 제2 장치(1205)가 제1 장치(1203)의 통신 가능 여부를 감지하여, 전자 장치(1201)로 싱글 오디오 데이터 전송을 요청하거나 멀티 오디오 데이터 전송을 요청할 수 있다.12 to 17 described above, the first device 1203 detects whether the second device 1205 is capable of communication, and requests the electronic device 1201 to transmit single audio data or to request multiple audio data transmission. Has been described, but the reverse would also be possible. For example, the second device 1205 may detect whether the first device 1203 is capable of communication, and may request single audio data transmission or multi-audio data transmission to the electronic device 1201.
상술한 도 5 내지 도 17의 실시예들에서 각 동작들은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작들의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다.In the above-described embodiments of FIGS. 5 to 17, each of the operations may be sequentially performed, but is not necessarily performed sequentially. For example, the order of each operation may be changed, and at least two operations may be performed in parallel.
다양한 실시예들에 따르면, 전자 장치(301)의 동작 방법은, 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하는 동작, 상기 이벤트 감지에 응답하여, 근거리 무선 통신 모듈(예: 도 3의 무선 통신 모듈(392))을 통해 상기 전자 장치에 연결된 적어도 하나의 외부 오디오 페어 장치를 확인하는 동작, 상기 전자 장치에 제1 외부 오디오 페어 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여, 상기 근거리 무선 통신 모듈(392)을 통해 상기 제1 외부 오디오 페어 장치로 전송하는 동작, 및 상기 전자 장치에 상기 제1 외부 오디오 페어 장치 및 제2 외부 오디오 페어 장치가 연결된 경우, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 각각 인코딩하여, 상기 근거리 무선 통신 모듈(392)을 통해, 상기 제1 외부 오디오 페어 장치와 상기 제2 외부 오디오 페어 장치로 각각 전송하는 동작을 포함할 수 있다.상술한 설명에서는, 이해를 돕기 위해 두 개의 어플리케이션을 예로 들어 설명하였으나, 본 발명의 다양한 실시예들은 전자 장치에서 두 개 이상의 어플리케이션들이 실행되는 경우에도 동일하게 적용될 수 있다.According to various embodiments, the method of operating the electronic device 301 includes an operation of detecting an event for outputting audio of a plurality of applications, and in response to the event detection, a short-range wireless communication module (eg, wireless communication in FIG. 3 ). Checking at least one external audio pair device connected to the electronic device through the communication module 392. When the first external audio pair device is connected to the electronic device, the audio data of the first application and the second application are Encoding the audio data together and transmitting it to the first external audio pair device through the short-range wireless communication module 392, and the first external audio pair device and the second external audio pair device are connected to the electronic device. In this case, the audio data of the first application and the audio data of the second application are respectively encoded, and through the short-range wireless communication module 392, the first external audio pair device and the second external audio pair device are respectively In the above description, two applications have been described as an example to aid understanding, but various embodiments of the present invention can be equally applied even when two or more applications are executed in an electronic device. have.
다양한 실시예들에 따르면, 전자 장치(예: 도 3의 전자 장치(301), 또는 도 12의 전자 장치(1201))는 실행되는 복수의 어플리케이션들 각각의 특성(예: 어플리케이션의 오디오 데이터 생성 여부)을 기반으로 싱글 오디오 데이터를 전송할지, 또는 멀티 오디오 데이터를 전송할지 여부를 결정할 수 있다. 예를 들어, 전자 장치(301, 1201)는 제1 및 제2 어플리케이션들이 실행된 상황에서 지정된 폴딩 이벤트가 발생되는 경우, 제1 및 제2 어플리케이션들 각각의 특성을 확인할 수 있다. 전자 장치(301,1201)는 특성을 확인한 결과 제1 어플리케이션은 오디오 데이터를 생성하고, 제2 어플리케이션은 오디오 데이터를 생성하지 않는 경우, 제1 어플리케이션의 오디오 데이터만을 포함하는 싱글 오디오 데이터를, 전자 장치(301, 1201)에 연결된 적어도 하나의 외부 오디오 페어 장치로 전송할 수 있다. 제1 및 제2 어플리케이션들 각각의 특성은, 예를 들어, 어플리케이션 관련 정보, 어플리케이션의 식별 정보, 또는 어플리케이션에서 수행되는 적어도 하나의 기능에 기반하여 확인할 수 있다.According to various embodiments, an electronic device (eg, the electronic device 301 of FIG. 3 or the electronic device 1201 of FIG. 12) is ), it is possible to determine whether to transmit single audio data or multiple audio data. For example, when a designated folding event occurs while the first and second applications are executed, the electronic devices 301 and 1201 may check characteristics of each of the first and second applications. When the electronic devices 301 and 1201 check the characteristics, when the first application generates audio data and the second application does not generate audio data, the electronic device generates single audio data including only audio data of the first application. It may be transmitted to at least one external audio pair device connected to (301, 1201). The characteristics of each of the first and second applications may be checked based on, for example, application-related information, application identification information, or at least one function performed by the application.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.An electronic device according to various embodiments disclosed in this document may be a device of various types. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. The electronic device according to the embodiment of the present document is not limited to the above-described devices.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나" 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제1", "제2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제1) 구성요소가 다른(예: 제2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.Various embodiments of the present document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutes of the corresponding embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or a plurality of the items unless clearly indicated otherwise in a related context. In this document, “A or B”, “at least one of A and B”, “at least one of A or B”, “A, B or C”, “at least one of A, B and C” and “A, Each of phrases such as "at least one of B or C" may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the component from other Order) is not limited. Some (eg, a first) component is referred to as “coupled” or “connected” to another (eg, a second) component, with or without the terms “functionally” or “communicatively”. When mentioned, it means that any of the above components may be connected to the other components directly (eg by wire), wirelessly, or via a third component.
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term "module" used in this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic blocks, parts, or circuits. The module may be an integrally configured component or a minimum unit of the component or a part thereof that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(201)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(236) 또는 외장 메모리(238))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(240))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(201))의 프로세서(예: 프로세서(220))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 236 or external memory 238) that can be read by a machine (eg, electronic device 201). It may be implemented as software (for example, the program 240) including them. For example, the processor (eg, the processor 220) of the device (eg, the electronic device 201) may call and execute at least one command among one or more commands stored from a storage medium. This enables the device to be operated to perform at least one function according to the at least one command invoked. The one or more instructions may include code generated by a compiler or code executable by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here,'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and this term refers to the case where data is semi-permanently stored in the storage medium. It does not distinguish between temporary storage cases.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, a method according to various embodiments disclosed in the present document may be provided by being included in a computer program product. Computer program products can be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a device-readable storage medium (e.g. compact disc read only memory (CD-ROM)), or through an application store (e.g. Play Store TM ) or two user devices (e.g., compact disc read only memory (CD-ROM)). It can be distributed (e.g., downloaded or uploaded) directly between, e.g. smartphones). In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a storage medium that can be read by a device such as a server of a manufacturer, a server of an application store, or a memory of a relay server.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular number or a plurality of entities. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components in the same or similar to that performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component may be sequentially, parallel, repeatedly, or heuristically executed, or one or more of the operations may be executed in a different order or omitted. Or one or more other actions may be added.

Claims (15)

  1. 전자 장치에 있어서,In the electronic device,
    무선 통신 모듈; 및Wireless communication module; And
    상기 무선 통신 모듈과 작동적으로 연결된 프로세서를 포함하며, And a processor operatively connected to the wireless communication module,
    상기 프로세서는, The processor,
    복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하고,Detects events for outputting audio from multiple applications,
    상기 이벤트 감지에 기반하여, 상기 무선 통신 모듈을 통해 상기 전자 장치에 연결된 적어도 하나의 외부 오디오 장치를 확인하고,Based on the event detection, check at least one external audio device connected to the electronic device through the wireless communication module,
    상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 상기 무선 통신 모듈을 통해 상기 제1 외부 오디오 장치로 전송하고,When a first external audio device is connected to the electronic device, audio data of a first application and audio data of a second application are transmitted to the first external audio device through the wireless communication module,
    상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 무선 통신 모듈을 통해, 상기 제1 외부 오디오 장치로 상기 제1 어플리케이션의 오디오 데이터를 전송하고, 상기 제2 외부 오디오 장치로 상기 제2 어플리케이션의 오디오 데이터를 전송하도록 제어하는 전자 장치.When the first external audio device and the second external audio device are connected to the electronic device, audio data of the first application is transmitted to the first external audio device through the wireless communication module, and the second external audio device An electronic device that controls to transmit audio data of the second application to a device.
  2. 제1항에 있어서,The method of claim 1,
    상기 전자 장치의 폴딩 상태를 감지하는 적어도 하나의 센서를 더 포함하며,Further comprising at least one sensor for detecting a folding state of the electronic device,
    상기 프로세서는, 상기 센서로부터 수신된 상기 전자 장치의 폴딩 상태에 기반하여 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하도록 설정된 전자 장치.The processor is configured to detect an event for outputting audio of the plurality of applications based on a folding state of the electronic device received from the sensor.
  3. 제2항에 있어서,The method of claim 2,
    상기 프로세서는, 상기 제1 어플리케이션을 실행 중인 상태에서 상기 제2 어플리케이션의 실행 요청을 감지하고,The processor detects an execution request of the second application while the first application is being executed,
    상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는지 여부를 결정하고,Determine whether the folding state of the electronic device satisfies a specified angle condition,
    상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는 경우, 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트가 발생된 것으로 결정하는 전자 장치.When the folding state of the electronic device satisfies a specified angle condition, it is determined that an event for outputting audio of the plurality of applications has occurred.
  4. 제2항에 있어서,The method of claim 2,
    상기 프로세서는, 상기 복수의 어플리케이션들의 실행 중에 지정된 폴딩 이벤트가 발생되는지 여부를 확인하고,The processor checks whether a designated folding event occurs during execution of the plurality of applications,
    상기 지정된 폴딩 이벤트가 발생되는 경우, 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트가 발생된 것으로 결정하는 전자 장치.When the designated folding event occurs, the electronic device determines that an event for outputting audio of the plurality of applications has occurred.
  5. 제1항에 있어서,The method of claim 1,
    상기 프로세서는, 상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 상기 제1 외부 오디오 장치에 포함되는 제1 장치 및 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 상기 무선 통신 모듈을 제어하는 전자 장치.When a first external audio device is connected to the electronic device, the processor is at least one of a first device and a second device included in the first external audio device, and includes audio data of the first application and the second device. 2 An electronic device that controls the wireless communication module to transmit a signal including audio data of an application.
  6. 제5항에 있어서,The method of claim 5,
    상기 프로세서는, 상기 제1 장치 또는 상기 제2 장치로부터 싱글 오디오 데이터 전송 요청 신호를 수신하고,The processor receives a single audio data transmission request signal from the first device or the second device,
    상기 싱글 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치와 상기 제2 장치 중에서 상기 싱글 오디오 데이터 전송 요청 신호를 전송한 장치를 식별하고,Identifying a device that has transmitted the single audio data transmission request signal from among the first device and the second device based on the single audio data transmission request signal,
    상기 제1 어플리케이션과 상기 제2 어플리케이션 중에서 상기 식별된 장치에 대응되는 어플리케이션의 오디오 데이터만을 포함하는 신호를 상기 식별된 장치로 전송하도록 상기 통신 모듈을 제어하는 전자 장치.An electronic device that controls the communication module to transmit a signal including only audio data of an application corresponding to the identified device among the first application and the second application to the identified device.
  7. 제6항에 있어서,The method of claim 6,
    상기 프로세서는, 상기 싱글 오디오 데이터 전송 중에, 상기 식별된 장치로부터 멀티 오디오 데이터 전송 요청 신호를 수신하고,The processor, during the single audio data transmission, receives a multi-audio data transmission request signal from the identified device,
    상기 수신된 멀티 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치 및 상기 제2 장치 중에서 적어도 하나의 장치로, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 포함하는 신호를 전송하도록 제어하는 전자 장치.Based on the received multi-audio data transmission request signal, a signal including audio data of the first application and audio data of the second application is transmitted to at least one of the first device and the second device. Electronic device that controls to be performed.
  8. 제1항에 있어서,The method of claim 1,
    상기 무선 통신 모듈은, 제1 무선 통신 모듈 및 제2 무선 통신 모듈을 포함하고,The wireless communication module includes a first wireless communication module and a second wireless communication module,
    상기 프로세서는, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 상기 제2 외부 오디오 장치가 연결된 경우, 상기 제1 무선 통신 모듈을 통해 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하고, 상기 제2 무선 통신 모듈을 통해 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 상기 제1 무선 통신 모듈 및 상기 제2 무선 통신 모듈을 제어하는 전자 장치.When the first external audio device and the second external audio device are connected to the electronic device, the processor transmits the audio data of the first application to the first external audio device through the first wireless communication module, and And controlling the first wireless communication module and the second wireless communication module to transmit audio data of the second application to the second external audio device through the second wireless communication module.
  9. 제1항에 있어서,The method of claim 1,
    상기 프로세서는, 상기 전자 장치에 상기 제1 외부 오디오 장치 및 상기 제2 외부 오디오 장치가 연결된 경우, 상기 무선 통신 모듈에 의해 지원되는 제1 프로토콜을 이용하여 상기 제1 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하면서, 상기 무선 통신 모듈에 의해 지원되는 제2 프로토콜을 이용하여 상기 제2 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하도록 제어하는 전자 장치.When the first external audio device and the second external audio device are connected to the electronic device, the processor may transmit the audio data of the first application to the first application using a first protocol supported by the wireless communication module. An electronic device controlling to transmit the audio data of the second application to the second external audio device by using a second protocol supported by the wireless communication module while transmitting to an external audio device.
  10. 제1항에 있어서,The method of claim 1,
    적어도 하나의 센서를 더 포함하며,Further comprising at least one sensor,
    상기 프로세서는, 상기 적어도 하나의 센서를 이용하여 상기 전자 장치의 방향 전환을 감지하고,The processor detects a direction change of the electronic device using the at least one sensor,
    상기 전자 장치의 방향 전환에 응답하여, 상기 무선 통신 모듈을 통하여, 상기 제1 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하고, 상기 제2 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하도록 하는 전자 장치.In response to the direction change of the electronic device, the audio data of the first application is transmitted to the second external audio device through the wireless communication module, and the audio data of the second application is transmitted to the first external audio device. An electronic device that allows you to transmit.
  11. 전자 장치의 동작 방법에 있어서,In the method of operating an electronic device,
    복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하는 동작;Detecting an event for outputting audio of a plurality of applications;
    상기 이벤트 감지에 응답하여, 무선 통신 모듈을 통해 상기 전자 장치에 연결된 적어도 하나의 외부 오디오 장치를 확인하는 동작;In response to detecting the event, checking at least one external audio device connected to the electronic device through a wireless communication module;
    상기 전자 장치에 제1 외부 오디오 장치가 연결된 경우, 제1 어플리케이션의 오디오 데이터와 제2 어플리케이션의 오디오 데이터를 함께 인코딩하여, 상기 무선 통신 모듈을 통해 상기 제1 외부 오디오 장치로 전송하는 동작; 및When a first external audio device is connected to the electronic device, encoding audio data of a first application and audio data of a second application together and transmitting the encoded audio data to the first external audio device through the wireless communication module; And
    상기 전자 장치에 상기 제1 외부 오디오 장치 및 제2 외부 오디오 장치가 연결된 경우, 상기 제1 어플리케이션의 오디오 데이터와 상기 제2 어플리케이션의 오디오 데이터를 각각 인코딩하여, 상기 무선 통신 모듈을 통해, 상기 제1 외부 오디오 장치와 상기 제2 외부 오디오 장치로 각각 전송하는 동작을 포함하는 방법.When the first external audio device and the second external audio device are connected to the electronic device, the audio data of the first application and the audio data of the second application are respectively encoded, and the first external audio device is transmitted through the wireless communication module. And transmitting to the external audio device and the second external audio device, respectively.
  12. 제11항에 있어서,The method of claim 11,
    상기 이벤트를 감지하는 동작은, 상기 전자 장치의 폴딩 상태에 기반하여 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트를 감지하는 방법.The detecting of the event may include detecting an event for outputting audio of the plurality of applications based on a folding state of the electronic device.
  13. 제12항에 있어서,The method of claim 12,
    상기 이벤트를 감지하는 동작은, The operation of detecting the event,
    상기 제1 어플리케이션을 실행 중인 상태에서 상기 제2 어플리케이션의 실행 요청을 감지하는 동작; Detecting an execution request of the second application while the first application is being executed;
    상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는지 여부를 결정하는 동작; 및Determining whether the folding state of the electronic device satisfies a specified angle condition; And
    상기 전자 장치의 폴딩 상태가 지정된 각도 조건을 만족하는 경우, 상기 복수의 어플리케이션의 오디오를 출력하기 위한 이벤트가 발생된 것으로 결정하는 동작을 포함하는 방법.And determining that an event for outputting audio of the plurality of applications has occurred when the folding state of the electronic device satisfies a specified angle condition.
  14. 제11항에 있어서,The method of claim 11,
    상기 전자 장치에 상기 제1 외부 오디오 장치가 연결된 경우, 상기 오디오 데이터 전송 동작은,When the first external audio device is connected to the electronic device, the audio data transmission operation,
    상기 제1 외부 오디오 장치에 포함되는 제1 장치 또는 제2 장치로부터 싱글 오디오 데이터 전송 요청 신호를 수신하는 동작;Receiving a single audio data transmission request signal from a first device or a second device included in the first external audio device;
    상기 싱글 오디오 데이터 전송 요청 신호에 기반하여, 상기 제1 장치와 상기 제2 장치 중에서 상기 싱글 오디오 데이터 전송 요청 신호를 전송한 장치를 식별하는 동작; 및Identifying a device that has transmitted the single audio data transmission request signal from among the first device and the second device based on the single audio data transmission request signal; And
    상기 제1 어플리케이션과 상기 제2 어플리케이션 중에서 상기 식별된 장치에 대응되는 어플리케이션의 오디오 데이터만을 포함하는 신호를 상기 식별된 장치로 전송하는 동작을 포함하는 방법.And transmitting a signal including only audio data of an application corresponding to the identified device among the first application and the second application to the identified device.
  15. 제11항에 있어서,The method of claim 11,
    상기 전자 장치의 방향 전환을 감지하는 동작을 더 포함하고, Further comprising an operation of detecting a change of direction of the electronic device,
    상기 전자 장치의 방향 전환에 응답하여, 상기 제1 어플리케이션의 오디오 데이터를 상기 제2 외부 오디오 장치로 전송하고, 상기 제2 어플리케이션의 오디오 데이터를 상기 제1 외부 오디오 장치로 전송하는 방법. In response to a direction change of the electronic device, the method of transmitting audio data of the first application to the second external audio device, and transmitting audio data of the second application to the first external audio device.
PCT/KR2020/014117 2019-11-01 2020-10-15 Electronic device for outputting audio data of plurality of applications, and method for operating same WO2021085902A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020190138954A KR20210053094A (en) 2019-11-01 2019-11-01 Electronic device for outputting audio data of a plurality of applications and operating method thereof
KR10-2019-0138954 2019-11-01

Publications (1)

Publication Number Publication Date
WO2021085902A1 true WO2021085902A1 (en) 2021-05-06

Family

ID=75716428

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/014117 WO2021085902A1 (en) 2019-11-01 2020-10-15 Electronic device for outputting audio data of plurality of applications, and method for operating same

Country Status (2)

Country Link
KR (1) KR20210053094A (en)
WO (1) WO2021085902A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067432A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Audio transmission method and system, and related apparatus

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852780B (en) * 2021-09-18 2023-03-21 联想(北京)有限公司 Audio data processing method and electronic equipment
WO2023146193A1 (en) * 2022-01-27 2023-08-03 삼성전자 주식회사 Method for controlling plurality of electronic devices, and electronic device
WO2024029748A1 (en) * 2022-08-05 2024-02-08 삼성전자주식회사 Electronic device, method, and computer-readable storage medium for displaying screens of plurality of applications on basis of form of flexible display

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140071152A (en) * 2012-12-03 2014-06-11 삼성전자주식회사 Apparatus having a plurality of touch screens and method for sound output thereof
US20170155992A1 (en) * 2015-11-30 2017-06-01 Bragi GmbH Power Management for Wireless Earpieces
KR20180106231A (en) * 2017-03-17 2018-10-01 삼성전자주식회사 Electronic device for controlling audio output and operating mehtod thereof
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium
KR20190028043A (en) * 2017-09-08 2019-03-18 삼성전자주식회사 Method for controlling audio outputs by applications respectively through earphone and electronic device for the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140071152A (en) * 2012-12-03 2014-06-11 삼성전자주식회사 Apparatus having a plurality of touch screens and method for sound output thereof
US20170155992A1 (en) * 2015-11-30 2017-06-01 Bragi GmbH Power Management for Wireless Earpieces
KR20180106231A (en) * 2017-03-17 2018-10-01 삼성전자주식회사 Electronic device for controlling audio output and operating mehtod thereof
KR20190028043A (en) * 2017-09-08 2019-03-18 삼성전자주식회사 Method for controlling audio outputs by applications respectively through earphone and electronic device for the same
CN109445740A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067432A1 (en) * 2022-09-30 2024-04-04 华为技术有限公司 Audio transmission method and system, and related apparatus

Also Published As

Publication number Publication date
KR20210053094A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
WO2021085902A1 (en) Electronic device for outputting audio data of plurality of applications, and method for operating same
WO2020204611A1 (en) Method for detecting wearing of acoustic device and acoustic device supporting the same
WO2020166911A1 (en) Screen providing method and electronic device supporting same
WO2020256497A1 (en) Bluetooth communication connection method and electronic device thereof
WO2021085838A1 (en) Source device switching method and device through bluetooth connection information sharing
WO2021162186A1 (en) Electronic device using communication channel generated by electrical connection between electronic device and external electronic device, and method for operating electronic device
WO2019088518A1 (en) Electronic device and control method for providing security notification
WO2020180056A1 (en) Electronic device for transmitting response message in bluetooth network environment and method therefor
WO2020218805A1 (en) Electronic device and method of controlling thereof
WO2021107682A1 (en) Foldable device and controlling method thereof
WO2019103471A1 (en) Method of providing vibration and electronic device for supporting same
WO2022154363A1 (en) Audio device for processing audio data and operating method thereof
WO2019231296A1 (en) An electronic device and method for preventing corrosion of an audio jack
WO2021241887A1 (en) Electronic device including antenna
WO2019190024A1 (en) Mobile electronic device and method for forwarding user input to application according to input means
WO2021132852A1 (en) Audio data output method and electronic device supporting same
WO2019135603A1 (en) Electronic device and operation method of electronic device
WO2019117561A1 (en) Electronic device for providing different services according to external device
WO2019147005A1 (en) Broadcast receiving method and apparatus of electronic device
WO2022154440A1 (en) Electronic device for processing audio data and method for operating same
WO2022145914A1 (en) Method for finding audio output device by using power supply device and power supply device thereof
WO2022030882A1 (en) Electronic device for processing audio data, and method for operating same
WO2021075752A1 (en) Method for providing screen using foldable display and electronic device for supporting same
WO2021034127A1 (en) Electronic device including multi-channel speaker system
WO2021054573A1 (en) Electronic device for setting address information and method for operating same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20883069

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20883069

Country of ref document: EP

Kind code of ref document: A1