KR20220078432A - Electronic device and method for outputting multi-channel audio using the same - Google Patents

Electronic device and method for outputting multi-channel audio using the same Download PDF

Info

Publication number
KR20220078432A
KR20220078432A KR1020210013650A KR20210013650A KR20220078432A KR 20220078432 A KR20220078432 A KR 20220078432A KR 1020210013650 A KR1020210013650 A KR 1020210013650A KR 20210013650 A KR20210013650 A KR 20210013650A KR 20220078432 A KR20220078432 A KR 20220078432A
Authority
KR
South Korea
Prior art keywords
channel
audio
electronic device
audio output
audio data
Prior art date
Application number
KR1020210013650A
Other languages
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 삼성전자주식회사
Priority to PCT/KR2021/016995 priority Critical patent/WO2022119194A1/en
Publication of KR20220078432A publication Critical patent/KR20220078432A/en
Priority to US18/183,477 priority patent/US20230217169A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1688Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being integrated loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/326Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only for microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • H04S3/008Systems employing more than two channels, e.g. quadraphonic in which the audio signals are in digital form, i.e. employing more than two discrete digital channels

Abstract

본 개시의 다양한 실시예들에 따르면, 전자 장치는, 복수의 오디오 출력 장치들, 및 상기 복수의 오디오 출력 장치들과 프로세서를 포함하며, 상기 프로세서는, 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 방향 정보를 확인하고, 상기 전자 장치의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정될 수 있다.
본 문서에 개시된 다양한 실시예들 이외의 다른 다양한 실시예가 가능하다.
According to various embodiments of the present disclosure, an electronic device includes a plurality of audio output devices, and a plurality of audio output devices and a processor, wherein the processor, based on detecting output of audio data, Check direction information of the electronic device, and transmit channel information of audio data to be output by each of the plurality of audio output devices to each audio output device based on the direction information of the electronic device, and the channel information Based on , each audio output device may be configured to select a channel and control the plurality of audio output devices to output audio data of the selected channel.
Various embodiments other than the various embodiments disclosed herein are possible.

Description

전자 장치 및 이를 이용한 멀티 채널 오디오 출력 방법 {ELECTRONIC DEVICE AND METHOD FOR OUTPUTTING MULTI-CHANNEL AUDIO USING THE SAME}Electronic device and multi-channel audio output method using same {ELECTRONIC DEVICE AND METHOD FOR OUTPUTTING MULTI-CHANNEL AUDIO USING THE SAME}

본 개시의 다양한 실시예들은 전자 장치 및 이를 이용한 멀티 채널 오디오 출력 방법에 관한 것이다.Various embodiments of the present disclosure relate to an electronic device and a multi-channel audio output method using the same.

전자 장치는 복수의 오디오 출력 장치를 이용하여 멀티 채널로 오디오 데이터를 출력할 수 있다. 예컨대, 전자 장치는 오디오 출력 장치의 개수에 대응하는 멀티 채널의 오디오 데이터를 생성하거나, 또는, 오디오 데이터에 대응하는 채널 수에 기반하여 멀티 채널의 오디오 데이터를 생성할 수 있다. 전자 장치는 생성된 멀티 채널의 오디오 데이터를 복수의 오디오 출력 장치들을 통해 출력할 수 있다.The electronic device may output audio data in multi-channels using a plurality of audio output devices. For example, the electronic device may generate multi-channel audio data corresponding to the number of audio output devices or may generate multi-channel audio data based on the number of channels corresponding to the audio data. The electronic device may output the generated multi-channel audio data through a plurality of audio output devices.

오디오 데이터를 오디오 출력 장치의 개수에 대응하도록 멀티 채널의 오디오 데이터로 생성하기 위해 소요되는 시간 및/또는 버퍼 사용으로 인한 오디오 데이터의 처리 지연이 발생할 수 있다. 예컨대, 실시간성이 요구되는 컨텐츠의 오디오 데이터(예: 게임 사운드, 라이브 스트리밍)에서 처리 지연이 발생함에 따라, 전자 장치의 사용성이 저하될 수 있다.A processing delay of the audio data may occur due to a time required to generate the audio data as multi-channel audio data to correspond to the number of audio output devices and/or the use of a buffer. For example, as processing delay occurs in audio data (eg, game sound, live streaming) of content requiring real-time performance, usability of the electronic device may deteriorate.

본 개시의 다양한 실시예들에 따른 전자 장치는, 오디오 데이터를 재생하는 경우, 전자 장치의 방향 정보에 따른 각 오디오 출력 장치가 출력할 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송할 수 있다. 각 오디오 출력 장치는 오디오 데이터의 채널 정보에 기반하여, 해당 채널의 오디오 데이터를 출력할 수 있다.When reproducing audio data, the electronic device according to various embodiments of the present disclosure may transmit channel information of audio data to be output by each audio output device according to direction information of the electronic device to each audio output device. Each audio output device may output audio data of a corresponding channel based on channel information of the audio data.

본 개시의 다양한 실시예들에 따른 전자 장치는, 복수의 오디오 출력 장치들, 및 상기 복수의 오디오 출력 장치들과 프로세서를 포함하며, 상기 프로세서는, 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 방향 정보를 확인하고, 상기 전자 장치의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정될 수 있다.An electronic device according to various embodiments of the present disclosure includes a plurality of audio output devices, and a plurality of audio output devices and a processor, wherein the processor is configured to: based on detecting output of audio data, Check direction information of the electronic device, and transmit channel information of audio data to be output by each of the plurality of audio output devices to each audio output device based on the direction information of the electronic device, and Based on this, each audio output device may be configured to select a channel and control the plurality of audio output devices to output audio data of the selected channel.

본 개시의 다양한 실시예들에 따른 전자 장치의 멀티 채널 오디오를 출력하는 방법은, 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 방향 정보를 확인하는 동작, 상기 전자 장치의 방향 정보에 기반하여, 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송하는 동작, 및 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하는 동작을 포함할 수 있다.A method of outputting multi-channel audio from an electronic device according to various embodiments of the present disclosure includes an operation of checking direction information of the electronic device based on detecting output of audio data, transmission of channel information of audio data to be output by each of the plurality of audio output devices to each audio output device, and, based on the channel information, each audio output device selects a channel and provides audio of the selected channel and controlling the plurality of audio output devices to output data.

본 개시의 다양한 실시예들에 따른 전자 장치에 구비된 각 오디오 출력 장치는, 오디오 데이터를 별도의 처리 없이, 오디오 데이터의 채널 정보에 기반하여, 해당 채널의 오디오 데이터를 출력할 수 있다. 이에 따라, 오디오 데이터의 프로세싱에 따른 시간 지연은 최소화될 수 있다. 아울러, 실시간성이 요구되는 게임 및/또는 라이브 스트리밍과 같은 컨텐츠를 재생하는 경우, 오디오 데이터와 영상 데이터 간의 이질감을 해소할 수 있어, 전자 장치의 사용성이 증대될 수 있다. Each audio output device included in the electronic device according to various embodiments of the present disclosure may output audio data of a corresponding channel based on channel information of the audio data without separate processing of the audio data. Accordingly, a time delay according to the processing of audio data can be minimized. In addition, when content such as a game and/or live streaming requiring real-time performance is reproduced, a sense of difference between audio data and image data may be resolved, and thus the usability of the electronic device may be increased.

도 1은, 다양한 실시예들에 따른, 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시예들에 따른, 프로그램을 예시하는 블록도이다.
도 3은, 다양한 실시예들에 따른, 전자 장치를 도시한 도면이다.
도 4는, 다양한 실시예들에 따른, 전자 장치를 도시한 블록도이다.
도 5a는, 다양한 실시예들에 따른, 전자 장치의 계층적인 구조(hierarchy structure)를 도시한 도면이다.
도 5b는, 다양한 실시예들에 따른, 전자 장치의 방향 정보에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 도면이다.
도 6은, 다양한 실시예들에 따른, 전자 장치의 방향 정보에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도이다.
도 7은, 다양한 실시예들에 따른, 전자 장치의 방향 정보가 변경되는 것에 기반하여, 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도이다.
도 8a는, 다양한 실시예들에 따른, 전자 장치의 펼침 상태(flat state 또는 opening state)를 도시한 도면이다.
도 8b는, 다양한 실시예들에 따른, 전자 장치의 접힘 상태(folding state 또는 closing state)를 도시한 도면이다.
도 9는, 다양한 실시예들에 따른, 폴더블 전자 장치의 방향 정보 및/또는 폴딩 상태에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도이다.
1 is a block diagram of an electronic device in a network environment, according to various embodiments of the present disclosure;
2 is a block diagram illustrating a program, in accordance with various embodiments.
3 is a diagram illustrating an electronic device according to various embodiments of the present disclosure;
4 is a block diagram illustrating an electronic device according to various embodiments of the present disclosure.
5A is a diagram illustrating a hierarchical structure of an electronic device according to various embodiments of the present disclosure;
5B is a diagram for describing a method of outputting multi-channel audio data according to direction information of an electronic device, according to various embodiments of the present disclosure;
6 is a flowchart illustrating a method of outputting multi-channel audio data according to direction information of an electronic device, according to various embodiments of the present disclosure.
7 is a flowchart illustrating a method of outputting multi-channel audio data based on a change in direction information of an electronic device, according to various embodiments of the present disclosure;
8A is a diagram illustrating a flat state or an opening state of an electronic device according to various embodiments of the present disclosure;
8B is a diagram illustrating a folding state or a closing state of an electronic device according to various embodiments of the present disclosure;
9 is a flowchart illustrating a method of outputting multi-channel audio data according to direction information and/or a folding state of a foldable electronic device, according to various embodiments of the present disclosure;

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다.1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.

도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일 실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 may be included. In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일 실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일 실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일 실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the coprocessor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). have. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.The input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일 실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output a sound signal to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일 실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일 실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 or an external electronic device (eg, a sound output module 155 ) directly or wirelessly connected to the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일 실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to one embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일 실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일 실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일 실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일 실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일 실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일 실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일 실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일 실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 includes various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일 실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an 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 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일 실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, underside) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, 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 between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

일 실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104) 간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일 실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일 실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received 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 101 . The electronic device 101 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, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는, 다양한 실시예들에 따른, 프로그램(140)을 예시하는 블록도(200)이다. 2 is a block diagram 200 illustrating a program 140, in accordance with various embodiments.

일 실시예에 따르면, 프로그램(140)은 전자 장치(101)의 하나 이상의 리소스들을 제어하기 위한 운영 체제(142), 미들웨어(144), 또는 상기 운영 체제(142)에서 실행 가능한 어플리케이션(146)을 포함할 수 있다. 운영 체제(142)는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 프로그램(140) 중 적어도 일부 프로그램은, 예를 들면, 제조 시에 전자 장치(101)에 프리로드되거나, 또는 사용자에 의해 사용 시 외부 전자 장치(예: 전자 장치(102 또는 104), 또는 서버(108))로부터 다운로드되거나 갱신 될 수 있다.According to an embodiment, the program 140 executes an operating system 142 for controlling one or more resources of the electronic device 101 , middleware 144 , or an application 146 executable in the operating system 142 . may include Operating system 142 may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM . At least some of the programs 140 are, for example, preloaded into the electronic device 101 at the time of manufacture, or an external electronic device (eg, the electronic device 102 or 104 ), or a server (eg, the electronic device 102 or 104 ) when used by a user ( 108)) or may be updated.

운영 체제(142)는 전자 장치(101)의 하나 이상의 시스템 리소스들(예: 프로세스, 메모리, 또는 전원)의 관리(예: 할당 또는 회수)를 제어할 수 있다. 운영 체제(142)는, 추가적으로 또는 대체적으로, 전자 장치(101)의 다른 하드웨어 디바이스, 예를 들면, 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 구동하기 위한 하나 이상의 드라이버 프로그램들을 포함할 수 있다.The operating system 142 may control management (eg, allocation or retrieval) of one or more system resources (eg, a process, memory, or power) of the electronic device 101 . The operating system 142 may additionally or alternatively include other hardware devices of the electronic device 101 , for example, the input module 150 , the sound output module 155 , the display module 160 , and the audio module 170 . , sensor module 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , or It may include one or more driver programs for driving the antenna module 197 .

미들웨어(144)는 전자 장치(101)의 하나 이상의 리소스들로부터 제공되는 기능 또는 정보가 어플리케이션(146)에 의해 사용될 수 있도록 다양한 기능들을 어플리케이션(146)으로 제공할 수 있다. 미들웨어(144)는, 예를 들면, 어플리케이션 매니저(201), 윈도우 매니저(203), 멀티미디어 매니저(205), 리소스 매니저(207), 파워 매니저(209), 데이터베이스 매니저(211), 패키지 매니저(213), 커넥티비티 매니저(215), 노티피케이션 매니저(217), 로케이션 매니저(219), 그래픽 매니저(221), 시큐리티 매니저(223), 통화 매니저(225), 또는 음성 인식 매니저(227)를 포함할 수 있다. The middleware 144 may provide various functions to the application 146 so that functions or information provided from one or more resources of the electronic device 101 may be used by the application 146 . The middleware 144 includes, for example, an application manager 201 , a window manager 203 , a multimedia manager 205 , a resource manager 207 , a power manager 209 , a database manager 211 , and a package manager 213 . ), a connectivity manager 215 , a notification manager 217 , a location manager 219 , a graphics manager 221 , a security manager 223 , a call manager 225 , or a voice recognition manager 227 . can

어플리케이션 매니저(201)는, 예를 들면, 어플리케이션(146)의 생명 주기를 관리할 수 있다. 윈도우 매니저(203)는, 예를 들면, 화면에서 사용되는 하나 이상의 GUI 자원들을 관리할 수 있다. 멀티미디어 매니저(205)는, 예를 들면, 미디어 파일들의 재생에 필요한 하나 이상의 포맷들을 파악하고, 그 중 선택된 해당하는 포맷에 맞는 코덱을 이용하여 상기 미디어 파일들 중 해당하는 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(207)는, 예를 들면, 어플리케이션(146)의 소스 코드 또는 메모리(130)의 메모리의 공간을 관리할 수 있다. 파워 매니저(209)는, 예를 들면, 배터리(189)의 용량, 온도 또는 전원을 관리하고, 이 중 해당 정보를 이용하여 전자 장치(101)의 동작에 필요한 관련 정보를 결정 또는 제공할 수 있다. 일 실시예에 따르면, 파워 매니저(209)는 전자 장치(101)의 바이오스(BIOS: basic input/output system)(미도시)와 연동할 수 있다.The application manager 201 may manage the life cycle of the application 146 , for example. The window manager 203 may manage one or more GUI resources used in the screen, for example. The multimedia manager 205, for example, identifies one or more formats required for playback of media files, and encodes or decodes a corresponding media file among the media files using a codec suitable for the selected format. can be done The resource manager 207 may manage the space of the source code of the application 146 or the memory of the memory 130 , for example. The power manager 209 may, for example, manage the capacity, temperature, or power of the battery 189 , and determine or provide related information necessary for the operation of the electronic device 101 by using the corresponding information. . According to an embodiment, the power manager 209 may interwork with a basic input/output system (BIOS) (not shown) of the electronic device 101 .

데이터베이스 매니저(211)는, 예를 들면, 어플리케이션(146)에 의해 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(213)는, 예를 들면, 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. 커넥티비티 매니저(215)는, 예를 들면, 전자 장치(101)와 외부 전자 장치 간의 무선 연결 또는 직접 연결을 관리할 수 있다. 노티피케이션 매니저(217)는, 예를 들면, 지정된 이벤트(예: 착신 통화, 메시지, 또는 알람)의 발생을 사용자에게 알리기 위한 기능을 제공할 수 있다. 로케이션 매니저(219)는, 예를 들면, 전자 장치(101)의 위치 정보를 관리할 수 있다. 그래픽 매니저(221)는, 예를 들면, 사용자에게 제공될 하나 이상의 그래픽 효과들 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. The database manager 211 may create, retrieve, or change a database to be used by the application 146 , for example. The package manager 213 may manage installation or update of an application distributed in the form of a package file, for example. The connectivity manager 215 may manage, for example, a wireless connection or a direct connection between the electronic device 101 and an external electronic device. The notification manager 217 may provide, for example, a function for notifying the user of the occurrence of a specified event (eg, an incoming call, a message, or an alarm). The location manager 219 may manage location information of the electronic device 101 , for example. The graphic manager 221 may manage, for example, one or more graphic effects to be provided to a user or a user interface related thereto.

시큐리티 매니저(223)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 통화(telephony) 매니저(225)는, 예를 들면, 전자 장치(101)에 의해 제공되는 음성 통화 기능 또는 영상 통화 기능을 관리할 수 있다. 음성 인식 매니저(227)는, 예를 들면, 사용자의 음성 데이터를 서버(108)로 전송하고, 그 음성 데이터에 적어도 일부 기반하여 전자 장치(101)에서 수행될 기능에 대응하는 명령어(command), 또는 그 음성 데이터에 적어도 일부 기반하여 변환된 문자 데이터를 서버(108)로부터 수신할 수 있다. 일 실시예에 따르면, 미들웨어(244)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. 일 실시예에 따르면, 미들웨어(144)의 적어도 일부는 운영 체제(142)의 일부로 포함되거나, 또는 운영 체제(142)와는 다른 별도의 소프트웨어로 구현될 수 있다.Security manager 223 may provide, for example, system security or user authentication. The telephony manager 225 may manage, for example, a voice call function or a video call function provided by the electronic device 101 . The voice recognition manager 227, for example, transmits the user's voice data to the server 108, based at least in part on the voice data, a command corresponding to a function to be performed in the electronic device 101; Alternatively, the converted text data may be received from the server 108 based at least in part on the voice data. According to an embodiment, the middleware 244 may dynamically delete some existing components or add new components. According to an embodiment, at least a portion of the middleware 144 may be included as a part of the operating system 142 or implemented as software separate from the operating system 142 .

어플리케이션(146)은, 예를 들면, 홈(251), 다이얼러(253), SMS/MMS(255), IM(instant message)(257), 브라우저(259), 카메라(261), 알람(263), 컨택트(265), 음성 인식(267), 이메일(269), 달력(271), 미디어 플레이어(273), 앨범(275), 와치(277), 헬스(279)(예: 운동량 또는 혈당과 같은 생체 정보를 측정), 또는 환경 정보(281)(예: 기압, 습도, 또는 온도 정보 측정) 어플리케이션을 포함할 수 있다. 일 실시예에 따르면, 어플리케이션(146)은 전자 장치(101)와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션(미도시)을 더 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치로 지정된 정보(예: 통화, 메시지, 또는 알람)를 전달하도록 설정된 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하도록 설정된 장치 관리 어플리케이션을 포함할 수 있다. 노티피케이션 릴레이 어플리케이션은, 예를 들면, 전자 장치(101)의 다른 어플리케이션(예: 이메일 어플리케이션(269))에서 발생된 지정된 이벤트(예: 메일 수신)에 대응하는 알림 정보를 외부 전자 장치로 전달할 수 있다. 추가적으로 또는 대체적으로, 노티피케이션 릴레이 어플리케이션은 외부 전자 장치로부터 알림 정보를 수신하여 전자 장치(101)의 사용자에게 제공할 수 있다. Application 146 includes, for example, home 251 , dialer 253 , SMS/MMS 255 , instant message (IM) 257 , browser 259 , camera 261 , alarm 263 . , contacts 265, voice recognition 267, email 269, calendar 271, media player 273, album 275, watch 277, health 279 (such as exercise or blood sugar) measuring biometric information), or environmental information 281 (eg, measuring atmospheric pressure, humidity, or temperature information). According to an embodiment, the application 146 may further include an information exchange application (not shown) capable of supporting information exchange between the electronic device 101 and an external electronic device. The information exchange application may include, for example, a notification relay application configured to transmit specified information (eg, call, message, or alarm) to an external electronic device, or a device management application configured to manage the external electronic device. have. The notification relay application, for example, transmits notification information corresponding to a specified event (eg, mail reception) generated in another application (eg, the email application 269 ) of the electronic device 101 to the external electronic device. can Additionally or alternatively, the notification relay application may receive notification information from the external electronic device and provide it to the user of the electronic device 101 .

장치 관리 어플리케이션은, 예를 들면, 전자 장치(101)와 통신하는 외부 전자 장치 또는 그 일부 구성 요소(예: 외부 전자장치의 디스플레이 모듈 또는 카메라 모듈)의 전원(예: 턴-온 또는 턴-오프) 또는 기능(예: 밝기, 해상도, 또는 포커스)을 제어할 수 있다. 장치 관리 어플리케이션은, 추가적으로 또는 대체적으로, 외부 전자 장치에서 동작하는 어플리케이션의 설치, 삭제, 또는 갱신을 지원할 수 있다.The device management application is, for example, a power supply (eg, turn-on or turn-off) of an external electronic device or some component thereof (eg, a display module or a camera module of the external electronic device) that communicates with the electronic device 101 . ) or a function (eg brightness, resolution, or focus). The device management application may additionally or alternatively support installation, deletion, or update of an application operating in an external electronic device.

도 3은, 다양한 실시예들에 따른, 전자 장치(301)를 도시한 도면(300)이다.3 is a diagram 300 illustrating an electronic device 301 according to various embodiments of the present disclosure.

도 3을 참조하면, 참조번호 <310>은 전자 장치(301)(예: 도 1의 전자 장치(101))의 방향(orientation) 정보가 세로 모드(portrait mode)인 것을 나타낸 도면이고, 참조번호 <350>은 전자 장치(301)의 방향 정보가 가로 모드(landscape mode)인 것을 나타낸 도면이다.Referring to FIG. 3 , reference number <310> is a diagram indicating that orientation information of an electronic device 301 (eg, the electronic device 101 of FIG. 1 ) is a portrait mode, and reference number <350> is a diagram illustrating that direction information of the electronic device 301 is a landscape mode.

다양한 실시예들에서, 전자 장치(301)는 센서(예: 도 1의 센서 모듈(176))를 통해 전자 장치(301)의 방향 정보를 확인할 수 있다. 전자 장치(301)의 방향 정보는 세로 모드(예: 참조번호 <310>의 상태) 및 가로 모드(예: 참조번호 <350>의 상태)를 포함할 수 있다. In various embodiments, the electronic device 301 may identify direction information of the electronic device 301 through a sensor (eg, the sensor module 176 of FIG. 1 ). The direction information of the electronic device 301 may include a portrait mode (eg, a state of reference number <310>) and a landscape mode (eg, a state of reference number <350>).

예컨대, 전자 장치(301)의 방향 정보가 세로 모드를 나타내는 상태는, 참조번호 <310>에 도시된 바와 같이, 전자 장치(301)의 제1 측면(311)이 제1 방향(예: ① 방향)으로 향하도록 배치되고, 전자 장치(301)의 제2 측면(313)이 제1 방향(예: ①)과 반대인 제2 방향(예: ② 방향)으로 향하도록 배치되는 상태를 포함할 수 있다.For example, in a state in which direction information of the electronic device 301 indicates the portrait mode, as shown in reference numeral <310>, the first side 311 of the electronic device 301 is in a first direction (eg, direction ①). ) and may include a state in which the second side 313 of the electronic device 301 faces in a second direction (eg, direction ②) opposite to the first direction (eg, ①). have.

다른 예를 들어, 전자 장치(301)의 방향 정보가 가로 모드를 나타내는 상태는, 참조번호 <350>에 도시된 바와 같이, 전자 장치(301)의 제1 측면(311)보다 긴 제3 측면(315)이 제1 방향(예: ① 방향)을 향하도록 배치되고, 전자 장치(301)의 제2 측면(313)보다 긴 제4 측면(317)이 제1 방향(예: ①)과 반대인 제2 방향(예: ② 방향)을 향하도록 배치되는 상태를 포함할 수 있다.As another example, the state in which the direction information of the electronic device 301 indicates the landscape mode is, as shown in reference numeral 350, a third side surface (311) longer than the first side surface 311 of the electronic device 301 . 315) is disposed to face the first direction (eg, direction ①), and the fourth side surface 317 longer than the second side 313 of the electronic device 301 is opposite to the first direction (eg, direction ①) It may include a state in which it is arranged to face the second direction (eg, direction ②).

다양한 실시예들에서, 전자 장치(301)는 복수의 오디오 출력 장치들을 포함할 수 있다. 예컨대, 복수의 오디오 출력 장치들은 제1 오디오 출력 장치(321), 제2 오디오 출력 장치(323), 제3 오디오 출력 장치(325), 및 제4 오디오 출력 장치(327)를 포함할 수 있다. 예컨대, 제1 오디오 출력 장치(321)는 전자 장치(301)의 제1 측면(311)의 제1 영역에 배치될 수 있다. 제2 오디오 출력 장치(323)는 전자 장치(301)의 제1 측면(311)의 제2 영역에 배치될 수 있다. 제3 오디오 출력 장치(325)는 전자 장치(301)의 제2 측면(313)의 제1 영역에 배치될 수 있다. 제4 오디오 출력 장치(327)는 전자 장치(301)의 제2 측면(313)의 제2 영역에 배치될 수 있다.In various embodiments, the electronic device 301 may include a plurality of audio output devices. For example, the plurality of audio output devices may include a first audio output device 321 , a second audio output device 323 , a third audio output device 325 , and a fourth audio output device 327 . For example, the first audio output device 321 may be disposed in a first area of the first side surface 311 of the electronic device 301 . The second audio output device 323 may be disposed in the second area of the first side 311 of the electronic device 301 . The third audio output device 325 may be disposed in the first area of the second side surface 313 of the electronic device 301 . The fourth audio output device 327 may be disposed in the second area of the second side surface 313 of the electronic device 301 .

다양한 실시예들에서, 복수의 오디오 출력 장치들(321, 323, 325, 327)은 서로 대응하는 위치에 배치될 수 있다. 예컨대, 전자 장치(301)의 제1 측면(311)의 제1 영역에 제1 오디오 출력 장치(321)가 배치될 수 있으며, 이에 대응하는 위치인 전자 장치(301)의 제2 측면(313)의 제1 영역에 제3 오디오 출력 장치(325)가 배치될 수 있다. 전자 장치(301)의 제1 측면(311)의 제2 영역에 제2 오디오 출력 장치(323)가 배치될 수 있으며, 이에 대응하는 위치인 전자 장치(301)의 제2 측면(313)의 제2 영역에 제4 오디오 출력 장치(327)가 배치될 수 있다.In various embodiments, the plurality of audio output devices 321 , 323 , 325 , and 327 may be disposed at positions corresponding to each other. For example, the first audio output device 321 may be disposed in a first area of the first side 311 of the electronic device 301 , and the second side 313 of the electronic device 301 corresponds to a position corresponding thereto. A third audio output device 325 may be disposed in the first area of . A second audio output device 323 may be disposed in a second area of the first side 311 of the electronic device 301 , and the second audio output device 323 of the second side 313 of the electronic device 301 corresponds to a position corresponding thereto. A fourth audio output device 327 may be disposed in area 2 .

다양한 실시예들에 따른 도 3에서, 전자 장치(301)가 4개의 오디오 출력 장치들을 포함하는 것으로 설명하였지만, 이에 한정하는 것은 아니다. 예컨대, 전자 장치(301)는 4개를 초과하는 개수의 오디오 출력 장치들을 포함할 수 있다. 전자 장치(301)에 4개의 오디오 출력 장치들이 배치된 위치 또한, 도 3의 실시예에 한정하는 것은 아니다.Although it has been described that the electronic device 301 includes four audio output devices in FIG. 3 according to various embodiments, the present invention is not limited thereto. For example, the electronic device 301 may include more than four audio output devices. A position in which the four audio output devices are arranged in the electronic device 301 is also not limited to the embodiment of FIG. 3 .

다양한 실시예들에서, 전자 장치(301)의 방향 정보가 세로 모드(예: 참조번호 <310>)에서 전자 장치(301)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치와 전자 장치(301)의 방향 정보가 가로 모드(예: 참조번호 <350>)에서 전자 장치(301)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치는 상이할 수 있다.In various embodiments, the direction information of the electronic device 301 includes a position where a plurality of audio output devices are disposed when the electronic device 301 is viewed from the front in a portrait mode (eg, reference number <310>) and the electronic device 301 . When the direction information of the device 301 is viewed from the front in a landscape mode (eg, reference number <350>), the positions at which the plurality of audio output devices are arranged may be different.

예컨대, 참조번호 <310>에 도시된 바와 같이, 전자 장치(301)의 방향 정보가 세로 모드에서, 전자 장치(301)를 정면에서 바라볼 때의 제1 오디오 출력 장치(321)는 전자 장치(301)의 상단 좌측에 배치될 수 있고, 제2 오디오 출력 장치(323)는 전자 장치(301)의 상단 우측에 배치될 수 있고, 제3 오디오 출력 장치(325)는 전자 장치(301)의 하단 좌측에 배치될 수 있고, 제4 오디오 출력 장치(327)는 전자 장치(301)의 하단 우측에 배치될 수 있다.For example, as shown in reference numeral <310>, when the direction information of the electronic device 301 is in the portrait mode and the first audio output device 321 is viewed from the front when the electronic device 301 is viewed from the front, the The second audio output device 323 may be disposed on the upper left side of the electronic device 301 , and the third audio output device 325 may be disposed on the lower side of the electronic device 301 . It may be disposed on the left side, and the fourth audio output device 327 may be disposed on the lower right side of the electronic device 301 .

다른 예를 들어, 참조번호 <350>에 도시된 바와 같이 전자 장치(301)의 방향 정보가 가로 모드에서, 전자 장치(301)를 정면에서 바라볼 때의 제1 오디오 출력 장치(321)는 전자 장치(301)의 우측 상단에 배치될 수 있고, 제2 오디오 출력 장치(323)는 전자 장치(301)의 우측 하단에 배치될 수 있고, 제3 오디오 출력 장치(325)는 전자 장치(301)의 좌측 상단에 배치될 수 있고, 제4 오디오 출력 장치(327)는 전자 장치(301)의 좌측 하단에 배치될 수 있다.For another example, as shown by reference numeral 350, the first audio output device 321 when the electronic device 301 is viewed from the front is in the landscape mode when the direction information of the electronic device 301 is in the landscape mode. The device 301 may be disposed on the upper right side, the second audio output device 323 may be disposed on the bottom right side of the electronic device 301 , and the third audio output device 325 may be disposed on the electronic device 301 . The fourth audio output device 327 may be disposed at the upper left side of , and the fourth audio output device 327 may be disposed at the lower left side of the electronic device 301 .

다양한 실시예들에서, 전자 장치(301)는 전자 장치(301)의 방향 정보에 따른 각 오디오 출력 장치(321, 323, 325, 또는 327)에서 최종 출력될 오디오 데이터의 채널 정보를, 각 오디오 출력 장치(321, 323, 325, 또는 327)에 전송할 수 있다. 예컨대, 오디오 데이터는 멀티 채널의 오디오 데이터를 포함할 수 있다. 멀티 채널의 오디오 데이터를 2채널의 오디오 데이터로 가정하여 설명하면, 전자 장치(301)는 제1 채널(예: L 채널(left channel)) 또는 제2 채널(예: R 채널(right channel))의 오디오 데이터를 출력하도록, 오디오 데이터의 제1 채널 정보 또는 제2 채널 정보를 포함하는 채널 정보를 각 오디오 출력 장치(321, 323, 325, 또는 327)에 전송할 수 있다.In various embodiments, the electronic device 301 outputs channel information of audio data to be finally output from each audio output device 321 , 323 , 325 , or 327 according to direction information of the electronic device 301 , each audio output. device 321 , 323 , 325 , or 327 . For example, the audio data may include multi-channel audio data. Assuming that multi-channel audio data is two-channel audio data, the electronic device 301 provides a first channel (eg, an L channel (left channel)) or a second channel (eg, an R channel (right channel)) To output audio data of , channel information including first channel information or second channel information of the audio data may be transmitted to each audio output device 321 , 323 , 325 , or 327 .

다양한 실시예들에 따른 전술한 전자 장치(301)의 방향 정보에 따른 각 오디오 출력 장치(321, 323, 325, 또는 327)에서 최종 출력될 오디오 데이터의 채널 정보를 각 오디오 출력 장치(321, 323, 325, 또는 327)에 전송하는 실시예와 관련하여, 후술하는 도 5a 내지 도 7에서 다양한 실시예들이 설명될 것이다.Channel information of audio data to be finally output from each audio output device 321 , 323 , 325 , or 327 according to the direction information of the electronic device 301 described above according to various embodiments is transferred to each audio output device 321 , 323 . , 325, or 327), various embodiments will be described with reference to FIGS. 5A to 7 to be described later.

도 4는, 다양한 실시예들에 따른, 전자 장치(401)를 도시한 블록도(400)이다.4 is a block diagram 400 illustrating an electronic device 401 according to various embodiments.

도 4를 참조하면, 전자 장치(401)(예: 도 3의 전자 장치(301))는 통신 회로(410)(예: 도 1의 통신 모듈(190)), 메모리(420)(예: 도 1의 메모리(130)), 센서 회로(430)(예: 도 1의 센서 모듈(176)), 오디오 출력 장치(440)(예: 도 1의 음향 출력 모듈(155)), 터치스크린 디스플레이(450)(예: 도 1의 디스플레이 모듈(160)), 및/또는 프로세서(460)(예: 도 1의 프로세서(120))를 포함할 수 있다.Referring to FIG. 4 , an electronic device 401 (eg, the electronic device 301 of FIG. 3 ) includes a communication circuit 410 (eg, the communication module 190 of FIG. 1 ), a memory 420 (eg, FIG. 3 ). 1), a sensor circuit 430 (eg, the sensor module 176 of FIG. 1 ), an audio output device 440 (eg, the sound output module 155 of FIG. 1 ), a touch screen display ( 450 (eg, the display module 160 of FIG. 1 ), and/or a processor 460 (eg, the processor 120 of FIG. 1 ).

본 개시의 다양한 실시예들에 따르면, 통신 회로(410)(예: 도 1의 통신 모듈(190))는 외부 전자 장치(예: 도 1의 전자 장치(102, 104), 서버(108))와 통신 채널을 설립하고, 외부 전자 장치와 다양한 데이터를 송수신하도록 지원할 수 있다.According to various embodiments of the present disclosure, the communication circuit 410 (eg, the communication module 190 of FIG. 1 ) may include an external electronic device (eg, the electronic devices 102 and 104 and the server 108 of FIG. 1 ). A communication channel may be established with an external electronic device, and various data may be transmitted and received with an external electronic device.

본 개시의 다양한 실시예들에 따르면, 메모리(420)(예: 도 1의 메모리(130))는 전자 장치(401)의 방향 정보에 따른 각 오디오 출력 장치(441, 443, 445, 또는 447)에서 최종 출력될 오디오 데이터의 채널 정보를 저장할 수 있다. 전자 장치(401)는 폴더블 장치이고,메모리(420)는 전자 장치(401)(예: 폴더블 장치)의 방향 정보 및/또는 폴딩 상태에 따른 각 오디오 출력 장치(441, 443, 445, 또는 447)에서 최종 출력될 오디오 데이터의 채널 정보를 저장할 수 있다.According to various embodiments of the present disclosure, the memory 420 (eg, the memory 130 of FIG. 1 ) may include each audio output device 441 , 443 , 445 , or 447 according to direction information of the electronic device 401 . may store channel information of audio data to be finally output in the . The electronic device 401 is a foldable device, and the memory 420 includes each audio output device 441, 443, 445, or 447), channel information of audio data to be finally output may be stored.

일 실시예에서, 메모리(420)는 전자 장치(401)의 방향 정보 및/또는 폴딩 상태에 기반하여, 각 오디오 출력 장치(441, 443, 445, 또는 447)에 전송된 오디오 데이터의 채널 정보에 기반하여, 각 오디오 출력 장치(441, 443, 445, 또는 447)에서 최종 출력할 채널을 선택하여 선택한 채널의 오디오 데이터를 출력하도록, 각 오디오 출력 장치(441, 443, 445, 또는 447)를 제어하는 동작을 수행하도록 하는 인스트럭션들을 저장할 수 있다. In an embodiment, the memory 420 may store information on the channel information of the audio data transmitted to each audio output device 441 , 443 , 445 , or 447 based on the direction information and/or the folding state of the electronic device 401 . Controls each audio output device 441 , 443 , 445 , or 447 to output audio data of the selected channel by selecting a channel to be finally output from each audio output device 441 , 443 , 445 , or 447 based on You can store instructions to perform an operation.

본 개시의 다양한 실시예들에 따르면, 센서 회로(430)(예: 도 1의 센서 모듈(176))는 가속도 센서, 지자계 센서, 및/또는 자이로 센서를 포함할 수 있다. 센서 회로(430)는 전자 장치(401)의 제1 측면(예: 도 3의 제1 측면(311))이 향하는 방향을 결정할 수 있다. 센서 회로(430)는 전자 장치(401)의 움직임 정보(예: 전자 장치(401)의 움직임 방향, 전자 장치(401)의 기울기)를 획득하고, 이에 기반하여 전자 장치(401)의 제1 측면(311)이 향하는 방향을 결정할 수 있다.According to various embodiments of the present disclosure, the sensor circuit 430 (eg, the sensor module 176 of FIG. 1 ) may include an acceleration sensor, a geomagnetic sensor, and/or a gyro sensor. The sensor circuit 430 may determine a direction in which the first side surface (eg, the first side surface 311 of FIG. 3 ) of the electronic device 401 faces. The sensor circuit 430 obtains movement information (eg, a movement direction of the electronic device 401 , a tilt of the electronic device 401 ) of the electronic device 401 , and based on this, the first side surface of the electronic device 401 . (311) can determine the direction it faces.

다양한 실시예들에 따르면, 센서 회로(430)은 근접 센서, IR(infrared) 센서, 홀 센서, 모션 센서, 각도 센서 또는 조도 센서 중 적어도 하나를 포함할 수 있다. 센서 회로(430)는 전자 장치(401)의 제1 하우징 구조 및 제2 하우징 구조 사이의 거리(또는 각도)에 기반하여 폴딩 상태(예: 펼침 상태, 접힘 상태, 및/또는 소정 각도의 펼침 상태)를 확인할 수 있다.According to various embodiments, the sensor circuit 430 may include at least one of a proximity sensor, an infrared (IR) sensor, a hall sensor, a motion sensor, an angle sensor, and an illuminance sensor. The sensor circuit 430 is configured to be configured in a folded state (eg, an unfolded state, a folded state, and/or an unfolded state of a predetermined angle) based on a distance (or angle) between the first housing structure and the second housing structure of the electronic device 401 . ) can be checked.

본 개시의 다양한 실시예들에 따르면, 오디오 출력 장치(440)(예: 도 1의 음향 출력 모듈(155))는 복수의 오디오 출력 장치들 예컨대, 제1 오디오 출력 장치(441)(예: 도 3의 제1 오디오 출력 장치(321)), 제2 오디오 출력 장치(443)(예: 도 3의 제2 오디오 출력 장치(323)), 제3 오디오 출력 장치(445)(예: 도 3의 제3 오디오 출력 장치(325)), 및 제4 오디오 출력 장치(447)(예: 도 3의 제4 오디오 출력 장치(327))를 포함할 수 있다.According to various embodiments of the present disclosure, the audio output device 440 (eg, the sound output module 155 of FIG. 1 ) may include a plurality of audio output devices, for example, the first audio output device 441 (eg, FIG. 1 ). 3 ), a second audio output device 443 (eg, the second audio output device 323 of FIG. 3 ), and a third audio output device 445 (eg, FIG. 3 ). a third audio output device 325 ), and a fourth audio output device 447 (eg, the fourth audio output device 327 of FIG. 3 ).

일 실시에에서, 각 오디오 출력 장치(441, 443, 445, 또는 447)는 프로세서(460)의 제어 하에, 오디오 데이터의 채널 정보에 기반하여 최종 출력할 채널을 선택하고, 선택한 채널의 오디오 데이터를 출력할 수 있다.In one embodiment, each audio output device 441 , 443 , 445 , or 447 selects a channel to be finally output based on channel information of the audio data under the control of the processor 460 , and selects the audio data of the selected channel can be printed out.

본 개시의 다양한 실시예들에 따르면, 터치스크린 디스플레이(450)(예: 도 1의 디스플레이 모듈(160))는 디스플레이(451)와 터치패널(453)을 포함하는 일체형으로 구성될 수 있다.According to various embodiments of the present disclosure, the touch screen display 450 (eg, the display module 160 of FIG. 1 ) may be integrally configured including the display 451 and the touch panel 453 .

일 실시예에서, 터치스크린 디스플레이(450)는 프로세서(460)의 제어 하에 영상을 표시하며, 액정 디스플레이(liquid crystal display, LCD), 발광 다이오드(light-emitting diode, LED) 디스플레이, 유기 발광 다이오드(organic light-emitting diode, OLED) 디스플레이, 또는 마이크로 전자 기계 시스템(micro electro mechanical systems, MEMS) 디스플레이, 또는 전자 종이(electronic paper) 디스플레이 중 어느 하나로 구현될 수 있다. 하지만 이에 한정하는 것은 아니다.In one embodiment, the touch screen display 450 displays an image under the control of the processor 460, a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light emitting diode ( It may be implemented as any one of an organic light-emitting diode (OLED) display, a micro electro mechanical systems (MEMS) display, or an electronic paper display. However, the present invention is not limited thereto.

일 실시예에서, 터치스크린 디스플레이(450)는 프로세서(460)의 제어 하에, 오디오 재생과 관련된 기능을 사용자가 제어할 수 있도록 하는 사용자 인터페이스(user interface)를 표시할 수 있다.In an embodiment, the touch screen display 450 may display a user interface that allows the user to control a function related to audio reproduction under the control of the processor 460 .

본 개시의 다양한 실시예들에 따르면, 프로세서(460)(예: 도 1의 프로세서(120))는 예를 들어, 마이크로 컨트롤러 유닛(MCU, micro controller unit)을 포함할 수 있고, 운영 체제(OS) 또는 임베디드 소프트웨어 프로그램을 구동하여 프로세서(460)에 연결된 다수의 하드웨어 구성 요소들을 제어할 수 있다. 프로세서(460)는, 예를 들어, 메모리(420)에 저장된 인스트럭션들(instructions)(예: 도 1의 프로그램(140))에 따라 다수의 하드웨어 구성 요소들을 제어할 수 있다.According to various embodiments of the present disclosure, the processor 460 (eg, the processor 120 of FIG. 1 ) may include, for example, a micro controller unit (MCU), and an operating system (OS). ) or an embedded software program to control a plurality of hardware components connected to the processor 460 . The processor 460 may control a plurality of hardware components according to, for example, instructions (eg, the program 140 of FIG. 1 ) stored in the memory 420 .

일 실시예에서, 프로세서(460)는 제1 프로세서(461) 및 제2 프로세서(463)를 포함할 수 있다.In one embodiment, the processor 460 may include a first processor 461 and a second processor 463 .

다양한 실시예들에서, 제1 프로세서(461)는 전자 장치(401)의 전반적인 동작 및 전자 장치(401)의 내부 구성들 간의 신호 흐름을 제어하고, 데이터 처리를 수행할 수 있다.In various embodiments, the first processor 461 may control an overall operation of the electronic device 401 and a signal flow between internal components of the electronic device 401 , and may perform data processing.

다양한 실시예들에서, 제2 프로세서(463)는 오디오 출력 장치(440) 예컨대, 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)를 제어할 수 있다. 제2 프로세서(463)는 오디오 출력 장치(440)를 제어하기 위한 하나의 프로세서로 구성되거나, 또는 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각에 포함되도록 구성될 수 있다.In various embodiments, the second processor 463 is an audio output device 440 , such as a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a second 4 may control the audio output device 447 . The second processor 463 is configured as one processor for controlling the audio output device 440 , or a plurality of audio output devices (eg, the first audio output device 441 and the second audio output device 443 ). ), the third audio output device 445 , and the fourth audio output device 447) may be included in each.

일 실시예에서, 제1 프로세서(461)는 오디오 데이터의 출력을 검출할 수 있다. 오디오 데이터는 멀티 채널의 오디오 데이터를 포함할 수 있으며, 예컨대, 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터를 포함할 수 있다. 제1 프로세서(461)는 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터를 제2 프로세서(463)에 전달할 수 있다.In an embodiment, the first processor 461 may detect an output of audio data. The audio data may include multi-channel audio data, for example, audio data of a first channel (eg, L channel) and audio data of a second channel (eg, R channel). The first processor 461 may transmit audio data of a first channel (eg, L channel) and audio data of a second channel (eg, R channel) to the second processor 463 .

일 실시예에서, 제1 프로세서(461)는 전자 장치(401)의 방향 정보를 확인할 수 있다. 장치(401)의 방향(orientation) 정보는, 세로 모드(portrait mode) 및 가로 모드(landscape mode)를 포함할 수 있다. 예컨대, 제1 프로세서(461)는 센서 회로(430)를 통해 전자 장치(401)의 제1 측면(예: 도 3의 제1 측면(311))이 향하는 방향을 결정하고, 이에 기반하여 전자 장치(401)의 방향 정보를 확인할 수 있다. 제1 프로세서(461)는 전자 장치(401)의 방향 정보에 기반하여, 전자 장치(401)에서 복수의 오디오 출력 장치들 각각이 배치된 위치에 따른 각 오디오 출력 장치에서 최종 출력될 오디오 데이터의 채널 정보를 확인할 수 있다. 제1 프로세서(461))는 복수의 오디오 출력 장치들(441, 443, 445, 및 447)이 최종 출력할 오디오 데이터의 채널 정보를 제2 프로세서(463)에 전달할 수 있다. In an embodiment, the first processor 461 may identify direction information of the electronic device 401 . The orientation information of the device 401 may include a portrait mode and a landscape mode. For example, the first processor 461 determines a direction in which the first side of the electronic device 401 (eg, the first side 311 of FIG. 3 ) faces through the sensor circuit 430 , and based on this, determines the direction of the electronic device The direction information of 401 can be confirmed. Based on the direction information of the electronic device 401 , the first processor 461 determines a channel of audio data to be finally output from each audio output device according to a location where each of the plurality of audio output devices is arranged in the electronic device 401 , based on the direction information of the electronic device 401 . information can be checked. The first processor 461 may transmit channel information of audio data to be finally output by the plurality of audio output devices 441 , 443 , 445 , and 447 to the second processor 463 .

일 실시예에서, 제2 프로세서(463)는 제1 프로세서(461)로부터 수신한 채널 정보에 기반하여, 각 오디오 출력 장치가 해당 채널의 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어할 수 있다. 예컨대, 제2 프로세서(463)는 제1 프로세서(461)로부터 수신한 오디오 데이터의 채널 정보에 기반하여, 제1 채널(예: L 채널)의 오디오 데이터 또는 제2 채널(예: R 채널)의 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어할 수 있다.In an embodiment, the second processor 463 is configured to output a plurality of audio output devices 441 and 443 such that each audio output device outputs audio data of a corresponding channel based on the channel information received from the first processor 461 . , 445, and 447) can be controlled. For example, based on the channel information of the audio data received from the first processor 461 , the second processor 463 may control audio data of a first channel (eg, L channel) or a second channel (eg, R channel). The plurality of audio output devices 441 , 443 , 445 , and 447 may be controlled to output audio data.

일 실시예에서, 제1 프로세서(461)는 전자 장치(401)의 방향 정보가 변경(예: 전환)된 것을 확인한 경우, 전자 장치(401)의 변경된 방향 정보에 따라 각 오디오 출력 장치에서 최종 출력할 오디오 데이터의 변경된 채널 정보를 제2 프로세서(463)에 전송할 수 있다. 예컨대, 전자 장치(401)의 방향 정보의 변경은, 세로 모드에서 가로 모드로 변경, 가로 모드에서 세로 모드로 변경을 포함할 수 있다. 전자 장치(401)의 방향 정보가 세로 모드(또는 가로 모드)에서 가로 모드(또는 세로 모드)로 전환되는 것에 기반하여 전자 장치(401)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들(441, 443, 445, 및 447)이 배치되는 위치 정보 또한 변경될 수 있으며, 이에 따라 최종 출력할 오디오 데이터의 채널 정보 또한 변경될 수 있다.In an embodiment, when the first processor 461 determines that the direction information of the electronic device 401 is changed (eg, switched), the first processor 461 outputs a final output from each audio output device according to the changed direction information of the electronic device 401 . The changed channel information of the audio data to be performed may be transmitted to the second processor 463 . For example, changing the direction information of the electronic device 401 may include a change from a portrait mode to a landscape mode and a change from a landscape mode to a portrait mode. A plurality of audio output devices 441 when the electronic device 401 is viewed from the front based on the direction information of the electronic device 401 being switched from the portrait mode (or landscape mode) to the landscape mode (or portrait mode) , 443 , 445 , and 447 may also be changed, and accordingly, channel information of audio data to be finally output may also be changed.

일 실시예에서, 제2 프로세서(463))는 제1 프로세서(461)로부터 수신한 채널 정보에 기반하여, 각 오디오 출력 장치(441, 443, 445, 또는 447)가 해당 채널의 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어할 수 있다.In an embodiment, the second processor 463) outputs audio data of the corresponding channel to each audio output device 441 , 443 , 445 , or 447 based on the channel information received from the first processor 461 ). The plurality of audio output devices 441 , 443 , 445 , and 447 may be controlled to do so.

다양한 실시예들에서, 전자 장치(401)가 폴더블 전자 장치로 구성되는 경우, 제1 프로세서(461)는 전자 장치(401)의 방향 정보뿐만 아니라, 전자 장치(401)의 폴딩 상태를 더 확인할 수 있다. 전자 장치(401)의 폴딩 상태는, 펼침 상태 및 닫힘 상태를 포함할 수 있다. 예컨대, 전자 장치(401)는 전자 장치(401)의 방향 정보 및/또는 폴딩 상태에 기반하여, 전자 장치(401)에서 복수의 오디오 출력 장치들 각각이 배치된 위치 정보에 따른 각 오디오 출력 장치에서 출력될 오디오 데이터의 채널 정보를 확인할 수 있다. 제1 프로세서(461))는 전자 장치(401)의 방향 정보 및/또는 폴딩 상태에 기반하여, 복수의 오디오 출력 장치들(441, 443, 445, 및 447)이 출력할 오디오 데이터의 채널 정보를 제2 프로세서(463)에 전달할 수 있다. 제2 프로세서(463))는 제1 프로세서(461)로부터 수신한 채널 정보에 기반하여, 각 오디오 출력 장치(441, 443, 445, 또는 447)가 해당 채널의 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어할 수 있다.In various embodiments, when the electronic device 401 is configured as a foldable electronic device, the first processor 461 further checks the folding state of the electronic device 401 as well as the direction information of the electronic device 401 . can The folded state of the electronic device 401 may include an unfolded state and a closed state. For example, based on the direction information and/or the folding state of the electronic device 401 , the electronic device 401 performs the location information of each of the plurality of audio output devices in the electronic device 401 in each audio output device according to location information. You can check the channel information of the audio data to be output. The first processor 461 ) receives channel information of audio data to be output by the plurality of audio output devices 441 , 443 , 445 , and 447 based on the direction information and/or the folding state of the electronic device 401 . may be transmitted to the second processor 463 . The second processor 463) outputs a plurality of audio outputs so that each audio output device 441 , 443 , 445 , or 447 outputs audio data of a corresponding channel based on the channel information received from the first processor 461 . Devices 441 , 443 , 445 , and 447 may be controlled.

다양한 실시예들에 따른 전자 장치(401)는, 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)), 및 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))과 작동적으로 연결된 프로세서(460)를 포함하며, 상기 프로세서(460)는, 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치(401)의 방향 정보를 확인하고, 상기 전자 장치(401)의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정될 수 있다.The electronic device 401 according to various embodiments includes a plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a fourth audio output device 447 ), and the plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a second and a processor (460) operatively connected to 4 audio output device (447), wherein the processor (460) checks direction information of the electronic device (401) based on detecting the output of audio data and, based on the direction information of the electronic device 401, transmit channel information of audio data to be output by each of the plurality of audio output devices to the respective audio output devices, and based on the channel information, Each audio output device may be configured to select a channel and control the plurality of audio output devices to output audio data of the selected channel.

다양한 실시예들에 따른 상기 프로세서(460)는, 상기 오디오 데이터를 멀티 채널의 오디오 데이터로 생성하고, 및 상기 생성된 멀티 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))에 전달하도록 설정되고, 상기 멀티 채널의 오디오 데이터는, 제1 채널의 오디오 데이터 및 제2 채널의 오디오 데이터를 포함할 수 있다.The processor 460 according to various embodiments generates the audio data as multi-channel audio data, and uses the generated multi-channel audio data to the plurality of audio output devices (eg, a first audio output device). device 441 , second audio output device 443 , third audio output device 445 , and fourth audio output device 447 ), wherein the multi-channel audio data includes a first channel may include audio data of the second channel and audio data of the second channel.

다양한 실시예들에 따른 상기 프로세서(460)는, 상기 오디오 데이터의 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 중 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하고, 및 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 중 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하도록 설정될 수 있다.The processor 460 according to various embodiments of the present disclosure may transmit audio data of the first channel among the multi-channel audio data to the plurality of audio output devices (eg, a first to output through at least some of the audio output devices of the audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 , the at least part controls an audio output device of the multi-channel audio data, and transmits the second channel audio data among the multi-channel audio data to the plurality of audio output devices (eg, a first audio output device 441 and a second audio output device 443 ). ), the third audio output device 445 , and the fourth audio output device 447) may be configured to control the audio output devices of at least some other audio output devices.

다양한 실시예들에 따른 상기 프로세서(460)는, 상기 전자 장치(401)의 방향 정보의 변경을 검출하는 것에 기반하여, 상기 변경된 방향 정보에 따른 상기 각 오디오 출력 장치가 출력할 오디오 데이터의 변경된 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및 상기 변경된 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하도록 설정될 수 있다.The processor 460 according to various embodiments is based on detecting a change in the direction information of the electronic device 401, and the changed channel of audio data to be output by the respective audio output devices according to the changed direction information The plurality of audio output devices (eg, first one) transmit information to the respective audio output devices, and based on the changed channel information, the respective audio output devices select a channel and output audio data of the selected channel. It may be set to control the audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 .

다양한 실시예들에 따른 상기 프로세서(460)는, 상기 오디오 데이터의 변경된 채널 정보에 기반하여, 상기 수신한 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 중 상기 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하고, 및 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 중 상기 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하도록 설정될 수 있다.The processor 460 according to various embodiments of the present disclosure may include, based on the changed channel information of the audio data, the audio data of the second channel among the received multi-channel audio data to the plurality of audio output devices ( Example: output through at least some audio output devices among the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) to control the at least some of the audio output devices, and to transmit the first channel audio data among the multi-channel audio data to the plurality of audio output devices (eg, a first audio output device 441, a second control the at least other audio output devices to output through the at least other audio output devices among the audio output device 443, the third audio output device 445, and the fourth audio output device 447 can be set to

다양한 실시예들에 따른 상기 전자 장치(401)는, 폴더블 전자 장치를 포함할 수 있다.The electronic device 401 according to various embodiments may include a foldable electronic device.

다양한 실시예들에 따른 상기 전자 장치(401)는 폴더블 전자 장치이고, 상기 프로세서(460)는, 상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치(401)의 폴딩 상태를 확인하도록 설정될 수 있다.The electronic device 401 according to various embodiments is a foldable electronic device, and the processor 460 is configured to check a folding state of the electronic device 401 based on detecting the output of the audio data. can be set.

다양한 실시예들에 따른 상기 프로세서(460)는, 상기 전자 장치(401)의 방향 정보 및/또는 상기 폴딩 상태에 기반하여, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각이 출력할 오디오 데이터의 제2 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및 상기 제2 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하도록 설정될 수 있다.The processor 460 according to various embodiments of the present disclosure may include, based on the direction information of the electronic device 401 and/or the folding state, the plurality of audio output devices (eg, the first audio output device 441 ). , the second audio output device 443, the third audio output device 445, and the fourth audio output device 447) transmit second channel information of the audio data to be output to each audio output device, and the plurality of audio output devices (eg, the first audio output device 441 , the second audio It may be set to control the output device 443 , the third audio output device 445 , and the fourth audio output device 447 .

다양한 실시예들에 따른 상기 프로세서(460)는, 제1 프로세서(461) 및 제2 프로세서(463)를 포함하며, 상기 제1 프로세서(461)는, 상기 전자 장치(401)의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각이 출력할 오디오 데이터의 채널 정보를 상기 제2 프로세서(463)에 전송하고, 상기 제2 프로세서(463)는, 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치에 설정된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하도록 설정될 수 있다.The processor 460 according to various embodiments includes a first processor 461 and a second processor 463 , and the first processor 461 is based on the direction information of the electronic device 401 . Thus, each of the plurality of audio output devices (eg, the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) The channel information of the audio data to be output is transmitted to the second processor 463, and the second processor 463 outputs audio data of a channel set to each audio output device based on the channel information. to control the plurality of audio output devices (eg, the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) can be set.

다양한 실시예들에 따른 상기 제2 프로세서(436)는, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각에 포함되도록 설정될 수 있다.The second processor 436 according to various embodiments may include the plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , and a third audio output device 445 ). ), and the fourth audio output device 447) may be set to be included in each.

다양한 실시예들에서, 상기 전자 장치(401)의 방향 정보는, 세로 모드 및 가로 모드를 포함하며, 및 상기 전자 장치(401)의 폴딩 상태는, 상기 전자 장치(401)의 펼침 상태 및 접힘 상태를 포함할 수 있다.도 5a는, 다양한 실시예들에 따른, 전자 장치(401)의 계층적인 구조(hierarchy structure)를 도시한 도면(500)이다.In various embodiments, the direction information of the electronic device 401 includes a portrait mode and a landscape mode, and the folded state of the electronic device 401 includes an unfolded state and a folded state of the electronic device 401 . 5A is a diagram 500 illustrating a hierarchical structure of an electronic device 401 according to various embodiments of the present disclosure.

도 5a를 참조하면, 전자 장치(예: 도 4의 전자 장치(401))는 소프트웨어와 하드웨어를 포함할 수 있다.Referring to FIG. 5A , an electronic device (eg, the electronic device 401 of FIG. 4 ) may include software and hardware.

일 실시예에서, 소프트웨어(예: 도 1의 프로그램(140))는 비휘발성 메모리(예: 도 1의 비휘발성 메모리(134))에서 휘발성 메모리(예: 도 1의 휘발성 메모리(132))로 로드되어, 프로세서(예: 도 4의 프로세서(460))에 의해 실행될 수 있다. 소프트웨어는 어플리케이션 계층(application layer)(510), 플랫폼 계층(platform layer)(520), 커널 계층(kernel layer)(530), 및/또는 오디오 계층(audio layer)(540)을 포함할 수 있다. In one embodiment, software (eg, program 140 in FIG. 1 ) transfers from non-volatile memory (eg, non-volatile memory 134 in FIG. 1 ) to volatile memory (eg, volatile memory 132 in FIG. 1 ). It may be loaded and executed by a processor (eg, the processor 460 of FIG. 4 ). The software may include an application layer 510 , a platform layer 520 , a kernel layer 530 , and/or an audio layer 540 .

일 실시예에서, 하드웨어는 입출력 장치(input/output device)(550)를 포함할 수 있다. 예컨대, 입출력 장치(550)는 오디오 출력 장치(551)(예: 도 4의 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))를 포함할 수 있다.In one embodiment, the hardware may include an input/output device 550 . For example, the input/output device 550 includes the audio output device 551 (eg, the first audio output device 441 of FIG. 4 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447).

일 실시예에서, 어플리케이션 계층(510), 플랫폼 계층(520), 커널 계층(530), 및 오디오 계층(540)은 제1 프로세서(예: 도 4의 제1 프로세서(461))에서 실행될 수 있다. 입출력 장치(550)는 제2 프로세서(예: 도 4의 제2 프로세서(463))에 의해 제어될 수 있다.In an embodiment, the application layer 510 , the platform layer 520 , the kernel layer 530 , and the audio layer 540 may be executed in a first processor (eg, the first processor 461 of FIG. 4 ). . The input/output device 550 may be controlled by a second processor (eg, the second processor 463 of FIG. 4 ).

다양한 실시예들에서, 어플리케이션 계층(510)은 미디어 어플리케이션(media application)(511)(예: 도 2의 미디어 플레이어(273))을 포함할 수 있다.In various embodiments, the application layer 510 may include a media application 511 (eg, the media player 273 of FIG. 2 ).

다양한 실시예들에서, 미디어 어플리케이션(511)은 오디오 재생과 관련된 기능(예: 오디오 재생을 활성화하는 기능, 오디오 재생을 비활성화하는 기능, 오디오 재생 시 볼륨을 조절하는 기능, 오디오 이퀄라이저 기능, 또는 오디오 재생을 제어하는 기능)을 제어하기 위한 어플리케이션을 포함할 수 있다. 미디어 어플리케이션(511)은 오디오 재생과 관련된 기능을 사용자가 제어할 수 있도록 하는 사용자 인터페이스(user interface)를 제공할 수 있다. 미디어 어플리케이션(511)은 사용자 인터페이스에서 사용자 입력이 수신되면, 수신된 사용자 입력에 대응하는 설정 정보를 플랫폼 계층(520)의 오디오 프레임워크(523)로 전송할 수 있다.In various embodiments, the media application 511 provides a function related to audio playback (eg, a function for activating audio playback, a function for deactivating audio playback, a function for adjusting a volume during audio playback, an audio equalizer function, or an audio playback function). It may include an application for controlling the function). The media application 511 may provide a user interface that allows a user to control a function related to audio reproduction. When a user input is received from the user interface, the media application 511 may transmit setting information corresponding to the received user input to the audio framework 523 of the platform layer 520 .

다양한 실시예들에서, 미디어 어플리케이션(511)은 멀티 채널의 오디오 데이터를 출력할 수 있다. 예컨대, 멀티 채널의 오디오 데이터는, 2채널(또는, 스테레오), 2.1 채널, 5.1 채널, 7.1 채널 오디오와 같은 입체적인 음향을 제공하기 위해 이용되는 다양한 종류의 멀티 채널의 오디오 데이터를 포함할 수 있다. 미디어 어플리케이션(511)은 출력되는 오디오 데이터를 처리하여 멀티 채널의 오디오 데이터를 생성할 수 있다. 예컨대, 멀티 채널의 오디오 데이터를 2채널의 오디오 데이터로 가정하여 설명하면, 미디어 어플리케이션(511)은 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터를 생성할 수 있다.In various embodiments, the media application 511 may output multi-channel audio data. For example, the multi-channel audio data may include various types of multi-channel audio data used to provide stereoscopic sound such as 2-channel (or stereo), 2.1-channel, 5.1-channel, and 7.1-channel audio. The media application 511 may generate multi-channel audio data by processing the output audio data. For example, assuming that multi-channel audio data is two-channel audio data, the media application 511 provides audio data of a first channel (eg, L channel) and audio data of a second channel (eg, R channel). can create

다양한 실시예들에서, 미디어 어플리케이션(511)은 생성된 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터(563)를 플랫폼 계층(520) 및 커널 계층(530)을 통해 오디오 계층(540)의 스트림 모듈(541)에 전달할 수 있다.In various embodiments, the media application 511 transmits the generated audio data of a first channel (eg, L channel) and audio data 563 of a second channel (eg, R channel) to the platform layer 520 and the kernel. It may be transmitted to the stream module 541 of the audio layer 540 through the layer 530 .

다양한 실시예들에서, 플랫폼 계층(520)은 멀티미디어 프레임워크(multimedia framework)(521)(예: 도 2의 멀티미디어 매니저(205)), 오디오 프레임워크(audio framework)(523)(예: 도 2의 멀티미디어 매니저(205)), 및/또는 오디오 하드웨어 추상화 계층(audio HAL(hardware abstraction layer))(525)(예: 도 2의 멀티미디어 매니저(205))을 포함할 수 있다. 오디오 하드웨어 추상화 계층(525)은 제어 모듈(control module)(527)을 포함할 수 있다. In various embodiments, the platform layer 520 includes a multimedia framework 521 (eg, multimedia manager 205 of FIG. 2 ), an audio framework 523 (eg, FIG. 2 ). of the multimedia manager 205), and/or an audio hardware abstraction layer (HAL) 525 (eg, the multimedia manager 205 of FIG. 2 ). The audio hardware abstraction layer 525 may include a control module 527 .

다양한 실시예들에서, 오디오 하드웨어 추상화 계층(525)의 제어 모듈(527)은 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어하기 위한 제어 데이터(control data)(565) 예컨대, 복수의 오디오 출력 장치들(441, 443, 445, 및 447)이 출력할 오디오 데이터의 채널 정보를 입출력 장치(550)에 전달할 수 있다. 예컨대, 전자 장치(401)의 방향 정보에 따른 각 오디오 출력 장치(441, 443, 445, 또는 447)에서 최종 출력될 오디오 데이터의 채널 정보는 메모리(예: 도 4의 메모리(420))에 저장되어 있을 수 있다. 제어 모듈(527)은 메모리(420)에 저장된 전자 장치(401)의 방향 정보에 따른 각 오디오 출력 장치(441, 443, 445, 또는 447)가 출력할 오디오 데이터의 채널 정보를 입출력 장치(550)에 전달할 수 있다.In various embodiments, the control module 527 of the audio hardware abstraction layer 525 provides control data 565 for controlling the plurality of audio output devices 441 , 443 , 445 , and 447 , such as , the plurality of audio output devices 441 , 443 , 445 , and 447 may transmit channel information of audio data to be output to the input/output device 550 . For example, channel information of audio data to be finally output from each audio output device 441 , 443 , 445 , or 447 according to the direction information of the electronic device 401 is stored in a memory (eg, the memory 420 of FIG. 4 ). may have been The control module 527 transmits channel information of audio data to be output by each audio output device 441 , 443 , 445 , or 447 according to the direction information of the electronic device 401 stored in the memory 420 to the input/output device 550 . can be forwarded to

다양한 실시예들에서, 멀티미디어 프레임워크(521)는 미디어 어플리케이션(511)이 재생하는 오디오의 재생 관련 API(application programming interface)를 제공할 수 있다. 멀티미디어 프레임워크(521)는 재생될 오디오 데이터를 디코딩하는 방식으로, 오디오 계층(540)에 제공될 수 있는 포맷(예: PCM(pulse code modulation) 데이터 포맷)으로 변환할 수 있다. In various embodiments, the multimedia framework 521 may provide an application programming interface (API) related to playback of audio played by the media application 511 . The multimedia framework 521 may convert the audio data to be reproduced into a format (eg, a pulse code modulation (PCM) data format) that can be provided to the audio layer 540 in a manner of decoding the audio data to be reproduced.

다양한 실시예들에서, 멀티미디어 프레임워크(521)는 오디오 데이터에 대한 정보(예: 오디오 데이터의 샘플링 레이트(sampling rate), 채널의 수, 및/또는 오디오 데이터의 크기(bit-width))를 오디오 프레임워크(523)로 전송할 수 있다.In various embodiments, the multimedia framework 521 transmits information about the audio data (eg, a sampling rate of the audio data, the number of channels, and/or the bit-width of the audio data) to the audio data. may be transmitted to the framework 523 .

다양한 실시예들에서, 오디오 프레임워크(523)는 미디어 어플리케이션(511)이 오디오 출력을 수행할 수 있는 전자 장치(401)의 구성 요소(예: 도 4의 오디오 출력 장치(440))가 지원 가능한 기능들을 제공할 수 있다.In various embodiments, the audio framework 523 may be supported by a component (eg, the audio output device 440 of FIG. 4 ) of the electronic device 401 to which the media application 511 may output audio. functions can be provided.

다양한 실시예들에서, 오디오 프레임워크(523)는 멀티미디어 프레임워크(521)가 전송한 오디오 데이터를 수신하고, 수신한 오디오 데이터를 오디오 스트림(audio stream)으로 변환할 수 있다. 오디오 스트림은 다양한 방식으로 구분된 오디오 데이터를 의미할 수 있다. 예컨대, 오디오 스트림은 오디오 스트림을 처리하기 위해 요구되는 버퍼의 크기에 따라 구분된 오디오 데이터를 의미할 수 있다. 버퍼는 스트림 모듈(541) 상에 구현된 버퍼를 포함할 수 있다. 예컨대, 오디오 스트림은 상대적으로 큰 크기를 가지는 버퍼가 요구되는 미디어 어플리케이션(511)이 제공하는 오디오를 포함하는 오디오 스트림, 상대적으로 작은 크기를 가지는 버퍼가 요구되는 알림 어플리케이션 또는 전화 어플리케이션이 제공하는 오디오(예: 노티 사운드, 링-톤 사운드)를 포함하는 오디오 스트림을 포함할 수 있다. 오디오 스트림은 출력되는 채널 또는 출력 장치에 따라 구분될 수 있다.In various embodiments, the audio framework 523 may receive audio data transmitted by the multimedia framework 521 and convert the received audio data into an audio stream. The audio stream may mean audio data divided in various ways. For example, the audio stream may mean audio data divided according to the size of a buffer required to process the audio stream. The buffer may include a buffer implemented on the stream module 541 . For example, the audio stream includes an audio stream including audio provided by the media application 511 requiring a buffer having a relatively large size, an audio stream provided by a notification application or a phone application requiring a buffer having a relatively small size ( For example: Noti sounds, ring-tone sounds). The audio stream may be classified according to an output channel or an output device.

다양한 실시예들에서, 오디오 하드웨어 추상화 계층(525)은 하드웨어(예: 입출력 장치(550))와 미디어 어플리케이션(511), 멀티미디어 프레임워크(521), 또는 오디오 프레임워크(523) 사이의 추상화된 계층을 관리할 수 있다. 오디오 하드웨어 추상화 계층(525)은 오디오 프레임워크(523)가 전송한 입출력 장치(550)에 대한 정보를 수신하고, 입출력 장치(550)를 제어하기 위한 제어 신호를 생성하고, 제어 신호를 오디오 드라이버(audio driver)(533)로 전송할 수 있다.In various embodiments, audio hardware abstraction layer 525 is an abstraction layer between hardware (eg, input/output device 550 ) and media application 511 , multimedia framework 521 , or audio framework 523 . can manage The audio hardware abstraction layer 525 receives information on the input/output device 550 transmitted by the audio framework 523, generates a control signal for controlling the input/output device 550, and sends the control signal to the audio driver ( audio driver) 533 .

다양한 실시예들에서, 오디오 하드웨어 추상화 계층(525)은 오디오 스트림의 정보(예: 오디오 스트림의 샘플링 레이트, 채널의 수, 및/또는 오디오 스트림의 크기), 입출력 장치(550)에 대한 정보에 기반하여 오디오 드라이버(533)를 제어할 수 있다.In various embodiments, the audio hardware abstraction layer 525 is based on information on the audio stream (eg, the sampling rate of the audio stream, the number of channels, and/or the size of the audio stream), information on the input/output device 550 . to control the audio driver 533 .

다양한 실시예들에서, 커널 계층(530)은 오디오를 출력하는 하드웨어(예: 입출력 장치(550))를 제어하는 엔티티들이 구현된 계층일 수 있다. 커널 계층(530)은 오디오를 출력하는 하드웨어를 제어하는 오디오 드라이버(533) 및 오디오 하드웨어 추상화 계층(525)과 오디오 드라이버(533) 사이의 인터페이스를 제공하는 ALSA(advanced linux sound architecture) API & SOC 코어(system-on-a-chip core)(531)를 포함할 수 있다.In various embodiments, the kernel layer 530 may be a layer in which entities that control hardware outputting audio (eg, the input/output device 550) are implemented. The kernel layer 530 is an advanced linux sound architecture (ALSA) API & SOC core that provides an interface between an audio driver 533 and an audio hardware abstraction layer 525 and an audio driver 533 that control hardware outputting audio. (system-on-a-chip core) 531 may be included.

다양한 실시예들에서, 오디오 드라이버(533)는 오디오 하드웨어 추상화 계층(525)이 전송하는 제어 신호를 수신하고, 제어 신호에 기반하여 오디오를 출력하는 하드웨어(예: 입출력 장치(550))를 제어할 수 있다.In various embodiments, the audio driver 533 receives a control signal transmitted by the audio hardware abstraction layer 525 and controls hardware (eg, the input/output device 550 ) that outputs audio based on the control signal. can

다양한 실시예들에서, 오디오 계층(540)은 어플리케이션 계층(510) 및 플랫폼 계층(520)에서 생성된 오디오 스트림을 처리하고, 오디오 스트림을 입출력 장치(550)로 출력하기 위한 다양한 동작을 수행할 수 있다. 오디오 계층(540)은 스트림 모듈(stream module)(541), 디바이스 모듈(device module)(543), 및/또는 포트 모듈(port module)(545)을 포함할 수 있다.In various embodiments, the audio layer 540 may process the audio stream generated by the application layer 510 and the platform layer 520 and perform various operations for outputting the audio stream to the input/output device 550 . have. The audio layer 540 may include a stream module 541 , a device module 543 , and/or a port module 545 .

다양한 실시예들에서, 스트림 모듈(541)은 플랫폼 계층(520)의 오디오 하드웨어 추상화 계층(525)에서 전송한 오디오 스트림 및 제어 신호를 수신하고, 제어 신호에 기반하여 오디오 스트림을 처리할 수 있다. 스트림 모듈(541)에 포함된 스트림 프로세싱 모듈(stream processing module)(542)은 오디오 재생을 요청하는 제어 신호를 수신하고, 수신한 오디오 스트림에 대한 다양한 효과(예: 음장 효과)를 적용하고, 처리된 오디오 스트림을 디바이스 모듈(543)로 전송할 수 있다. 스트림 프로세싱 모듈(542)은 오디오 스트림 단위 별로 오디오 스트림을 처리할 수 있다. 스트림 프로세싱 모듈(542)은 오디오 스트림을 처리하기 위해서, 버퍼를 포함할 수 있다.In various embodiments, the stream module 541 may receive an audio stream and a control signal transmitted from the audio hardware abstraction layer 525 of the platform layer 520 , and process the audio stream based on the control signal. A stream processing module 542 included in the stream module 541 receives a control signal requesting audio reproduction, applies various effects (eg, sound field effect) to the received audio stream, and processes it. The converted audio stream may be transmitted to the device module 543 . The stream processing module 542 may process an audio stream for each audio stream unit. The stream processing module 542 may include a buffer to process the audio stream.

다양한 실시예들에서, 디바이스 모듈(543)은 스트림 모듈(541)에서 전송한 오디오 스트림에 대한 후처리(post-processing)를 수행하는 디바이스 프로세싱 모듈(device processing module)(544)을 포함할 수 있다.In various embodiments, the device module 543 may include a device processing module 544 that performs post-processing on the audio stream transmitted from the stream module 541 . .

다양한 실시예들에서, 포트 모듈(port module)(545)은 디바이스 모듈(543)이 전송하는 오디오 스트림을 출력 포트에 할당하는 출력 포트 모듈(output port module)(546)을 포함할 수 있다.In various embodiments, the port module 545 may include an output port module 546 that allocates an audio stream transmitted by the device module 543 to an output port.

다양한 실시예들에서, 입출력 장치(550)는 오디오 하드웨어 추상화 계층(525)의 제어 모듈(527)로부터 복수의 오디오 출력 장치들이 출력할 오디오 데이터의 채널 정보(예: 제어 데이터(565))를 수신할 수 있다.In various embodiments, the input/output device 550 receives channel information (eg, control data 565 ) of audio data to be output by a plurality of audio output devices from the control module 527 of the audio hardware abstraction layer 525 . can do.

다양한 실시예들에서, 입출력 장치(550)는 미디어 어플리케이션(511)으로부터 출력되는 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터(563)를 오디오 계층(540)의 스트림 모듈(541), 장치 모듈(543), 포트 모듈(545)을 통해 수신할 수 있다. 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터(563)는 별도의 프로세싱을 거치지 않는 원본의 제1 채널의 오디오 데이터 및 제2 채널의 오디오 데이터를 포함할 수 있다. In various embodiments, the input/output device 550 transmits audio data of a first channel (eg, L channel) and audio data 563 of a second channel (eg, R channel) output from the media application 511 . It may be received through the stream module 541 , the device module 543 , and the port module 545 of the layer 540 . The audio data 563 of the first channel (eg, L channel) and the audio data 563 of the second channel (eg, R channel) are original audio data of the first channel and the audio data of the second channel that do not go through separate processing. may include

다양한 실시예들에서, 입출력 장치(550)는 커널 계층(530)을 통해 오디오 하드웨어 추상화 계층(525)의 제어 모듈(527)로부터 전자 장치(401)의 방향 정보에 따른 오디오 출력 장치(551)를 제어하기 위한 제어 데이터(565) 예컨대, 복수의 오디오 출력 장치들(441, 443, 445, 447)이 출력할 오디오 데이터의 채널 정보를 수신할 수 있다.In various embodiments, the input/output device 550 receives the audio output device 551 according to direction information of the electronic device 401 from the control module 527 of the audio hardware abstraction layer 525 through the kernel layer 530 . Control data 565 for controlling, for example, may receive channel information of audio data to be output by the plurality of audio output devices 441 , 443 , 445 , 447 .

다양한 실시예들에 따른, 입출력 장치(550)에 포함된 각 오디오 출력 장치(441, 443, 445, 447)는 채널 정보에 기반하여, 제1 채널(예: L 채널)의 오디오 데이터 또는 제2 채널(예: R 채널)의 오디오 데이터(563)를 출력(561)할 수 있다.According to various embodiments, each audio output device 441 , 443 , 445 , 447 included in the input/output device 550 includes audio data of a first channel (eg, L channel) or second audio data based on channel information. Audio data 563 of a channel (eg, R channel) may be output 561 .

다양한 실시예들에서, 전자 장치(401)가 폴더블 장치로 구성되는 경우, 입출력 장치(550)는 커널 계층(530)을 통해 오디오 하드웨어 추상화 계층(525)의 제어 모듈(527)로부터 전자 장치(401)의 방향 정보 및/또는 폴딩 상태에 따른 복수의 오디오 출력 장치들(441, 443, 445, 및 447)을 제어하기 위한 제어 데이터(565) 예컨대, 복수의 오디오 출력 장치들(441, 443, 445, 및 447)이 출력할 오디오 데이터의 채널 정보를 수신할 수 있다.In various embodiments, when the electronic device 401 is configured as a foldable device, the input/output device 550 receives the control module 527 of the audio hardware abstraction layer 525 from the electronic device ( Control data 565 for controlling the plurality of audio output devices 441 , 443 , 445 , and 447 according to the direction information and/or the folding state of the 401 , for example, the plurality of audio output devices 441 , 443 , 445 and 447 may receive channel information of audio data to be output.

도 5b는, 다양한 실시예들에 따른, 전자 장치(401)의 방향 정보에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 도면(570)이다.FIG. 5B is a diagram 570 for explaining a method of outputting multi-channel audio data according to direction information of the electronic device 401, according to various embodiments of the present disclosure.

도 5b를 참조하면, 어플리케이션 계층(510)의 미디어 어플리케이션(media application)(511)은 L 채널(left channel)(예: 제1 채널) 오디오 데이터 및 R 채널(right channel)(예: 제2 채널)의 오디오 데이터를 재생(571)할 수 있다.Referring to FIG. 5B , a media application 511 of the application layer 510 includes an L channel (left channel) (eg, a first channel) audio data and an R channel (right channel) (eg, a second channel). ) of the audio data may be reproduced 571 .

일 실시예예에서, 재생되는 L 채널(예: 제1 채널)의 오디오 데이터 및 R 채널(예: 제2 채널)의 오디오 데이터(571)는 별도의 프로세싱 없이(573), 오디오 계층(540)의 스트림 모듈(541), 및 장치 모듈(543)을 통해 포트 모듈(545)로 전달될 수 있다. 포트 모듈(545)은 하나의 출력 포트를 통해 재생되는 L 채널(예: 제1 채널)의 오디오 데이터 및 R 채널(예: 제2 채널)의 오디오 데이터(571)를 오디오 출력 장치 예컨대, 제1 앰프(예: 도 4의 제1 오디오 출력 장치(441)), 제2 앰프(예: 도 4의 제2 오디오 출력 장치(443)), 제3 앰프(예: 도 4의 제3 오디오 출력 장치(445)), 및 제4 앰프(예: 도 4의 제4 오디오 출력 장치(447))에 출력(575)할 수 있다.In one embodiment, the audio data of the L channel (eg, the first channel) and the audio data 571 of the R channel (eg, the second channel) are reproduced without separate processing 573 of the audio layer 540 . It may be transmitted to the port module 545 through the stream module 541 and the device module 543 . The port module 545 transmits the audio data of the L channel (eg, the first channel) and the audio data 571 of the R channel (eg, the second channel) reproduced through one output port to the audio output device, for example, the first An amplifier (eg, the first audio output device 441 of FIG. 4 ), a second amplifier (eg, the second audio output device 443 of FIG. 4 ), a third amplifier (eg, the third audio output device of FIG. 4 ) 445 ), and a fourth amplifier (eg, the fourth audio output device 447 of FIG. 4 ) may output 575 .

일 실시예에서, 오디오 하드웨어 추상화 계층(525)의 제어 모듈(527)은 제어 소프트웨어를 통해 전자 장치(401)의 방향 정보(예: 세로 모드 및 가로 모드)에 따른 각 앰프가 출력할 오디오 데이터의 채널 정보(예: L 채널(예: 제1 채널) 정보 및 R 채널(예: 제2 채널) 정보)를 오디오 출력 장치 예컨대, 제1 앰프, 제2 앰프, 제3 앰프, 및 제4 앰프에 전송(577)할 수 있다.In one embodiment, the control module 527 of the audio hardware abstraction layer 525 controls the audio data to be output by each amplifier according to direction information (eg, portrait mode and landscape mode) of the electronic device 401 through the control software. Channel information (eg, L channel (eg, first channel) information and R channel (eg, second channel) information) to an audio output device such as the first amplifier, the second amplifier, the third amplifier, and the fourth amplifier Can transmit (577).

일 실시예에서, 각 앰프(예: 제1 앰프, 제2 앰프, 제3 앰프, 또는 제4 앰프)는 수신한 채널 정보에 기반하여, L 채널의 오디오 데이터 또는 R 채널의 오디오 데이터를 출력(579)할 수 있다. 예컨대, 전자 장치(401)는 전자 장치(401)의 방향 정보가 세로 모드인 경우, 수신한 채널 정보에 기반하여 제1 앰프 및/또는 제3 앰프가 L 채널의 오디오 데이터를 출력하도록 제어하고, 제2 앰프 및/또는 제4 앰프가 R 채널의 오디오 데이터를 출력하도록, 각 앰프를 제어할 수 있다. 다른 예를 들어, 전자 장치(401)는 전자 장치(401)의 방향 정보가 가로 모드인 경우, 수신한 채널 정보에 기반하여 제1 앰프 및/또는 제2 앰프가 R 채널의 오디오 데이터를 출력하도록 제어하고, 제3 앰프 및/또는 제4 앰프가 L 채널의 오디오 데이터를 출력하도록, 각 앰프를 제어할 수 있다.In one embodiment, each amplifier (eg, the first amplifier, the second amplifier, the third amplifier, or the fourth amplifier) outputs audio data of the L channel or the audio data of the R channel based on the received channel information ( 579) can be done. For example, when the direction information of the electronic device 401 is in the portrait mode, the electronic device 401 controls the first amplifier and/or the third amplifier to output L-channel audio data based on the received channel information, Each amplifier may be controlled so that the second amplifier and/or the fourth amplifier output audio data of the R channel. For another example, when the direction information of the electronic device 401 is in a landscape mode, the electronic device 401 may cause the first amplifier and/or the second amplifier to output R channel audio data based on the received channel information. and each amplifier may be controlled so that the third amplifier and/or the fourth amplifier output L-channel audio data.

도 6은, 다양한 실시예들에 따른, 전자 장치(401)의 방향 정보에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도(600)이다.6 is a flowchart 600 for explaining a method of outputting multi-channel audio data according to direction information of the electronic device 401, according to various embodiments of the present disclosure.

도 6을 참조하면, 전자 장치(예: 도 4의 전자 장치(401))의 프로세서(예: 도 4의 프로세서(460))(예: 도 4의 제1 프로세서(461))는 605동작에서, 오디오 데이터의 출력을 검출할 수 있다.Referring to FIG. 6 , the processor (eg, the processor 460 of FIG. 4 ) (eg, the first processor 461 of FIG. 4 ) of the electronic device (eg, the electronic device 401 of FIG. 4 ) in operation 605 . , the output of audio data can be detected.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 미디어 어플리케이션(예: 도 5a의 미디어 어플리케이션(511))을 통해 오디오 데이터의 출력을 검출할 수 있다. 오디오 데이터는 멀티 채널의 오디오 데이터를 포함할 수 있다. 멀티 채널의 오디오 데이터는, 2채널(또는, 스테레오), 2.1 채널, 5.1 채널, 및/또는 7.1 채널 오디오와 같은 입체적인 음향을 제공하기 위해 이용되는 다양한 종류의 멀티 채널의 오디오 데이터를 포함할 수 있다. In an embodiment, the processor 460 (eg, the first processor 461 ) may detect output of audio data through a media application (eg, the media application 511 of FIG. 5A ). The audio data may include multi-channel audio data. The multi-channel audio data may include various types of multi-channel audio data used to provide stereoscopic sound such as 2-channel (or stereo), 2.1-channel, 5.1-channel, and/or 7.1-channel audio. .

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 미디어 어플리케이션(511)을 통해 출력되는 오디오 데이터를 처리하여 멀티 채널의 오디오 데이터를 생성할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) may process audio data output through the media application 511 to generate multi-channel audio data.

이하 실시예에서, 멀티 채널의 오디오 데이터는, 2채널의 오디오 데이터로 가정하여 설명한다. 예컨대, 프로세서(460)는 오디오 데이터를 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터로 생성할 수 있다.In the following embodiment, it is assumed that multi-channel audio data is 2-channel audio data. For example, the processor 460 may generate audio data as audio data of a first channel (eg, L channel) and audio data of a second channel (eg, R channel).

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 생성된 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터를 플랫폼 계층(예: 도 5a의 플랫폼 계층(520)), 커널 계층(예: 도 5a의 커널 계층(530)), 및 오디오 계층(예: 도 5a의 오디오 계층(540))을 통해 입출력 장치(예: 도 5a의 입출력 장치(550))(예: 도 4의 제2 프로세서(463))에 전달할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) transmits the generated audio data of the first channel (eg, L channel) and the audio data of the second channel (eg, R channel) to the platform layer. (eg, the platform layer 520 of FIG. 5A ), a kernel layer (eg, the kernel layer 530 of FIG. 5A ), and an input/output device (eg, the audio layer 540 of FIG. 5A ) through It may be transmitted to the input/output device 550 of FIG. 5A (eg, the second processor 463 of FIG. 4 ).

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 610동작에서, 전자 장치(401)의 방향 정보를 확인할 수 있다. 예컨대, 프로세서(460)(예: 제1 프로세서(461))는 센서 회로(예: 도 4의 센서 회로(430))(예: 가속도 센서, 지자계 센서, 및/또는 자이로 센서)를 통해 전자 장치(401)의 제1 측면(예: 도 3의 제1 측면(311))이 향하는 방향을 결정할 수 있다. 프로세서(460)(예: 제1 프로세서(461))는 센서 회로(430)를 통해 전자 장치(401)의 움직임 정보(예: 전자 장치(401)의 움직임 방향, 전자 장치(401)의 기울기)를 획득하고, 이에 기반하여 전자 장치(401)의 제1 측면(311)이 향하는 방향을 결정할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) may check direction information of the electronic device 401 in operation 610 . For example, processor 460 (eg, first processor 461 ) may electronically via sensor circuitry (eg, sensor circuit 430 of FIG. 4 ) (eg, an acceleration sensor, a geomagnetic sensor, and/or a gyro sensor). A direction in which the first side surface of the device 401 (eg, the first side surface 311 of FIG. 3 ) faces may be determined. The processor 460 (eg, the first processor 461 ) receives movement information (eg, a movement direction of the electronic device 401 , a tilt of the electronic device 401 ) of the electronic device 401 through the sensor circuit 430 . , and based on this, a direction in which the first side surface 311 of the electronic device 401 faces may be determined.

일 실시예에서, 전자 장치(401)의 방향(orientation) 정보는 세로 모드(portrait mode) 및 가로 모드(landscape mode)를 포함할 수 있다. In an embodiment, the orientation information of the electronic device 401 may include a portrait mode and a landscape mode.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 615동작에서, 전자 장치(401)의 방향 정보에 기반하여, 각 오디오 출력 장치에 최종 출력할 오디오 데이터의 채널 정보를 전송할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) transmits channel information of audio data to be finally output to each audio output device based on the direction information of the electronic device 401 in operation 615 . can be transmitted

다양한 실시예들에서, 전자 장치(401)는 복수의 오디오 출력 장치들을 포함할 수 있다. 예컨대, 복수의 오디오 출력 장치들은, 제1 오디오 출력 장치(예: 도 3의 제1 오디오 출력 장치(321)), 제2 오디오 출력 장치(예: 도 3의 제2 오디오 출력 장치(323)), 제3 오디오 출력 장치(예: 도 3의 제3 오디오 출력 장치(325)), 제4 오디오 출력 장치(예: 도 3의 제4 오디오 출력 장치(327))를 포함할 수 있다. In various embodiments, the electronic device 401 may include a plurality of audio output devices. For example, the plurality of audio output devices may include a first audio output device (eg, the first audio output device 321 of FIG. 3 ) and a second audio output device (eg, the second audio output device 323 of FIG. 3 ). , a third audio output device (eg, the third audio output device 325 of FIG. 3 ) and a fourth audio output device (eg, the fourth audio output device 327 of FIG. 3 ).

다양한 실시예들에서, 전자 장치(401)의 방향 정보가 세로 모드(예: 참조번호 <310>)에서 전자 장치(401)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치와 전자 장치(401)의 방향 정보가 가로 모드(예: 참조번호 <350>)에서 전자 장치(401)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치는 상이할 수 있다.In various embodiments, the direction information of the electronic device 401 includes a position and an electronic device in which a plurality of audio output devices are disposed when the electronic device 401 is viewed from the front in a portrait mode (eg, reference number <310>). When the direction information of the device 401 is viewed from the front when the electronic device 401 is viewed in a landscape mode (eg, reference number <350>), the positions at which the plurality of audio output devices are arranged may be different.

예컨대, 전자 장치(401)의 방향 정보가 세로 모드에서 전자 장치(401)를 정면에서 바라볼 때의 제1 오디오 출력 장치(321)는 전자 장치(401)의 상단 좌측에 배치되고, 전자 장치(401)의 방향 정보가 가로 모드에서 전자 장치(401)를 정면에서 바라볼 때의 제1 오디오 출력 장치(321)는 전자 장치(401)의 우측 상단에 배치된 것으로 확인될 수 있다.For example, when the direction information of the electronic device 401 is viewed from the front in the portrait mode, the first audio output device 321 is disposed on the upper left side of the electronic device 401 and the electronic device ( When the direction information of the 401 is viewed from the front of the electronic device 401 in the landscape mode, it may be confirmed that the first audio output device 321 is disposed on the upper right side of the electronic device 401 .

다른 예를 들어, 전자 장치(401)의 방향 정보가 세로 모드(예: 참조번호 <310>)에서 전자 장치(401)를 정면에서 바라볼 때의 제2 오디오 출력 장치(323)는 전자 장치(401)의 상단 우측에 배치되고, 전자 장치(401)의 방향 정보가 가로 모드에서 전자 장치(401)를 정면에서 바라볼 때의 제2 오디오 출력 장치(323)는 전자 장치(401)의 우측 하단에 배치된 것으로 확인될 수 있다.As another example, when the direction information of the electronic device 401 is viewed from the front when the electronic device 401 is viewed in a portrait mode (eg, reference number <310>), the second audio output device 323 may display the electronic device ( The second audio output device 323 is disposed on the upper right side of the electronic device 401 when the direction information of the electronic device 401 is viewed from the front in the landscape mode. It can be confirmed that it is placed in

또 다른 예를 들어, 전자 장치(401)의 방향 정보가 세로 모드(예: 참조번호 <310>)에서 전자 장치(401)를 정면에서 바라볼 때의 제3 오디오 출력 장치(325)는 전자 장치(401)의 하단 좌측에 배치되고, 전자 장치(401)의 방향 정보가 가로 모드에서 전자 장치(401)를 정면에서 바라볼 때의 제3 오디오 출력 장치(325)는 전자 장치(401)의 좌측 상단에 배치된 것으로 확인될 수 있다.As another example, when the direction information of the electronic device 401 is viewed from the front of the electronic device 401 in a portrait mode (eg, reference number <310>), the third audio output device 325 is the electronic device The third audio output device 325 is disposed on the lower left side of the electronic device 401 when the direction information of the electronic device 401 is viewed from the front in the landscape mode. It can be confirmed that it is disposed on the top.

또 다른 예를 들어, 전자 장치(401)의 방향 정보가 세로 모드(예: 참조번호 <310>)에서 전자 장치(401)를 정면에서 바라볼 때의 제4 오디오 출력 장치(327)는 전자 장치(401)의 하단 우측에 배치되고, 전자 장치(401)의 방향 정보가 가로 모드에서 전자 장치(401)를 정면에서 바라볼 때의 제4 오디오 출력 장치(327)는 전자 장치(401)의 좌측 하단에 배치된 것으로 확인될 수 있다.As another example, when the direction information of the electronic device 401 is viewed from the front when the electronic device 401 is viewed in a portrait mode (eg, reference number <310>), the fourth audio output device 327 is the electronic device The fourth audio output device 327 is disposed on the lower right side of the electronic device 401 and the direction information of the electronic device 401 is the left side of the electronic device 401 when the electronic device 401 is viewed from the front in the landscape mode. It can be confirmed that it is arranged at the bottom.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는전자 장치(401)의 방향 정보에 기반하여, 복수의 오디오 출력 장치들 각각의 위치 정보에 따른 채널의 오디오 데이터를 출력(예: 오디오 데이터의 종류(예: 채널 종류)에 기반하여, 복수의 오디오 출력 장치들 각각이 서로 다른 종류(예: 채널)의 오디오 데이터를 출력)하도록, 최종 출력할 오디오 데이터의 채널 정보를 각 오디오 출력 장치(예: 제2 프로세서(463))에 전송할 수 있다. 예컨대, 프로세서(460)(예: 제1 프로세서(461)) 예컨대, 플랫폼 계층(520)의 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)은, 전자 장치(401)의 방향 정보에 따른 복수의 오디오 출력 장치들(321, 323, 325, 및 327)을 제어하기 위한 제어 데이터 예컨대, 복수의 오디오 출력 장치들(321, 323, 325, 및 327)이 출력할 오디오 데이터의 채널 정보를 입출력 장치(550)(예: 제2 프로세서(463))에 전달할 수 있다. In an embodiment, the processor 460 (eg, the first processor 461 ) outputs, based on direction information of the electronic device 401 , audio data of a channel according to location information of each of the plurality of audio output devices. (eg, based on the type of audio data (eg, channel type), each of the plurality of audio output devices outputs different types of audio data (eg, channel)) may be transmitted to each audio output device (eg, the second processor 463 ). For example, the processor 460 (eg, the first processor 461 ), for example, the control module 527 included in the audio hardware abstraction layer 525 of the platform layer 520 , control data for controlling the plurality of audio output devices 321, 323, 325, and 327 according to It may be transmitted to the input/output device 550 (eg, the second processor 463 ).

다양한 실시예들에서, 하기 <표 1> 및 <표 2>와 같은 전자 장치(401)의 방향 정보에 기반하여, 각 오디오 출력 장치(321, 323, 325, 또는 327)가 배치된 위치에 따른 각 오디오 출력 장치(321, 323, 325, 또는 327)에서 최종 출력할 오디오 데이터의 채널 정보는, 메모리(예: 도 4의 메모리(420))에 저장되어 있을 수 있다.In various embodiments, based on direction information of the electronic device 401 as shown in <Table 1> and <Table 2>, each audio output device 321 , 323 , 325 , or 327 Channel information of audio data to be finally output by each audio output device 321 , 323 , 325 , or 327 may be stored in a memory (eg, the memory 420 of FIG. 4 ).

오디오 출력 장치audio output device 전자 장치의 방향 정보가 세로 모드에서 오디오 출력 장치가 배치된 위치The orientation information of the electronic device is the position where the audio output device is placed in portrait mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(321)first audio output device 321 상단 좌측upper left 제1 채널(예: L 채널)1st channel (eg L channel) 제2 오디오 출력 장치(323)second audio output device (323) 상단 우측top right 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제3 오디오 출력 장치(325)third audio output device (325) 하단 좌측bottom left 제1 채널(예: L 채널)1st channel (eg L channel) 제4 오디오 출력 장치(327)Fourth audio output device (327) 하단 우측bottom right 제2 채널(예: R 채널)2nd channel (e.g. R channel)

오디오 출력 장치audio output device 전자 장치의 방향 정보가 가로 모드에서 오디오 출력 장치가 배치된 위치The orientation information of the electronic device is the position where the audio output device is placed in landscape mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(321)first audio output device 321 우측 상단in the upper-right 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제2 오디오 출력 장치(323)second audio output device (323) 우측 하단bottom right 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제3 오디오 출력 장치(325)third audio output device (325) 좌측 상단upper left 제1 채널(예: L 채널)1st channel (eg L channel) 제4 오디오 출력 장치(327)Fourth audio output device (327) 좌측 하단bottom left 제1 채널(예: L 채널)1st channel (eg L channel)

일 실시예에서, 프로세서(460)(예: 제2 프로세서(463))는 620동작에서, 각 오디오 출력 장치에 전체 오디오 데이터를 전송하고, 채널 정보에 기반하여 각 오디오 출력 장치에서 최종 출력할 채널을 선택하여 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들을 제어할 수 있다. 예컨대, 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)로부터 수신한 복수의 오디오 출력 장치들(321, 323, 325, 및 327)이 출력할 오디오 데이터의 채널 정보(예: <표 1> 또는 <표 2>)에 기반하여, 프로세서(460)(예: 제2 프로세서(463))는 각 오디오 출력 장치(321, 323, 325, 또는 327)가 해당 채널의 오디오 데이터를 출력하도록 제어할 수 있다.In an embodiment, the processor 460 (eg, the second processor 463 ) transmits all audio data to each audio output device in operation 620 , and a channel to be finally output from each audio output device based on channel information. may be selected to control the plurality of audio output devices to output audio data. For example, channel information of audio data to be output by the plurality of audio output devices 321 , 323 , 325 , and 327 received from the control module 527 included in the audio hardware abstraction layer 525 (eg, <Table 1) > or <Table 2>), the processor 460 (eg, the second processor 463 ) controls each audio output device 321 , 323 , 325 , or 327 to output audio data of a corresponding channel can do.

예컨대, 프로세서(460)(예: 제2 프로세서(463))는 제1 오디오 출력 장치(321) 및 제3 오디오 출력 장치(325)가 미디어 어플리케이션(511)로부터 수신한 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제2 오디오 출력 장치(323) 및 제4 오디오 출력 장치(327)가 미디어 어플리케이션(511)로부터 수신한 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.For example, the processor 460 (eg, the second processor 463 ) receives audio data of the first channel received by the first audio output device 321 and the third audio output device 325 from the media application 511 . output, and the second audio output device 323 and the fourth audio output device 327 may control to output audio data of the second channel received from the media application 511 .

다른 예를 들어, 프로세서(460)(예: 제2 프로세서(463))는 제3 오디오 출력 장치(325) 및 제4 오디오 출력 장치(327)가 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제1 오디오 출력 장치(321) 및 제2 오디오 출력 장치(323)가 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.For another example, the processor 460 (eg, the second processor 463 ) controls the third audio output device 325 and the fourth audio output device 327 to output audio data of the first channel, The first audio output device 321 and the second audio output device 323 may be controlled to output audio data of the second channel.

다양한 실시예들에 따른, <표 1> 및 <표 2>에 따른 각 오디오 출력 장치가 출력할 오디오 데이터의 채널 정보는 하나의 실시예로, 이에 한정하는 것은 아니다.Channel information of audio data to be output by each audio output device according to <Table 1> and <Table 2> according to various embodiments of the present disclosure is only one embodiment, but is not limited thereto.

다양한 실시예들에 따른 도 6에서, 전자 장치(401)는 제어 모듈(527)을 통해 수신한 복수의 오디오 출력 장치들이 출력할 오디오 데이터의 채널 정보에 기반하여, 미디어 어플리케이션(511)을 통해 생성된 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터(예: 별도의 프로세싱을 거치지 않는 원본의 제1 및 제2 오디오 데이터)를 출력하도록 복수의 오디오 출력 장치들을 제어함으로써, 오디오 데이터의 프로세싱에 따른 시간 지연을 최소화할 수 있다. 이에 따라, 실시간성이 요구되는 게임 및/또는 라이브 스트리밍과 같은 컨텐츠를 재생하는 경우, 오디오 데이터와 영상 데이터 간의 이질감을 해소할 수 있어, 전자 장치(401)의 사용성을 증대시킬 수 있다.6 , the electronic device 401 generates through the media application 511 based on channel information of audio data to be output by the plurality of audio output devices received through the control module 527 in FIG. 6 according to various embodiments. In order to output the audio data of the first channel (eg, L channel) and the audio data of the second channel (eg, R channel) (eg, the first and second audio data of the original that do not undergo separate processing) By controlling the audio output devices, it is possible to minimize a time delay according to the processing of audio data. Accordingly, when content such as a game and/or live streaming requiring real-time performance is reproduced, a sense of difference between audio data and image data can be resolved, and thus the usability of the electronic device 401 can be increased.

도 7은, 다양한 실시예들에 따른, 전자 장치(401)의 방향 정보가 변경되는 것에 기반하여, 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도(700)이다. 7 is a flowchart 700 for explaining a method of outputting multi-channel audio data based on a change in direction information of the electronic device 401 according to various embodiments of the present disclosure.

다양한 실시예들에 따른 도 7의 동작들은, 전술한 도 6의 620동작의 추가적인 동작일 수 있다.Operations of FIG. 7 according to various embodiments may be additional operations of operation 620 of FIG. 6 described above.

도 7을 참조하면, 전자 장치(예: 도 4의 전자 장치(401))의 프로세서(예: 도 4의 프로세서(460))(예: 도 4의 제1 프로세서(461))는 705동작에서, 전자 장치(401)의 방향 정보가 변경(예: 전환)되었는지 여부를 결정할 수 있다. 예컨대, 전자 장치(401)의 방향 정보의 변경은, 세로 모드(예: 도 3의 참조번호 <310>)에서 가로 모드(예: 도 3의 참조번호 <350>)로 변경, 가로 모드(예: 도 3의 참조번호 <350>)에서 세로 모드(예: 도 3의 참조번호 <310>)로 변경을 포함할 수 있다. 프로세서(460)(예: 제1 프로세서(461))는 센서 회로(예: 도 4의 센서 회로(430))를 통해 전자 장치(401)의 움직임 정보를 획득하고, 이에 기반하여, 전자 장치(401)의 방향 정보가 변경(예: 전환)되었는지 여부를 결정할 수 있다.Referring to FIG. 7 , the processor (eg, the processor 460 of FIG. 4 ) (eg, the first processor 461 of FIG. 4 ) of the electronic device (eg, the electronic device 401 of FIG. 4 ) performs operation 705 . , whether the direction information of the electronic device 401 has been changed (eg, switched) may be determined. For example, the change of direction information of the electronic device 401 may include changing from a portrait mode (eg, reference number <310> in FIG. 3 ) to a landscape mode (eg, reference number <350> in FIG. 3 ) and a landscape mode (eg, reference number <350> in FIG. 3 ). : A change from reference number <350> of FIG. 3) to a portrait mode (eg, reference number <310> of FIG. 3) may include a change. The processor 460 (eg, the first processor 461 ) acquires motion information of the electronic device 401 through a sensor circuit (eg, the sensor circuit 430 of FIG. 4 ), and based on this, the electronic device ( 401), it may be determined whether the direction information has been changed (eg, switched).

일 실시예에서, 전자 장치(401)의 방향 정보가 변경된 경우(예: 705동작의 YES), 프로세서(460)(예: 제1 프로세서(461))는 710동작에서, 전자 장치(401)의 변경된 방향 정보에 기반하여, 각 오디오 출력 장치에 최종 출력할 오디오 데이터의 변경된 채널 정보를 전송할 수 있다. 예컨대, 전자 장치(401)의 방향 정보가 세로 모드(또는 가로 모드)에서 가로 모드(또는 세로 모드)로 전환됨에 따라 전자 장치(401)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들(321, 323, 325, 및 327)이 배치되는 위치 정보 또한 변경될 수 있으며, 이에 따라 최종 출력할 오디오 데이터의 채널 정보 또한 변경될 수 있다.In an embodiment, when the direction information of the electronic device 401 is changed (eg, YES in operation 705 ), the processor 460 (eg, the first processor 461 ) performs the operation of the electronic device 401 in operation 710 . Based on the changed direction information, changed channel information of audio data to be finally output may be transmitted to each audio output device. For example, as the direction information of the electronic device 401 is switched from the portrait mode (or landscape mode) to the landscape mode (or portrait mode), the plurality of audio output devices 321 when the electronic device 401 is viewed from the front , 323 , 325 , and 327 ) may also be arranged, and accordingly, channel information of audio data to be finally output may also be changed.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461)) 예컨대, 플랫폼 계층(520)의 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)은, 전자 장치(401)의 변경된 방향 정보에 따라 복수의 오디오 출력 장치들(321, 323, 325, 및 327)을 제어하기 위한 변경된 제어 데이터 예컨대, 복수의 오디오 출력 장치들(321, 323, 325, 및 327)이 출력할 오디오 데이터의 변경된 채널 정보를 입출력 장치(550)(예: 제2 프로세서(463))에 전달할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ), for example, the control module 527 included in the audio hardware abstraction layer 525 of the platform layer 520 , Changed control data for controlling the plurality of audio output devices 321 , 323 , 325 , and 327 according to the changed direction information, for example, audio to be output by the plurality of audio output devices 321 , 323 , 325 , and 327 The changed channel information of data may be transmitted to the input/output device 550 (eg, the second processor 463 ).

일 실시예에서, 프로세서(460)(예: 도 4의 제2 프로세서(463))는 715동작에서, 각 오디오 출력 장치에 전체 오디오 데이터를 전송하고, 변경된 채널 정보에 기반하여 각 오디오 출력 장치에서 최종 출력할 채널을 선택하여 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(321, 323, 325, 및 327)을 제어할 수 있다.In an embodiment, the processor 460 (eg, the second processor 463 of FIG. 4 ) transmits all audio data to each audio output device in operation 715 , and transmits the entire audio data to each audio output device based on the changed channel information. The plurality of audio output devices 321 , 323 , 325 , and 327 may be controlled to output audio data by selecting a channel to be finally outputted.

예컨대, 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)로부터 수신한 변경된 전자 장치(401)의 방향 정보에 따른 복수의 오디오 출력 장치들(321, 323, 325, 및 327)이 출력할 오디오 데이터의 변경된 채널 정보(예: <표 1> 또는 <표 2>)에 기반하여, 프로세서(460)(예: 제2 프로세서(463))는 각 오디오 출력 장치(321, 323, 325, 또는 327)가 해당 채널의 오디오 데이터를 출력하도록 할 수 있다.For example, the plurality of audio output devices 321 , 323 , 325 , and 327 according to the changed direction information of the electronic device 401 received from the control module 527 included in the audio hardware abstraction layer 525 may output Based on the changed channel information (eg, <Table 1> or <Table 2>) of the audio data, the processor 460 (eg, the second processor 463) is configured to each audio output device 321 , 323 , 325 , or 327) may output audio data of the corresponding channel.

예컨대, 프로세서(460)(예: 제2 프로세서(463))는 전자 장치(401)의 방향 정보가 세로 모드에서 가로 모드로 변경된 경우, 전술한 <표 2>에 기반하여 각 오디오 출력 장치(321, 323, 325, 또는 327)가 해당 채널의 오디오 데이터를 출력하도록 할 수 있다. 이 경우, 프로세서(460)(예: 제2 프로세서(463))는 제3 오디오 출력 장치(325) 및 제4 오디오 출력 장치(327)가 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제1 오디오 출력 장치(321) 및 제2 오디오 출력 장치(323)가 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.For example, when the direction information of the electronic device 401 is changed from the portrait mode to the landscape mode, the processor 460 (eg, the second processor 463 ) is configured to control each audio output device 321 based on Table 2 above. , 323, 325, or 327) may output audio data of a corresponding channel. In this case, the processor 460 (eg, the second processor 463 ) controls the third audio output device 325 and the fourth audio output device 327 to output audio data of the first channel, and the first The audio output device 321 and the second audio output device 323 may be controlled to output audio data of the second channel.

다른 예를 들어, 프로세서(460)(예: 제2 프로세서(463))는 전자 장치(401)의 방향 정보가 가로 모드에서 세로 모드로 변경된 경우, 전술한 <표 1>에 기반하여 각 오디오 출력 장치(321, 323, 325, 또는 327)가 해당 채널의 오디오 데이터를 출력하도록 할 수 있다. 이 경우, 프로세서(460)(예: 제2 프로세서(463))는 제1 오디오 출력 장치(321) 및 제3 오디오 출력 장치(325)가 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제2 오디오 출력 장치(323) 및 제4 오디오 출력 장치(327)가 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.As another example, when the direction information of the electronic device 401 is changed from the landscape mode to the portrait mode, the processor 460 (eg, the second processor 463 ) outputs each audio based on the aforementioned <Table 1>. The device 321 , 323 , 325 , or 327 may output audio data of a corresponding channel. In this case, the processor 460 (eg, the second processor 463 ) controls the first audio output device 321 and the third audio output device 325 to output audio data of the first channel, and the second The audio output device 323 and the fourth audio output device 327 may be controlled to output audio data of the second channel.

일 실시예에서, 전자 장치(401)의 방향 정보가 변경되지 않은 경우(예: 705동작의 NO), 프로세서(460)(예: 제2 프로세서(463))는 전술한 도 6의 620동작을 계속해서 수행할 수 있다.In an embodiment, when the direction information of the electronic device 401 is not changed (eg, NO in operation 705), the processor 460 (eg, the second processor 463) performs operation 620 of FIG. 6 described above. You can continue to do it.

다양한 실시예들에 따른 도 7에서, 오디오 데이터가 출력되는 중에 전자 장치(401)의 방향 정보가 변경된 경우, 프로세서(460)(예: 제1 프로세서(461))는 동적으로 전자 장치(401)의 방향 정보를 확인하여, 각 오디오 출력 장치(321, 323, 325, 또는 327)에 오디오 데이터의 변경된 채널 정보를 전달할 수 있다. 각 오디오 출력 장치(예: 제2 프로세서(463))는 변경된 채널 정보에 기반하여 해당 채널의 오디오 데이터를 출력할 수 있다. 이에 따라, 전자 장치(401)의 방향 정보의 변경을 검출하는 경우, 복수의 오디오 출력 장치들은 오디오 데이터에 대해 별도의 프로세싱 없이, 오디오 데이터의 변경된 채널 정보에 기반하여 오디오 데이터를 출력함으로써, 오디오 데이터의 처리 지연에 따른 전자 장치(401)의 사용성 저하를 방지할 수 있다.In FIG. 7 according to various embodiments of the present disclosure, when direction information of the electronic device 401 is changed while audio data is being output, the processor 460 (eg, the first processor 461 ) dynamically controls the electronic device 401 . The changed channel information of audio data may be transmitted to each audio output device 321 , 323 , 325 , or 327 by checking the direction information of . Each audio output device (eg, the second processor 463 ) may output audio data of a corresponding channel based on the changed channel information. Accordingly, when detecting a change in direction information of the electronic device 401, the plurality of audio output devices output audio data based on the changed channel information of the audio data without additional processing on the audio data, thereby generating audio data It is possible to prevent deterioration in usability of the electronic device 401 due to processing delay.

도 8a는, 다양한 실시예들에 따른, 전자 장치(801)의 펼침 상태(flat state 또는 opening state)를 도시한 도면(800)이다. 도 8b는, 다양한 실시예들에 따른, 전자 장치(801)의 접힘 상태(folding state 또는 closing state)를 도시한 도면(870)이다.FIG. 8A is a diagram 800 illustrating a flat state or an opening state of an electronic device 801 according to various embodiments of the present disclosure. 8B is a diagram 870 illustrating a folding state or a closing state of the electronic device 801 according to various embodiments of the present disclosure.

다양한 실시예들에 따른 도 3에서 전자 장치(예: 도 3의 전자 장치(301))를 평판형(plate type)의 폼 팩터(form factor)를 가지는 것으로 설명하였지만, 이에 한정하는 것은 아니다. 예컨대, 전자 장치(801)는 도 8a 및 도 8b에 도시된 바와 같이 폴더블 타입(foldable type)(예: 인 폴딩 타입 또는 아웃 폴딩 타입)의 폼 팩터를 가질 수 있다.Although the electronic device (eg, the electronic device 301 of FIG. 3 ) is described as having a plate type form factor in FIG. 3 according to various embodiments, the present disclosure is not limited thereto. For example, the electronic device 801 may have a form factor of a foldable type (eg, an in-folding type or an out-folding type) as shown in FIGS. 8A and 8B .

도 8a및 도 8b를 참조하면, 전자 장치(801)(예: 도 4의 전자 장치(401))는, 서로에 대하여 접히도록 힌지 구조(825)를 통해 회동 가능하게 결합되는 한 쌍의 하우징 구조(예: 제1 하우징 구조(820), 제2 하우징 구조(830))(예: 폴더블 하우징 구조)를 포함할 수 있다.8A and 8B , an electronic device 801 (eg, the electronic device 401 of FIG. 4 ) is a pair of housing structures that are rotatably coupled through a hinge structure 825 to be folded with respect to each other. (eg, the first housing structure 820 and the second housing structure 830) (eg, a foldable housing structure).

일 실시예에서, 제1 하우징 구조(820)와 제2 하우징 구조(830)는 폴딩 축(880)을 중심으로 양측에 배치되고, 폴딩 축(880)에 대하여 전체적으로 대칭인 형상을 가질 수 있다.In an embodiment, the first housing structure 820 and the second housing structure 830 may be disposed on both sides about the folding axis 880 , and may have an overall symmetrical shape with respect to the folding axis 880 .

일 실시예에서, 도 8a에 도시된 바와 같이, 전자 장치(801)가 펼침 상태(flat state 또는 opening state)인 경우, 제1 하우징 구조(820) 및 제2 하우징 구조(830)는 180도의 각도를 이룰 수 있다.In one embodiment, as shown in FIG. 8A , when the electronic device 801 is in a flat state or an opening state, the first housing structure 820 and the second housing structure 830 are at an angle of 180 degrees. can achieve

다양한 실시예들에서, 도 8a의 참조번호 <810>은 전자 장치(801)의 방향 정보가 세로 모드에서 펼침 상태를 나타낸 도면이고, 도 8a의 참조번호 <850>은 전자 장치(801)의 방향 정보가 가로 모드에서 펼침 상태를 나타낸 도면이다.In various embodiments, reference number <810> of FIG. 8A indicates a state in which direction information of the electronic device 801 is unfolded in a portrait mode, and reference number <850> of FIG. 8A indicates a direction of the electronic device 801 It is a diagram showing the unfolded state of information in landscape mode.

다양한 실시예들에서, 전자 장치(801)는 센서(예: 도 4의 센서 회로(430))를 통해서 전자 장치(801)의 방향 정보 및/또는 폴딩 상태를 확인할 수 있다. 전자 장치(301)의 방향 정보가 세로 모드(예: 참조번호 <810>의 상태) 및 가로 모드(예: 참조번호 <850>의 상태)를 포함할 수 있다. 전자 장치(801)의 폴딩 상태는 펼침 상태 및 닫힘 상태를 포함할 수 있다.In various embodiments, the electronic device 801 may check direction information and/or a folding state of the electronic device 801 through a sensor (eg, the sensor circuit 430 of FIG. 4 ). The direction information of the electronic device 301 may include a portrait mode (eg, a state of reference number <810>) and a landscape mode (eg, a state of reference number <850>). The folded state of the electronic device 801 may include an unfolded state and a closed state.

예컨대, 전자 장치(801)의 방향 정보가 세로 모드에서 펼침 상태는, 참조번호 <810>에 도시된 바와 같이, 전자 장치(801)의 제1 측면(821, 831)이 제1 방향(예: ① 방향)으로 향하도록 배치되고, 전자 장치(801)의 제2 측면(822, 832)이 제1 방향(예: ① 방향)과 반대인 제2 방향(예: ② 방향)으로 향하도록 배치되는 상태를 포함할 수 있다.For example, in the unfolded state of the orientation information of the electronic device 801 in the portrait mode, as shown in reference numeral <810>, the first side surfaces 821 and 831 of the electronic device 801 are in the first direction (eg: ① direction), and the second side surfaces 822 and 832 of the electronic device 801 are disposed to face in a second direction (eg, direction ②) opposite to the first direction (eg, direction ①) It can include status.

다른 예를 들어, 전자 장치(801)의 방향 정보가 가로 모드에서 펼침 상태는, 참조번호 <850>에 도시된 바와 같이, 전자 장치(801)의 제3 측면(823)이 제1 방향(예: ① 방향)으로 향하도록 배치되고, 전자 장치(801)의 제4 측면(833)이 제1 방향(예: ① 방향)과 반대인 제2 방향(예: ② 방향)으로 향하도록 배치되는 상태를 포함할 수 있다.As another example, in the unfolded state of the direction information of the electronic device 801 in the landscape mode, as shown in reference numeral 850, the third side surface 823 of the electronic device 801 moves in the first direction (eg, : A state in which the fourth side surface 833 of the electronic device 801 faces in the direction of ①), and the fourth side 833 of the electronic device 801 faces in a second direction (eg, the direction of ②) opposite to the first direction (eg, the direction of ①). may include

다양한 실시예들에서, 전자 장치(801)는 복수의 오디오 출력 장치들(841, 843, 845, 847)을 포함할 수 있다. 복수의 오디오 출력 장치들(841, 843, 845, 847)은 전자 장치(801)의 힌지 구조(825)를 중심으로 회전되는 제1 하우징(820) 및 제2 하우징(830)에 구비될 수 있다. 예컨대, 복수의 오디오 출력 장치들(841, 843, 845, 847) 각각은 각 하우징의 측면(예: 제1 측면(821, 831), 제2 측면(822, 832))에 위치될 수 있다.In various embodiments, the electronic device 801 may include a plurality of audio output devices 841 , 843 , 845 , and 847 . The plurality of audio output devices 841 , 843 , 845 , and 847 may be provided in the first housing 820 and the second housing 830 rotated around the hinge structure 825 of the electronic device 801 . . For example, each of the plurality of audio output devices 841 , 843 , 845 , and 847 may be located on a side surface (eg, the first side surface 821 , 831 , and the second side surface 822 , 832 ) of each housing.

일 실시예에서, 복수의 오디오 출력 장치들(841, 843, 845, 847)은 서로 대응하는 위치에 위치될 수 있다. 예컨대, 제1 하우징(820)의 제1 측면(821)에 제1 오디오 출력 장치(841)(예: 도 4의 제1 오디오 출력 장치(441))가 위치되고, 이에 대응하여 제1 하우징(820)의 제2 측면(822)에 제2 오디오 출력 장치(845)(예: 도 4의 제3 오디오 출력 장치(445))가 위치될 수 있다. 제1 하우징(820)의 제1 측면(821)에 위치된 제1 오디오 출력 장치(841)에 대응하여 제1 하우징(820)과 접철 가능한 제2 하우징(830)의 제1 측면(831)에 제2 오디오 출력 장치(843)(예: 도 4의 제2 오디오 출력 장치(443))가 위치되고, 이에 대응하여 제2 하우징(830)의 제2 측면(832)에 제4 오디오 출력 장치(847)(예: 도 4의 제4 오디오 출력 장치(447))가 위치될 수 있다.In an embodiment, the plurality of audio output devices 841 , 843 , 845 , and 847 may be located at positions corresponding to each other. For example, the first audio output device 841 (eg, the first audio output device 441 of FIG. 4 ) is positioned on the first side 821 of the first housing 820 , and correspondingly to the first housing 820 ( A second audio output device 845 (eg, the third audio output device 445 of FIG. 4 ) may be positioned on the second side 822 of the 820 . Corresponding to the first audio output device 841 positioned on the first side 821 of the first housing 820 , on the first side 831 of the second housing 830 foldable with the first housing 820 . A second audio output device 843 (eg, the second audio output device 443 in FIG. 4 ) is positioned, correspondingly to the second side 832 of the second housing 830 , a fourth audio output device ( 847) (eg, the fourth audio output device 447 of FIG. 4 ) may be located.

다양한 실시예들에 따른, 전자 장치(801)는 폴더블 타입(foldable type)(예: 인 폴딩 타입 또는 아웃 폴딩 타입)의 폼 팩터를 가지는 경우, 전자 장치(801)에 배치되는 복수의 오디오 출력 장치들(841, 843, 845, 및 847)의 위치는, 전술한 도 8a의 실시예에 한정하는 것은 아니다.According to various embodiments, when the electronic device 801 has a form factor of a foldable type (eg, an in-folding type or an out-folding type), a plurality of audio outputs disposed in the electronic device 801 The positions of the devices 841 , 843 , 845 , and 847 are not limited to the embodiment of FIG. 8A described above.

다양한 실시예들에서, 전자 장치(801)가 세로 모드 및 펼침 상태(예: 참조번호 <810>)에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치와 전자 장치(801)가 가로 모드 및 펼침 상태(예: 참조번호 <850>)에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치는 상이할 수 있다.In various embodiments, when the electronic device 801 is viewed from the front in a portrait mode and an unfolded state (eg, reference numeral <810>), a position where a plurality of audio output devices are disposed and an electronic device When the electronic device 801 is viewed from the front in the landscape mode and the unfolded state (eg, reference numeral <850>), the positions at which the plurality of audio output devices are arranged may be different.

예컨대, 참조번호 <810>에 도시된 바와 같이, 전자 장치(801)가 세로 모드 및 펼침 상태에서, 전자 장치(801)를 정면에서 바라볼 때의 제1 오디오 출력 장치(841)는 전자 장치(801)의 상단 좌측에 배치될 수 있고, 제2 오디오 출력 장치(843)는 전자 장치(801)의 상단 우측에 배치될 수 있고, 제3 오디오 출력 장치(845)는 전자 장치(801)의 하단 좌측에 배치될 수 있고, 제4 오디오 출력 장치(847)는 전자 장치(801)의 하단 우측에 배치될 수 있다.For example, as shown in reference numeral <810>, when the electronic device 801 is viewed from the front in the portrait mode and the unfolded state, the first audio output device 841 is the electronic device ( The second audio output device 843 may be disposed on the upper left side of the electronic device 801 , and the third audio output device 845 may be disposed on the lower side of the electronic device 801 . It may be disposed on the left side, and the fourth audio output device 847 may be disposed on the lower right side of the electronic device 801 .

다른 예를 들어, 참조번호 <850>에 도시된 바와 같이 전자 장치(801)가 가로 모드 및 펼침 상태에서, 전자 장치(801)를 정면에서 바라볼 때의 제1 오디오 출력 장치(841)는 전자 장치(801)의 우측 상단에 배치될 수 있고, 제2 오디오 출력 장치(843)는 전자 장치(801)의 우측 하단에 배치될 수 있고, 제3 오디오 출력 장치(845)는 전자 장치(801)의 좌측 상단에 배치될 수 있고, 제4 오디오 출력 장치(847)는 전자 장치(801)의 좌측 하단에 배치될 수 있다.For another example, as shown by reference numeral 850, when the electronic device 801 is viewed from the front in the landscape mode and the unfolded state, the first audio output device 841 is an electronic device. The device 801 may be disposed at the upper right, the second audio output device 843 may be disposed at the bottom right of the electronic device 801 , and the third audio output device 845 may be disposed at the bottom right of the electronic device 801 . The fourth audio output device 847 may be disposed at the upper left side of , and the fourth audio output device 847 may be disposed at the lower left side of the electronic device 801 .

도 8b를 참조하면, 전자 장치(801)가 접힘 상태(folding state 또는 closing state)인 경우, 제1 하우징 구조(820) 및 제2 하우징 구조(830)는 서로 마주보게 배치될 수 있다. 전자 장치(801)가 접힘 상태에서, 제1 오디오 출력 장치(841)와 제3 오디오 출력 장치(845)가 서로 대응되게 배치될 수 있으며, 제2 오디오 출력 장치(843)와 제4 오디오 출력 장치(847)가 서로 대응되게 배치될 수 있다.Referring to FIG. 8B , when the electronic device 801 is in a folding state or a closing state, the first housing structure 820 and the second housing structure 830 may be disposed to face each other. When the electronic device 801 is in a folded state, the first audio output device 841 and the third audio output device 845 may be disposed to correspond to each other, and the second audio output device 843 and the fourth audio output device 847 may be disposed to correspond to each other.

다양한 실시예들에서, 전자 장치(801)의 전자 장치(801)가 세로 모드 및 접힘 상태에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치와 전자 장치(801)가 가로 모드 및 접힘 상태에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치는 상이할 수 있다.In various embodiments, when the electronic device 801 of the electronic device 801 is viewed from the front in a portrait mode and a folded state, a position where a plurality of audio output devices are disposed and the electronic device 801 ) when the electronic device 801 is viewed from the front in the horizontal mode and the folded state, the positions at which the plurality of audio output devices are arranged may be different.

예컨대, 전자 장치(801)가 세로 모드 및 접힘 상태에서, 전자 장치(801)를 정면에서 바라볼 때의 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)는 전자 장치(801)의 상단에 배치될 수 있고, 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847)는 전자 장치(801)의 하단 우측에 배치될 수 있다.For example, when the electronic device 801 is viewed from the front in the portrait mode and the folded state, the first audio output device 841 and the second audio output device 843 are the electronic device 801 . The third audio output device 845 and the fourth audio output device 847 may be disposed on the lower right side of the electronic device 801 .

다른 예를 들어, 전자 장치(801)가 가로 모드 및 접힘 상태에서, 전자 장치(801)를 정면에서 바라볼 때의 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)는 전자 장치(801)의 우측에 배치될 수 있고, 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847)는 전자 장치(801)의 좌측에 배치될 수 있다. As another example, when the electronic device 801 is viewed from the front in the landscape mode and the folded state, the first audio output device 841 and the second audio output device 843 are the electronic devices It may be disposed on the right side of the 801 , and the third audio output device 845 and the fourth audio output device 847 may be disposed on the left side of the electronic device 801 .

다양한 실시예들에서, 전자 장치(801)는 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 따른 각 오디오 출력 장치(841, 843, 845, 또는 847)에서 최종 출력될 오디오 데이터의 채널 정보를, 각 오디오 출력 장치(841, 843, 845, 또는 847)에 전송할 수 있다. 예컨대, 오디오 데이터를 2채널의 오디오 데이터로 가정하여 설명하면, 전자 장치(801)는 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 기반하여, 제1 채널 또는 제2 채널의 오디오 데이터를 출력하도록, 오디오 데이터의 제1 채널 정보 또는 제2 채널 정보를 포함하는 채널 정보를 각 오디오 출력 장치(841, 843, 845, 또는 847)에 전송할 수 있다.In various embodiments, the electronic device 801 provides channel information of audio data to be finally output from each audio output device 841 , 843 , 845 , or 847 according to direction information and/or a folding state of the electronic device 801 . may be transmitted to each audio output device 841 , 843 , 845 , or 847 . For example, if audio data is described as audio data of two channels, the electronic device 801 converts the audio data of the first channel or the second channel based on the direction information and/or the folding state of the electronic device 801 . To output the audio data, channel information including the first channel information or the second channel information of the audio data may be transmitted to each audio output device 841 , 843 , 845 , or 847 .

다양한 실시예들에 따른 전술한 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 따른 각 오디오 출력 장치(841, 843, 845, 또는 847)가 최종 출력될 오디오 데이터의 채널 정보를 각 오디오 출력 장치(841, 843, 845, 또는 847)에 전송하는 실시예와 관련하여, 후술하는 도 9 내지 도 10b에서 다양한 실시예들이 설명될 것이다. Each audio output device 841 , 843 , 845 , or 847 outputs channel information of audio data to be finally output according to the direction information and/or the folding state of the electronic device 801 described above according to various embodiments. With respect to the embodiment of transmitting to the device 841 , 843 , 845 , or 847 , various embodiments will be described below with reference to FIGS. 9 to 10B .

도 9는, 다양한 실시예들에 따른, 폴더블 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 따른 멀티 채널의 오디오 데이터를 출력하는 방법을 설명하기 위한 흐름도(900)이다.9 is a flowchart 900 for explaining a method of outputting multi-channel audio data according to direction information and/or a folding state of the foldable electronic device 801 according to various embodiments of the present disclosure.

도 9를 참조하면, 전자 장치(예: 도 4의 전자 장치(401), 도 8의 전자 장치(801))의 프로세서(예: 도 4의 프로세서(460))(예: 도 4의 제1 프로세서(461))는 905동작에서, 오디오 데이터의 출력을 검출할 수 있다. 일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 미디어 어플리케이션(예: 도 5a의 미디어 어플리케이션(511))을 통해 출력되는 오디오 데이터를 처리하여 멀티 채널의 오디오 데이터를 생성할 수 있다. 예컨대, 멀티 채널의 오디오 데이터는, 2채널의 오디오 데이터로 가정하여 설명하면, 예컨대, 프로세서(460)는 오디오 데이터를 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터로 생성할 수 있다. Referring to FIG. 9 , a processor (eg, the processor 460 of FIG. 4 ) of an electronic device (eg, the electronic device 401 of FIG. 4 , and the electronic device 801 of FIG. 8 ) (eg, the first step of FIG. 4 ) The processor 461 may detect output of audio data in operation 905 . In an embodiment, the processor 460 (eg, the first processor 461 ) processes audio data output through a media application (eg, the media application 511 of FIG. 5A ) to generate multi-channel audio data. can do. For example, assuming that multi-channel audio data is two-channel audio data, for example, the processor 460 converts the audio data into audio data of a first channel (eg, L channel) and a second channel (eg, R). channel) as audio data.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 생성된 제1 채널(예: L 채널)의 오디오 데이터 및 제2 채널(예: R 채널)의 오디오 데이터를 플랫폼 계층(예: 도 5a의 플랫폼 계층(520)), 커널 계층(예: 도 5a의 커널 계층(530)), 및 오디오 계층(예: 도 5a의 오디오 계층(540))을 통해 입출력 장치(예: 도 5a의 입출력 장치(550))(예: 도 4의 제2 프로세서(463))에 전달할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) transmits the generated audio data of the first channel (eg, L channel) and the audio data of the second channel (eg, R channel) to the platform layer. (eg, the platform layer 520 of FIG. 5A ), a kernel layer (eg, the kernel layer 530 of FIG. 5A ), and an input/output device (eg, the audio layer 540 of FIG. 5A ) through It may be transmitted to the input/output device 550 of FIG. 5A (eg, the second processor 463 of FIG. 4 ).

일 실시예에서, 프로세서(460)는 910동작에서, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태를 확인할 수 있다. 전자 장치(801)의 방향(orientation) 정보는 세로 모드(portrait mode) 및 가로 모드(landscape mode)를 포함할 수 있다. 전자 장치(801)의 폴딩 상태는, 펼침 상태 및 닫힘 상태를 포함할 수 있다.In an embodiment, in operation 910 , the processor 460 may check direction information and/or a folding state of the electronic device 801 . The orientation information of the electronic device 801 may include a portrait mode and a landscape mode. The folded state of the electronic device 801 may include an unfolded state and a closed state.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 센서 회로(예: 도 4의 센서 회로(430))(예: 가속도 센서, 지자계 센서, 및/또는 자이로 센서)를 통해 전자 장치(801)의 제1 측면(예: 도 8의 제1 측면(821, 831))이 향하는 방향을 결정하고, 이에 기반하여 전자 장치(801)의 방향 정보를 확인할 수 있다. 또한, 프로세서(460)(예: 제1 프로세서(461))는 센서 회로(430)(예: 근접 센서, IR(infrared) 센서, 홀 센서, 모션 센서, 각도 센서, 또는 조도 센서)를 통해 전자 장치(801)의 제1 하우징 구조(예: 도 8의 제1 하우징 구조(820)) 및 제2 하우징 구조(예: 도 8의 제2 하우징 구조(830)) 사이의 거리(또는 각도)에 기반하여 폴딩 상태(예: 펼침 상태, 접힘 상태, 또는 소정 각도의 펼침 상태)를 확인할 수 있다.In one embodiment, processor 460 (eg, first processor 461 ) includes sensor circuitry (eg, sensor circuit 430 of FIG. 4 ) (eg, an acceleration sensor, a geomagnetic sensor, and/or a gyro sensor). The direction in which the first side surface of the electronic device 801 (eg, the first side surfaces 821 and 831 of FIG. 8 ) faces is determined through , and direction information of the electronic device 801 may be confirmed based on the determined direction. In addition, the processor 460 (eg, the first processor 461 ) may be electronically configured via a sensor circuit 430 (eg, a proximity sensor, an infrared (IR) sensor, a hall sensor, a motion sensor, an angle sensor, or an illuminance sensor). the distance (or angle) between a first housing structure (eg, first housing structure 820 in FIG. 8 ) and a second housing structure (eg, second housing structure 830 in FIG. 8 ) of device 801 . Based on the folded state (eg, an unfolded state, a folded state, or an unfolded state of a predetermined angle) may be checked.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 915동작에서, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 기반하여, 각 오디오 출력 장치에 최종 출력할 오디오 데이터의 채널 정보를 전송할 수 있다. 전자 장치(801)는 복수의 오디오 출력 장치들을 포함할 수 있다. 예컨대, 복수의 오디오 출력 장치들은, 제1 오디오 출력 장치(예: 도 8의 제1 오디오 출력 장치(841)), 제2 오디오 출력 장치(예: 도 8의 제2 오디오 출력 장치(843)), 제3 오디오 출력 장치(예: 도 8의 제3 오디오 출력 장치(845)), 제4 오디오 출력 장치(예: 도 8의 제4 오디오 출력 장치(847))를 포함할 수 있다. In an embodiment, the processor 460 (eg, the first processor 461 ) performs audio to be finally output to each audio output device based on direction information and/or a folding state of the electronic device 801 in operation 915 . It is possible to transmit channel information of data. The electronic device 801 may include a plurality of audio output devices. For example, the plurality of audio output devices may include a first audio output device (eg, the first audio output device 841 of FIG. 8 ) and a second audio output device (eg, the second audio output device 843 of FIG. 8 ). , a third audio output device (eg, the third audio output device 845 of FIG. 8 ) and a fourth audio output device (eg, the fourth audio output device 847 of FIG. 8 ).

다양한 실시예들에서, 도 8a 및 도 8b에서 살펴본 바와 같이 전자 장치(801)가 세로 모드 및/또는 펼침 상태(또는 접힘 상태)에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치와 전자 장치(801)가 가로 모드 및/또는 펼침 상태(또는 접힘 상태)에서 전자 장치(801)를 정면에서 바라볼 때의 복수의 오디오 출력 장치들이 배치되는 위치는 상이할 수 있다.In various embodiments, as shown in FIGS. 8A and 8B , a plurality of audio outputs when the electronic device 801 is viewed from the front in a portrait mode and/or in an unfolded state (or a folded state) A position in which the devices are arranged and a position in which the plurality of audio output devices are arranged when the electronic device 801 is viewed from the front in a landscape mode and/or in an unfolded (or folded state) state may be different. have.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461)) 예컨대, 플랫폼 계층(520)의 오디오 하드웨어 추상화 계층(예: 도 5a의 오디오 하드웨어 추상화 계층(525))에 포함된 제어 모듈(예: 도 5a의 제어 모듈(527))은, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 따른 복수의 오디오 출력 장치들(841, 843, 845, 847)을 제어하기 위한 제어 데이터 예컨대, 복수의 오디오 출력 장치들(841, 843, 845, 847)이 출력할 오디오 데이터의 채널 정보를 입출력 장치(550)(예: 제2 프로세서(463))에 전달할 수 있다.In one embodiment, a control module included in the processor 460 (eg, the first processor 461 ), eg, an audio hardware abstraction layer (eg, the audio hardware abstraction layer 525 of FIG. 5A ) of the platform layer 520 ). (For example, the control module 527 of FIG. 5A ) provides control data for controlling the plurality of audio output devices 841 , 843 , 845 , 847 according to direction information and/or a folding state of the electronic device 801 . For example, the plurality of audio output devices 841 , 843 , 845 , and 847 may transmit channel information of audio data to be output to the input/output device 550 (eg, the second processor 463 ).

다양한 실시예들에서, 하기 <표 3> 내지 <표 6>과 같은 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 기반하여, 각 오디오 출력 장치(841, 843, 845, 847)가 배치된 위치에 따른 각 오디오 출력 장치(841, 843, 845, 847)에서 최종 출력할 오디오 데이터의 채널 정보는, 메모리(예: 도 4의 메모리(420))에 저장되어 있을 수 있다.In various embodiments, each audio output device 841 , 843 , 845 , 847 is disposed based on direction information and/or a folding state of the electronic device 801 as shown in Tables 3 to 6 below. Channel information of audio data to be finally output from each of the audio output devices 841 , 843 , 845 , and 847 according to the selected location may be stored in a memory (eg, the memory 420 of FIG. 4 ).

오디오 출력 장치audio output device 펼침 상태 및 전자 장치의 방향 정보가 세로 모드에서 오디오 출력 장치가 배치된 위치The unfolded state and orientation information of the electronic device is the position where the audio output device is placed in portrait mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(841)first audio output device (841) 제1 하우징의 상단top of the first housing 제1 채널(예: L 채널)1st channel (eg L channel) 제2 오디오 출력 장치(843)Second audio output device (843) 제2 하우징의 상단top of the second housing 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제3 오디오 출력 장치(845)Third audio output device (845) 제1 하우징의 하단lower end of the first housing 제1 채널(예: L 채널)1st channel (eg L channel) 제4 오디오 출력 장치(847)Fourth audio output device (847) 제2 하우징의 하단bottom of the second housing 제2 채널(예: R 채널)2nd channel (e.g. R channel)

오디오 출력 장치audio output device 펼침 상태 및 전자 장치의 방향 정보가 가로 모드에서 오디오 출력 장치가 배치된 위치The unfolded state and orientation information of the electronic device is where the audio output device is placed in landscape mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(841)first audio output device (841) 제1 하우징의 우측right side of the first housing 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제2 오디오 출력 장치(843)Second audio output device (843) 제2 하우징의 우측right side of the second housing 제2 채널(예: R 채널)2nd channel (e.g. R channel) 제3 오디오 출력 장치(845)Third audio output device (845) 제1 하우징의 좌측left side of the first housing 제1 채널(예: L 채널)1st channel (eg L channel) 제4 오디오 출력 장치(847)Fourth audio output device (847) 제2 하우징의 좌측left side of the second housing 제1 채널(예: L 채널)1st channel (eg L channel)

오디오 출력 장치audio output device 접힘 상태 및 전자 장치의 방향 정보가 세로 모드에서 오디오 출력 장치가 배치된 위치The folded state and orientation information of the electronic device shows where the audio output device is placed in portrait mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(841)first audio output device (841) 제1 하우징의 상단top of the first housing 제1 채널(예: L 채널)
(또는, 제2 채널(예: R 채널))
1st channel (eg L channel)
(or the second channel (eg R channel))
제2 오디오 출력 장치(843)Second audio output device (843) 제2 하우징의 상단top of the second housing 제1 채널(예: L 채널)
(또는, 제2 채널(예: R 채널))
1st channel (eg L channel)
(or the second channel (eg R channel))
제3 오디오 출력 장치(845)Third audio output device (845) 제1 하우징의 하단lower end of the first housing 제2 채널(예: R 채널)
(또는, 제1 채널(예: L 채널))
2nd channel (e.g. R channel)
(or the first channel (eg L channel))
제4 오디오 출력 장치(847)Fourth audio output device (847) 제2 하우징의 하단bottom of the second housing 제2 채널(예: R 채널)
(또는, 제1 채널(예: L 채널))
2nd channel (e.g. R channel)
(or the first channel (eg L channel))

오디오 출력 장치audio output device 접힘 상태 및 전자 장치의 방향 정보가 가로 모드에서 오디오 출력 장치가 배치된 위치The folded state and orientation information of the electronic device shows where the audio output device is placed in landscape mode. 최종 출력할 오디오 데이터의
채널 정보
of the final output audio data.
Channel information
제1 오디오 출력 장치(841)first audio output device (841) 제1 하우징의 우측right side of the first housing 제2 채널(예: R 채널)
(또는, 제1 채널(예: L 채널))
2nd channel (e.g. R channel)
(or the first channel (eg L channel))
제2 오디오 출력 장치(843)Second audio output device (843) 제2 하우징의 우측right side of the second housing 제2 채널(예: R 채널)
(또는, 제1 채널(예: L 채널))
2nd channel (e.g. R channel)
(or the first channel (eg L channel))
제3 오디오 출력 장치(845)Third audio output device (845) 제1 하우징의 좌측left side of the first housing 제1 채널(예: L 채널)
(또는, 제2 채널(예: R 채널))
1st channel (eg L channel)
(or the second channel (eg R channel))
제4 오디오 출력 장치(847)Fourth audio output device (847) 제2 하우징의 좌측left side of the second housing 제1 채널(예: L 채널)
(또는, 제2 채널(예: R 채널))
1st channel (eg L channel)
(or the second channel (eg R channel))

일 실시예에서, 프로세서(460)(예: 도 4의 제2 프로세서(463))는 920동작에서, 각 오디오 출력 장치에 전체 오디오 데이터를 전송하고, 채널 정보에 기반하여 각 오디오 출력 장치에서 최종 출력할 채널을 선택하여 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들을 제어할 수 있다. 예컨대, 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)로부터 수신한 복수의 오디오 출력 장치들(841, 843, 845, 또는 847)이 출력할 오디오 데이터의 채널 정보(예: <표 3>, <표 4>, <표 5>, 또는 <표 6>)에 기반하여, 프로세서(460)(예: 제2 프로세서(463))는 각 오디오 출력 장치(841, 843, 845, 또는 847)가 해당 채널의 오디오 데이터를 출력하도록 제어할 수 있다.In an embodiment, the processor 460 (eg, the second processor 463 of FIG. 4 ) transmits the entire audio data to each audio output device in operation 920 , and finally receives the final audio data from each audio output device based on channel information. A plurality of audio output devices may be controlled to output audio data by selecting a channel to be output. For example, channel information of audio data to be output by the plurality of audio output devices 841 , 843 , 845 , or 847 received from the control module 527 included in the audio hardware abstraction layer 525 (eg, <Table 3) >, <Table 4>, <Table 5>, or <Table 6>), the processor 460 (eg, the second processor 463 ) is configured to each audio output device 841 , 843 , 845 , or 847 . ) can be controlled to output the audio data of the corresponding channel.

예컨대, 전자 장치(801)가 세로 모드 및 펼침 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 <표 3>에 기반하여, 제1 오디오 출력 장치(841) 및 제3 오디오 출력 장치(845)가 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제2 오디오 출력 장치(843) 및 제4 오디오 출력 장치(847)가 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.For example, when the electronic device 801 is in the portrait mode and the unfolded state, the processor 460 (eg, the second processor 463 ) performs the first audio output device 841 and the third The audio output device 845 may be controlled to output the audio data of the first channel, and the second audio output device 843 and the fourth audio output device 847 may be controlled to output the audio data of the second channel .

다른 예를 들어, 전자 장치(801)가 가로 모드 및 펼침 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 <표 4>에 기반하여, 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847)가 제1 채널의 오디오 데이터를 출력하도록 제어하고, 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)가 제2 채널의 오디오 데이터를 출력하도록 제어할 수 있다.As another example, when the electronic device 801 is in a landscape mode and an unfolded state, the processor 460 (eg, the second processor 463 ) performs the third audio output device 845 based on <Table 4> and controlling the fourth audio output device 847 to output the audio data of the first channel, and control the first audio output device 841 and the second audio output device 843 to output the audio data of the second channel can do.

또 다른 예를 들어, 전자 장치(801)가 세로 모드 및 접힘 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 <표 5>에 기반하여, 제이 경우, 프로세서(460)(예: 제2 프로세서(463))는 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)가 제1 채널(또는, 제2 채널)의 오디오 데이터를 출력하도록 제어하고, 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847)가 제2 채널(또는, 제1 채널)의 오디오 데이터를 출력하도록 제어할 수 있다.As another example, when the electronic device 801 is in the portrait mode and the folded state, the processor 460 (eg, the second processor 463 ) is configured based on <Table 5>, in a second case, the processor 460 (eg, the second processor 463 ) controls the first audio output device 841 and the second audio output device 843 to output audio data of the first channel (or the second channel), and the third The audio output device 845 and the fourth audio output device 847 may be controlled to output audio data of the second channel (or the first channel).

또 다른 예를 들어, 전자 장치(801)가 가로 모드 및 접힘 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 <표 6>에 기반하여, 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847)가 제1 채널(또는, 제2 채널)의 오디오 데이터를 출력하도록 제어하고, 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)가 제2 채널(또는, 제1 채널)의 오디오 데이터를 출력하도록 제어할 수 있다. As another example, when the electronic device 801 is in the landscape mode and the folded state, the processor 460 (eg, the second processor 463 ) performs the third audio output device 845 based on <Table 6>. ) and the fourth audio output device 847 to output the audio data of the first channel (or the second channel), and the first audio output device 841 and the second audio output device 843 to the second It is possible to control to output audio data of the channel (or the first channel).

이에 한정하는 것은 아니며, 전자 장치(801)가 가로 모드 및 접힘 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 제3 오디오 출력 장치(845) 및 제4 오디오 출력 장치(847) 중 하나의 오디오 출력 장치에 제1 채널(예: L 채널)(또는, 제2 채널(예: R 채널))의 오디오 데이터가 출력되도록 제어하고, 다른 하나의 오디오 출력 장치를 오프 상태로 제어할 수 있다. 전자 장치(801)가 가로 모드 및 접힘 상태인 경우, 프로세서(460)(예: 제2 프로세서(463))는 제1 오디오 출력 장치(841) 및 제2 오디오 출력 장치(843)에 중 하나의 오디오 출력 장치에 제2 채널(예: R 채널)(또는, 제1 채널(예: L 채널))의 오디오 데이터가 출력되도록 제어하고, 다른 하나의 오디오 출력 장치를 오프 상태로 제어할 수 있다.However, the present invention is not limited thereto, and when the electronic device 801 is in the landscape mode and the folded state, the processor 460 (eg, the second processor 463 ) performs the third audio output device 845 and the fourth audio output device ( 847), control to output audio data of a first channel (eg, L channel) (or second channel (eg, R channel)) to one audio output device, and turn off the other audio output device. can be controlled When the electronic device 801 is in the landscape mode and the folded state, the processor 460 (eg, the second processor 463 ) is connected to one of the first audio output device 841 and the second audio output device 843 . It is possible to control to output audio data of a second channel (eg, an R channel) (or a first channel (eg, an L channel)) to an audio output device, and control another audio output device to be in an off state.

다양한 실시예들에 따른, <표 3> 내지 <표 6>에 따른 각 오디오 출력 장치가 최종 출력할 오디오 데이터의 채널 정보는 하나의 실시예로, 이에 한정하는 것은 아니다.According to various embodiments, channel information of audio data to be finally output by each audio output device according to <Table 3> to <Table 6> is an exemplary embodiment, but is not limited thereto.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461))는 925동작에서, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태의 변경을 검출하는지 여부를 결정할 수 있다. 예컨대, 전자 장치(801)의 방향 정보의 변경은, 세로 모드에서 가로 모드로 변경, 가로 모드에서 세로 모드로 변경을 포함할 수 있다. 전자 장치(801)의 폴딩 상태의 변경은, 펼침 상태에서 접힘 상태로 변경, 접힘 상태에서 펼침 상태로 변경을 포함할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ) may determine whether to detect a change in direction information and/or a folding state of the electronic device 801 in operation 925 . For example, the change of direction information of the electronic device 801 may include a change from a portrait mode to a landscape mode and a change from the landscape mode to a portrait mode. The change of the folded state of the electronic device 801 may include a change from an unfolded state to a folded state and a change from a folded state to an unfolded state.

일 실시예예에서, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태의 변경을 검출하지 않으면(예: 925동작의 NO), 프로세서(460)(예: 제1 프로세서(461))는 925동작을 계속해서 수행할 수 있다.In an embodiment, if a change in direction information and/or a folding state of the electronic device 801 is not detected (eg, NO in operation 925 ), the processor 460 (eg, the first processor 461 ) performs operation 925 . can be continued.

일 실시예예에서, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태의 변경을 검출하면(예: 925동작의 YES), 프로세서(460)(예: 제1 프로세서(461))는 930동작에서, 전자 장치(801)의 변경된 방향 정보 및/또는 폴딩 상태에 기반하여, 각 오디오 출력 장치에 최종 출력할 오디오 데이터의 변경된 채널 정보를 전송할 수 있다. 예컨대, 전자 장치(801)의 방향 정보 및/또는 폴딩 상태가 변경된 경우, 전자 장치(801)를 정면으로 바라볼 때의 복수의 오디오 출력 장치들(841, 843, 845, 및 847)이 배치되는 위치 정보 또한 변경될 수 있으며, 이에 따라 최종 출력할 오디오 데이터의 채널 정보 또한 변경될 수 있다.In an embodiment, when detecting a change in direction information and/or a folding state of the electronic device 801 (eg, YES in operation 925), the processor 460 (eg, the first processor 461) in operation 930 , based on the changed direction information and/or the folding state of the electronic device 801 , the changed channel information of audio data to be finally output may be transmitted to each audio output device. For example, when direction information and/or a folding state of the electronic device 801 is changed, a plurality of audio output devices 841 , 843 , 845 , and 847 are disposed when the electronic device 801 is viewed from the front. Location information may also be changed, and accordingly, channel information of audio data to be finally output may also be changed.

일 실시예에서, 프로세서(460)(예: 제1 프로세서(461)) 예컨대, 플랫폼 계층(520)의 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)은, 전자 장치(801)의 변경된 방향 정보 및/또는 폴딩 상태에 따라 복수의 오디오 출력 장치들(841, 843, 845, 847)을 제어하기 위한 변경된 제어 데이터 예컨대, 복수의 오디오 출력 장치들(841, 843, 845, 847)이 출력할 오디오 데이터의 변경된 채널 정보를 입출력 장치(550)(예: 제2 프로세서(463))에 전달할 수 있다.In an embodiment, the processor 460 (eg, the first processor 461 ), for example, the control module 527 included in the audio hardware abstraction layer 525 of the platform layer 520 , Changed control data for controlling the plurality of audio output devices 841, 843, 845, and 847 according to the changed direction information and/or the folding state, for example, the plurality of audio output devices 841, 843, 845, 847 The changed channel information of audio data to be output may be transmitted to the input/output device 550 (eg, the second processor 463 ).

일 실시예에서, 프로세서(460)는 935동작에서, 각 오디오 출력 장치에 전체 오디오 데이터를 전송하고, 변경된 채널 정보에 기반하여 각 오디오 출력 장치에서 최종 출력할 채널을 선택하여 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들을 제어할 수 있다. 예컨대, 프로세서(460)(예: 제2 프로세서(463))는 오디오 하드웨어 추상화 계층(525)에 포함된 제어 모듈(527)로부터 수신한 변경된 전자 장치(801)의 방향 정보 및/또는 폴딩 상태에 따른 복수의 오디오 출력 장치들(841, 843, 845, 847)이 출력할 오디오 데이터의 변경된 채널 정보(예: <표 3> 내지 <표 6>)에 기반하여, 각 오디오 출력 장치(841, 843, 845, 847)가 해당 채널의 오디오 데이터를 출력하도록 복수의 오디오 출력 장치들(841, 843, 845, 및 847)을 제어할 수 있다.In an embodiment, the processor 460 transmits all audio data to each audio output device in operation 935, selects a channel to be finally output from each audio output device based on the changed channel information, and outputs audio data of audio output devices. For example, the processor 460 (eg, the second processor 463 ) may change the direction information of the electronic device 801 and/or the folding state received from the control module 527 included in the audio hardware abstraction layer 525 . Based on changed channel information (eg, <Table 3> to <Table 6>) of audio data to be output by the plurality of audio output devices 841, 843, 845, and 847, each audio output device 841, 843 , 845 , and 847 may control the plurality of audio output devices 841 , 843 , 845 , and 847 to output audio data of a corresponding channel.

다양한 실시예들에 따른 전자 장치(401)의 멀티 채널 오디오를 출력하는 방법은, 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치(401)의 방향 정보를 확인하는 동작, 상기 전자 장치(401)의 방향 정보에 기반하여, 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각이 출력할 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송하는 동작, 및 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작을 포함할 수 있다.A method of outputting multi-channel audio from an electronic device 401 according to various embodiments includes an operation of checking direction information of the electronic device 401 based on detecting output of audio data, the electronic device ( Based on the direction information of the 401 , a plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a fourth audio output device) The device 447) transmits channel information of audio data to be output to each audio output device, and based on the channel information, each audio output device selects a channel to output audio data of the selected channel controlling the plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a fourth audio output device 447 ). It can include actions.

다양한 실시예들에 따른 전자 장치(401)의 멀티 채널 오디오를 출력하는 방법은, 상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 오디오 데이터를 멀티 채널의 오디오 데이터로 생성하는 동작을 더 포함할 수 있다.The method of outputting multi-channel audio from the electronic device 401 according to various embodiments may further include generating the audio data as multi-channel audio data based on detecting the output of the audio data. can

다양한 실시예들에서, 상기 멀티 채널의 오디오 데이터는, 제1 채널의 오디오 데이터 및 제2 채널의 오디오 데이터를 포함할 수 있다.In various embodiments, the multi-channel audio data may include audio data of a first channel and audio data of a second channel.

다양한 실시예들에 따른 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작은, 상기 오디오 데이터의 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하는 동작, 및 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하는 동작을 포함할 수 있다.The plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a fourth audio output device ( 447)) may include, based on the channel information of the audio data, transmitting the audio data of the first channel among the multi-channel audio data through at least some of the audio output devices among the plurality of audio output devices. output, controlling at least some of the audio output devices, and outputting the audio data of the second channel among the multi-channel audio data through at least other audio output devices of the plurality of audio output devices , controlling the at least some other audio output devices.

다양한 실시예들에 따른 전자 장치(401)의 멀티 채널 오디오를 출력하는 방법은, 상기 전자 장치(401)의 방향 정보의 변경을 검출하는 것에 기반하여, 상기 변경된 방향 정보에 따른 상기 각 오디오 출력 장치가 출력할 오디오 데이터의 변경된 채널 정보를 상기 각 오디오 출력 장치에 전송하는 동작, 및 상기 변경된 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작을 더 포함할 수 있다.In a method of outputting multi-channel audio from an electronic device 401 according to various embodiments, based on detecting a change in direction information of the electronic device 401, each audio output device according to the changed direction information transmitting changed channel information of audio data to be output to each audio output device, and based on the changed channel information, the plurality of audio output devices select a channel to output audio data of the selected channel The operation of controlling the audio output devices (eg, the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) is further performed. may include

다양한 실시예들에 따른 상기 변경된 채널 정보에 기반하여, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작은, 상기 오디오 데이터의 변경된 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하는 동작, 및 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하는 동작을 포함할 수 있다.Based on the changed channel information according to various embodiments, the plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , and a third audio output device 445 ) , and the operation of controlling the fourth audio output device 447 may include converting the audio data of the second channel among the audio data of the multi-channel to the plurality of audio output devices based on the changed channel information of the audio data. controlling the at least some audio output devices to output through the at least some audio output devices, and outputting the first channel audio data among the multi-channel audio data among the plurality of audio output devices and controlling the at least other part of the audio output device to output it through at least another part of the audio output device.

다양한 실시예들에서, 상기 전자 장치(401)는 폴더블 전자 장치(예: 도 4의 전자 장치(401), 도 8의 전자 장치(801))이고, 전자 장치의 멀티 채널 오디오를 출력하는 방법은, 상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치(801)의 폴딩 상태를 확인하는 동작을 더 포함할 수 있다.In various embodiments, the electronic device 401 is a foldable electronic device (eg, the electronic device 401 of FIG. 4 and the electronic device 801 of FIG. 8 ), and a method of outputting multi-channel audio of the electronic device may further include checking a folding state of the electronic device 801 based on detecting the output of the audio data.

다양한 실시예들에 따른 전자 장치(401)의 멀티 채널 오디오를 출력하는 방법은, 상기 전자 장치(401)의 방향 정보 및/또는 상기 폴딩 상태에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 제2 채널 정보를 상기 각 오디오 출력 장치에 전송하는 동작, 및 상기 제2 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작을 더 포함할 수 있다.In the method of outputting multi-channel audio of the electronic device 401 according to various embodiments, each of the plurality of audio output devices outputs the output based on direction information and/or the folding state of the electronic device 401 transmitting second channel information of the audio data to be prepared to the respective audio output devices, and based on the second channel information, the plurality of audio output devices select a channel to output audio data of the selected channel The operation of controlling the audio output devices (eg, the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) is further performed. may include

다양한 실시예들에서, 상기 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송하는 동작은, 상기 전자 장치(401)의 제1 프로세서(461)에 의해, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447)) 각각이 출력할 오디오 데이터의 채널 정보를 상기 전자 장치(401)의 제2 프로세서(463)에 전송하는 동작을 포함할 수 있다.In various embodiments, the operation of transmitting the channel information of the audio data to each audio output device is performed by the first processor 461 of the electronic device 401 to the plurality of audio output devices (eg, the first processor 461 ). Each of the first audio output device 441 , the second audio output device 443 , the third audio output device 445 , and the fourth audio output device 447 ) transmits channel information of audio data to be output to the electronic device ( and transmitting to the second processor 463 of 401 .

다양한 실시예들에서, 상기 복수의 오디오 출력 장치들(예: 제1 오디오 출력 장치(441), 제2 오디오 출력 장치(443), 제3 오디오 출력 장치(445), 및 제4 오디오 출력 장치(447))을 제어하는 동작은, 상기 제2 프로세서(463)에 의해, 상기 복수의 오디오 출력 장치들을 제어하여, 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치에 설정된 채널의 오디오 데이터를 출력하는 동작을 포함할 수 있다.In various embodiments, the plurality of audio output devices (eg, a first audio output device 441 , a second audio output device 443 , a third audio output device 445 , and a fourth audio output device ( 447)), the second processor 463 controls the plurality of audio output devices to output audio data of a channel set to each audio output device based on the channel information. It can include actions.

다양한 실시예들에서, 상기 전자 장치(401)의 방향 정보는, 세로 모드 및 가로 모드를 포함하며, 및 상기 전자 장치(401, 801)의 폴딩 상태는, 상기 전자 장치(401, 801)의 펼침 상태 및 접힘 상태를 포함할 수 있다.본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.In various embodiments, the direction information of the electronic device 401 includes a portrait mode and a landscape mode, and the folded state of the electronic device 401 and 801 includes an unfolded state of the electronic device 401 and 801 . It may include a state and a folded state. The electronic device according to various embodiments disclosed in this document may have various types of devices. 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 device. 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 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "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 , B, or C" each 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 element from other elements in question, and may refer to elements in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일 실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part 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)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, a processor (eg, processor 120 ) of a device (eg, electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium 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 include a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일 실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to an embodiment, the method according to various embodiments disclosed in this document may be included and provided in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have. 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 a 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 identically or similarly to those 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 are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

401: 전자 장치 410: 통신 회로
420: 메모리 430: 센서 회로
440: 오디오 출력 장치 450: 터치스크린 디스플레이
460: 프로세서
401: electronic device 410: communication circuit
420: memory 430: sensor circuit
440: audio output device 450: touch screen display
460: processor

Claims (20)

전자 장치에 있어서,
복수의 오디오 출력 장치들; 및
상기 복수의 오디오 출력 장치들과 작동적으로 연결된 프로세서를 포함하며,
상기 프로세서는,
오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 방향 정보를 확인하고,
상기 전자 장치의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및
상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정된 전자 장치.
In an electronic device,
a plurality of audio output devices; and
a processor operatively coupled to the plurality of audio output devices;
The processor is
Based on detecting the output of the audio data, check the direction information of the electronic device,
Transmitting channel information of audio data to be output by each of the plurality of audio output devices to each audio output device based on the direction information of the electronic device, and
an electronic device configured to control the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the channel information.
제 1 항에 있어서,
상기 프로세서는,
상기 오디오 데이터를 멀티 채널의 오디오 데이터로 생성하고, 및
상기 생성된 멀티 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들에 전달하도록 설정되고,
상기 멀티 채널의 오디오 데이터는, 제1 채널의 오디오 데이터 및 제2 채널의 오디오 데이터를 포함하는 전자 장치.
The method of claim 1,
The processor is
generating the audio data as multi-channel audio data; and
configured to transmit the generated multi-channel audio data to the plurality of audio output devices;
The multi-channel audio data includes audio data of a first channel and audio data of a second channel.
제 2 항에 있어서,
상기 프로세서는,
상기 오디오 데이터의 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하고, 및
상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하도록 설정된 전자 장치.
3. The method of claim 2,
The processor is
Output the at least part of the audio data to output the audio data of the first channel among the audio data of the multi-channel through at least some of the audio output devices among the plurality of audio output devices based on the channel information of the audio data control the device; and
an electronic device configured to control the at least some other audio output devices to output the second channel audio data among the multi-channel audio data through at least other audio output devices among the plurality of audio output devices.
제 3 항에 있어서,
상기 프로세서는,
상기 전자 장치의 방향 정보의 변경을 검출하는 것에 기반하여, 상기 변경된 방향 정보에 따른 상기 각 오디오 출력 장치가 출력할 오디오 데이터의 변경된 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및
상기 변경된 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정된 전자 장치.
4. The method of claim 3,
The processor is
Transmitting, to each audio output device, changed channel information of audio data to be output by each audio output device according to the changed direction information, to each audio output device based on detecting a change in the direction information of the electronic device, and
an electronic device configured to control the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the changed channel information.
제 4 항에 있어서,
상기 프로세서는,
상기 오디오 데이터의 변경된 채널 정보에 기반하여, 상기 수신한 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하고, 및
상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하도록 설정된 전자 장치.
5. The method of claim 4,
The processor is
outputting the audio data of the second channel among the received multi-channel audio data through the at least some audio output devices among the plurality of audio output devices based on the changed channel information of the audio data; control at least some audio output devices, and
an electronic device configured to control the at least other audio output devices to output the first channel audio data among the multi-channel audio data through the at least other audio output devices among the plurality of audio output devices .
제 1 항에 있어서,
상기 전자 장치는, 폴더블 전자 장치를 포함하는 전자 장치.
The method of claim 1,
The electronic device includes a foldable electronic device.
제 6 항에 있어서,
상기 전자 장치는 폴더블 전자 장치이고,
상기 프로세서는,
상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 폴딩 상태를 확인하도록 설정된 전자 장치.
7. The method of claim 6,
The electronic device is a foldable electronic device,
The processor is
an electronic device configured to check a folding state of the electronic device based on detecting the output of the audio data.
제 7 항에 있어서,
상기 프로세서는,
상기 전자 장치의 방향 정보 및/또는 상기 폴딩 상태에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 제2 채널 정보를 상기 각 오디오 출력 장치에 전송하고, 및
상기 제2 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정된 전자 장치.
8. The method of claim 7,
The processor is
Transmitting second channel information of audio data to be output by each of the plurality of audio output devices to each audio output device based on the direction information and/or the folding state of the electronic device, and
an electronic device configured to control the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the second channel information.
제 1 항에 있어서,
상기 프로세서는, 제1 프로세서 및 제2 프로세서를 포함하며,
상기 제1 프로세서는,
상기 전자 장치의 방향 정보에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 제2 프로세서에 전송하고,
상기 제2 프로세서는,
상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치에 설정된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하도록 설정된 전자 장치.
The method of claim 1,
The processor includes a first processor and a second processor,
The first processor,
transmit channel information of audio data to be output by each of the plurality of audio output devices to the second processor based on the direction information of the electronic device;
The second processor,
an electronic device configured to control the plurality of audio output devices to output audio data of a channel set to each audio output device based on the channel information.
제 9 항에 있어서,
상기 제2 프로세서는,
상기 복수의 오디오 출력 장치들 각각에 포함되도록 설정된 전자 장치.
10. The method of claim 9,
The second processor,
An electronic device configured to be included in each of the plurality of audio output devices.
제 8 항에 있어서,
상기 전자 장치의 방향 정보는, 세로 모드 및 가로 모드를 포함하며, 및
상기 전자 장치의 폴딩 상태는, 상기 전자 장치의 펼침 상태 및 접힘 상태를 포함하는 전자 장치.
9. The method of claim 8,
The direction information of the electronic device includes a portrait mode and a landscape mode, and
The folded state of the electronic device includes an unfolded state and a folded state of the electronic device.
전자 장치의 멀티 채널 오디오 출력 방법에 있어서,
오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 방향 정보를 확인하는 동작;
상기 전자 장치의 방향 정보에 기반하여, 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송하는 동작; 및
상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하는 동작을 포함하는 방법.
A method for outputting multi-channel audio in an electronic device, the method comprising:
checking direction information of the electronic device based on detecting the output of the audio data;
transmitting channel information of audio data to be output by each of a plurality of audio output devices to each audio output device based on direction information of the electronic device; and
and controlling the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the channel information.
제 12 항에 있어서,
상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 오디오 데이터를 멀티 채널의 오디오 데이터로 생성하는 동작을 더 포함하며,
상기 멀티 채널의 오디오 데이터는, 제1 채널의 오디오 데이터 및 제2 채널의 오디오 데이터를 포함하는 방법.
13. The method of claim 12,
Based on detecting the output of the audio data, the method further comprises generating the audio data as multi-channel audio data,
The multi-channel audio data includes audio data of a first channel and audio data of a second channel.
제 13 항에 있어서,
상기 복수의 오디오 출력 장치들을 제어하는 동작은,
상기 오디오 데이터의 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하는 동작; 및
상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하는 동작을 포함하는 방법.
14. The method of claim 13,
The operation of controlling the plurality of audio output devices includes:
Output the at least part of the audio data to output the audio data of the first channel among the audio data of the multi-channel through at least some of the audio output devices among the plurality of audio output devices based on the channel information of the audio data controlling the device; and
and controlling the at least other audio output devices to output the second channel audio data among the multi-channel audio data through at least other audio output devices among the plurality of audio output devices. Way.
제 14 항에 있어서,
상기 전자 장치의 방향 정보의 변경을 검출하는 것에 기반하여, 상기 변경된 방향 정보에 따른 상기 각 오디오 출력 장치가 출력할 오디오 데이터의 변경된 채널 정보를 상기 각 오디오 출력 장치에 전송하는 동작; 및
상기 변경된 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하는 동작을 더 포함하는 방법.
15. The method of claim 14,
transmitting, to each audio output device, changed channel information of audio data to be output by each audio output device according to the changed direction information, based on detecting a change in the direction information of the electronic device; and
and controlling the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the changed channel information.
제 15 항에 있어서,
상기 변경된 채널 정보에 기반하여, 상기 복수의 오디오 출력 장치들을 제어하는 동작은,
상기 오디오 데이터의 변경된 채널 정보에 기반하여, 상기 멀티 채널의 오디오 데이터 중 상기 제2 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 일부의 오디오 출력 장치를 제어하는 동작; 및
상기 멀티 채널의 오디오 데이터 중 상기 제1 채널의 오디오 데이터를 상기 복수의 오디오 출력 장치들 중 상기 적어도 다른 일부의 오디오 출력 장치를 통해 출력하도록, 상기 적어도 다른 일부의 오디오 출력 장치를 제어하는 동작을 포함하는 방법.
16. The method of claim 15,
The operation of controlling the plurality of audio output devices based on the changed channel information includes:
outputting the audio data of the second channel among the multi-channel audio data through the at least some audio output devices among the plurality of audio output devices based on the changed channel information of the audio data; controlling the audio output device; and
and controlling the at least other audio output devices to output the first channel audio data among the multi-channel audio data through the at least other audio output devices among the plurality of audio output devices. How to.
제 12 항에 있어서,
상기 전자 장치는 폴더블 전자 장치이고, 상기 오디오 데이터의 출력을 검출하는 것에 기반하여, 상기 전자 장치의 폴딩 상태를 확인하는 동작을 더 포함하는 방법.
13. The method of claim 12,
The electronic device is a foldable electronic device, and the method further comprising: checking a folding state of the electronic device based on detecting the output of the audio data.
제 17 항에 있어서,
상기 전자 장치의 방향 정보 및/또는 상기 폴딩 상태에 기반하여, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 제2 채널 정보를 상기 각 오디오 출력 장치에 전송하는 동작; 및
상기 제2 채널 정보에 기반하여, 상기 각 오디오 출력 장치가 채널을 선택하여 선택된 채널의 오디오 데이터를 출력하도록 상기 복수의 오디오 출력 장치들을 제어하는 동작을 더 포함하는 방법.
18. The method of claim 17,
transmitting second channel information of audio data to be output by each of the plurality of audio output devices to each audio output device based on direction information of the electronic device and/or the folding state; and
and controlling the plurality of audio output devices so that each audio output device selects a channel and outputs audio data of the selected channel based on the second channel information.
제 12 항에 있어서,
상기 오디오 데이터의 채널 정보를 각 오디오 출력 장치에 전송하는 동작은,
상기 전자 장치의 제1 프로세서에 의해, 상기 복수의 오디오 출력 장치들 각각이 출력할 오디오 데이터의 채널 정보를 상기 전자 장치의 제2 프로세서에 전송하는 동작을 포함하며,
상기 복수의 오디오 출력 장치들을 제어하는 동작은,
상기 제2 프로세서에 의해, 상기 복수의 오디오 출력 장치들을 제어하여, 상기 채널 정보에 기반하여, 상기 각 오디오 출력 장치에 설정된 채널의 오디오 데이터를 출력하는 동작을 포함하는 방법.
13. The method of claim 12,
The operation of transmitting channel information of the audio data to each audio output device includes:
transmitting, by the first processor of the electronic device, channel information of audio data to be output by each of the plurality of audio output devices to a second processor of the electronic device,
The operation of controlling the plurality of audio output devices includes:
and controlling, by the second processor, the plurality of audio output devices to output audio data of a channel set to each audio output device based on the channel information.
제 17 항에 있어서,
상기 전자 장치의 방향 정보는, 세로 모드 및 가로 모드를 포함하며, 및
상기 전자 장치의 폴딩 상태는, 상기 전자 장치의 펼침 상태 및 접힘 상태를 포함하는 방법.
18. The method of claim 17,
The direction information of the electronic device includes a portrait mode and a landscape mode, and
The folded state of the electronic device includes an unfolded state and a folded state of the electronic device.
KR1020210013650A 2020-12-03 2021-01-29 Electronic device and method for outputting multi-channel audio using the same KR20220078432A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/KR2021/016995 WO2022119194A1 (en) 2020-12-03 2021-11-18 Electronic device and multichannel audio output method using same
US18/183,477 US20230217169A1 (en) 2020-12-03 2023-03-14 Electronic device and multichannel audio output method using same

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020200167462 2020-12-03
KR20200167462 2020-12-03

Publications (1)

Publication Number Publication Date
KR20220078432A true KR20220078432A (en) 2022-06-10

Family

ID=81986507

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210013650A KR20220078432A (en) 2020-12-03 2021-01-29 Electronic device and method for outputting multi-channel audio using the same

Country Status (1)

Country Link
KR (1) KR20220078432A (en)

Similar Documents

Publication Publication Date Title
WO2022030893A1 (en) Electronic device for supporting audio sharing
KR20220039085A (en) Foldable electronic device for displaying various types of content and operating method thereof
US20230217169A1 (en) Electronic device and multichannel audio output method using same
US11303979B2 (en) Electronic device including multi-channel speaker system
US20230154500A1 (en) Electronic device, and method of synchronizing video data and audio data by using same
KR20220078432A (en) Electronic device and method for outputting multi-channel audio using the same
KR20220101856A (en) Electronic device and method for providing user interface
KR20220101789A (en) Electronic device and operation method thereof
KR20220077363A (en) Electronic device including air vent
KR20220014519A (en) Electronic device for synchronizing an output time point of content output by external electronic devices and method for the same
KR20220013630A (en) Electronic device for converting number of channels of audio and method for the same
US20220329937A1 (en) Electronic device including flexible printed circuit board
US20230199103A1 (en) Method of controlling content playing device and electronic device performing the method
KR20220136778A (en) Electronic device for supporting audio sharing
KR20230116334A (en) Method for providing screen and electronic device supporting the same
KR20230021846A (en) Electronic device for controlling noise caused by radio frequency communication and operating method thereof
KR20240050951A (en) Electronic device and method of operation thereof
KR20240027500A (en) Electronic device comprising plurality of speakers
KR20220140252A (en) Battery pack structure and housing structure of electronic device including the same
KR20230023486A (en) Electronic device providing a combination of a plurality of vivration patterns and method of operation therof
KR20230043549A (en) Method for displaying execution screen of application and electronic device supporting the same
KR20230112303A (en) Electronic device method for controlling picture in picture window in the electronic device
KR20220145150A (en) Electronic device and operating method thereof
KR20240047278A (en) Foldable electronic device and method for reducing echo generation
KR20230066841A (en) Electronic device and method for applying audio mode using metadata of audio track in electronic device

Legal Events

Date Code Title Description
A201 Request for examination