WO2018126613A1 - Method for playing audio data and dual-screen mobile terminal - Google Patents

Method for playing audio data and dual-screen mobile terminal Download PDF

Info

Publication number
WO2018126613A1
WO2018126613A1 PCT/CN2017/089345 CN2017089345W WO2018126613A1 WO 2018126613 A1 WO2018126613 A1 WO 2018126613A1 CN 2017089345 W CN2017089345 W CN 2017089345W WO 2018126613 A1 WO2018126613 A1 WO 2018126613A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
audio
screen
audio data
playing
Prior art date
Application number
PCT/CN2017/089345
Other languages
French (fr)
Chinese (zh)
Inventor
曹耀斌
于峰
熊平
张朝
李虎军
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018126613A1 publication Critical patent/WO2018126613A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the embodiments of the present invention relate to the field of mobile communications technologies, and in particular, to an audio data playing method and a dual-screen mobile terminal.
  • the object of the embodiments of the present invention is to provide an audio data playing method and a dual-screen mobile terminal, which solves the problem that when a dual-screen mobile terminal simultaneously plays audio data of different applications on two screens, only one playback device plays sound, resulting in two The sounds will be mixed together, causing poor sound playback.
  • an embodiment of the present invention provides an audio data playing method, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playing circuits, and the method includes:
  • Identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
  • Target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
  • Audio data is played through the target audio playback circuit.
  • An embodiment of the present invention further provides a dual-screen mobile terminal, including at least two audio playback circuits.
  • the terminal includes:
  • An identification module configured to identify a target screen, the target screen displaying display data of the target application, and the target screen is one of the terminals;
  • a search module configured to search for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
  • a play module configured to play audio data through the target audio playback circuit.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores one or more programs executable by a computer, and when the one or more programs are executed by the computer, the computer is executed as described above.
  • a method of playing audio data is provided.
  • a storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
  • processor being arranged to run a program, wherein the program is executed to perform the method of any of the above.
  • the target screen is identified, the target screen displays display data of the target application, and the target screen is a screen of the dual-screen mobile terminal; and the target audio playback corresponding to the target screen is searched for.
  • the circuit, the target audio playback circuit is one of the at least two audio playback circuits; and the audio data is played by the target audio playback circuit.
  • FIG. 1 is a schematic flowchart of a method for playing audio data according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another audio data playing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a system and a data flow of a dual-screen mobile terminal according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an audio digital-to-analog switch control module according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a dual-screen mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for playing audio data, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playback circuits, and the method includes the following steps:
  • Step S101 Identify a target screen, the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals.
  • the target application is an application currently running on the terminal system platform, for example: A game application, an audio playback application, or a video playback application, and the display data of the target application is displayed on a screen in the terminal, and the two screens of the terminal may be defined as a first screen and a second screen.
  • step S101 the identification target screen may be determined by using the currently running application information.
  • step S101 may include: acquiring the application information currently running on the terminal system platform, and identifying the information in the application information. A target application and identifying a target screen displaying display data of the target application.
  • step S101 can identify the target application and the target screen by searching the table.
  • the identification target screen may further associate the application with the screen in advance, and then the relationship between the application and the screen is predefined, and step S101 may identify the relationship between the application and the screen through a predefined relationship. Target screen.
  • Step S102 Search for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits.
  • the audio playback circuit can be a playback device, such as a speaker, a headset, a receiver, a Bluetooth headset, and the like.
  • the audio playback circuit may also be an audio channel configured to connect to a playback device.
  • the target audio playing circuit corresponding to the target screen can be set by the user, that is, the user can freely select the sound emitting device of the target screen as a speaker, a headset, a receiver, or a Bluetooth headset.
  • the searched result may be notified to the target audio playback circuit by using a software such as a registration callback function and setting system attributes.
  • Step S103 Play audio data through the target audio playing circuit.
  • the audio data is a sound file requested to be played by the target application, and the audio data needs to be decoded according to the format requirement of the target audio playback circuit, and the audio data stream that can be played back is obtained after being decoded, and then sent by digital-analog conversion. Play to the target audio playback circuit.
  • the audio data of the target application is played through the target audio playback circuit according to the corresponding relationship between the queried target screen and the target audio playback circuit.
  • the first screen corresponds to the first audio playing circuit, and when the first screen displays the data of the audio playing application, then the audio data of the audio playing application is played by the first audio playing circuit;
  • the second audio playing circuit and when the second screen displays the data of the video playing application, then the video data of the video playing application is played through the second audio playing circuit.
  • the target screen is identified, the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals; and the target audio playback circuit corresponding to the target screen is searched for.
  • the target audio playback circuit is one of the at least two audio playback circuits; the audio data is played by the target audio playback circuit.
  • an embodiment of the present invention provides another audio data playing method, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playing circuits, and the method includes the following steps:
  • Step S201 Identify a target screen, where the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals.
  • the method may include:
  • the two screens of the dual-screen mobile terminal respectively display display data of different applications, it is determined whether the different applications have audio data output;
  • the step of identifying the target screen is performed.
  • the determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications further includes:
  • the two screens of the dual-screen mobile terminal do not separately display the display data of different applications, the subsequent steps may not be performed.
  • Determining whether the different applications have audio data output further comprising:
  • the subsequent steps may not be performed.
  • Step S202 Acquire a correspondence between a preset screen and an audio playback circuit.
  • the correspondence between the predefined screen and the audio playing circuit may include two predefined manners: system customization and user customization.
  • step S202 may be to obtain a correspondence between the screen and the audio playing circuit by acquiring the table.
  • Step S203 Search for a target audio playback circuit corresponding to the target screen in the correspondence relationship.
  • the searching for the target audio playing circuit corresponding to the target screen in the corresponding relationship may be: searching for a target audio playing circuit corresponding to the target screen in the acquired correspondence table between the screen and the circuit.
  • Step S204 Play audio data through the target audio playback circuit.
  • the method may include:
  • the audio data of the target application is adjusted to be output through the target audio playback circuit.
  • the determining whether the audio data of the target application is output by the target audio playback circuit further includes:
  • the audio data of the target application is output through the target audio playback circuit, the audio data of the target application does not need to be adjusted, and may be directly output through the target audio playback circuit.
  • the audio data of the target application is output through a target audio playback circuit corresponding to the target screen, it may be determined whether the audio data of the target application needs to be adjusted to be played by the target audio. Circuit output.
  • the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit, so that there is no sound mixing to enhance the sound playback effect.
  • the audio data of the target application is output through the target audio playing circuit, it can be directly output through the target audio playing circuit without adjustment, so as to save system resources, and there is no sound mixing. To enhance the sound playback effect.
  • the playing the audio data by using the target audio playing circuit may include:
  • different audio playback circuits have different format requirements for the audio data, and the format requirement of the target audio playback circuit for the audio data needs to be obtained to obtain the playable audio number. According to the format.
  • Decoding the audio data of the target application according to the format requirement which may include two decoding modes:
  • Hard decoding that is, decoding the audio data of the target application by a digital signal processor
  • Soft decoding that is, decoding the audio data of the target application through a software program.
  • a playable audio data stream can be obtained, so that the audio data of the target application can be smoothly played through the target audio playback circuit.
  • a system framework and a data flow diagram of the dual-screen mobile terminal may be as shown in FIG. 3.
  • the system framework of the terminal includes an audio module, a dual-screen dual-tone selection module, and dual-screen dual
  • the sound policy module, the digital signal processing module, the audio digital-to-analog switch control module, and the sound emitting device module, the data stream includes a control stream, a first audio data stream, and a second audio data stream.
  • the step S201 can be implemented by the dual-screen dual-tone policy module, that is, the dual-screen dual-tone policy can be used to identify the target screen, for example, the first screen displays the display data of the first application, and the second screen displays the second application. Display data, the dual screen dual tone policy module passes this information to the audio module.
  • the dual-screen dual-tone policy module passes this information to the audio module.
  • Step S202 and step S203 may be implemented by the dual-screen dual-tone selection module, that is, the dual-screen dual-tone selection module may be configured to receive a correspondence between the screen set by the user and the audio playback circuit, thereby determining a target corresponding to the target screen.
  • the audio playing circuit for example, the user sets the corresponding first audio playing circuit on the first screen, and the second screen corresponds to the second audio playing circuit, and the dual-screen dual-tone selecting module can transmit the corresponding relationship to the dual screen through inter-process communication.
  • the dual-tone strategy module, the dual-screen dual-tone policy module can notify the audio framework of the corresponding relationship by registering a callback function, setting system attributes, and the like.
  • Step S204 can be implemented by the dual-screen dual-tone policy module, the audio module, the digital signal processing module, the audio digital-to-analog switch control module, and the playback device module, that is, the dual-screen dual-tone policy module can be set to be the target application. Audio data is not played through the target audio When the circuit outputs, the audio data of the target application is adjusted to be output through the target audio playback circuit, and the audio module is notified; the audio module may be configured to receive a play request of the target application, for example, the first play request is the first screen.
  • the digital signal processing module may be configured to decode the audio data of the target application according to the format requirement Processing, generating a playable audio data stream in a corresponding format, and The frequency data stream is returned to the audio module;
  • the audio digital-to-analog switch control module may be configured to receive an instruction of the audio module, perform digital-to-analog conversion, and transmit the audio data stream to a target audio playback circuit corresponding to the target screen,
  • the audio digital-to-analog switch control module includes a digital-to-analog conversion unit 41, a digital-to-analog conversion unit 42, and at least two contact switches, for example, including: a contact switch 43, a contact switch 44, wherein the digital-to-analog conversion unit 41 and the digital-to-analog conversion unit 42 are configured to receive an instruction of the audio module, perform digital-to-analog conversion on the audio data decoded by the digital signal processing module, and connect the contact switch to the target screen
  • the target audio playing circuit transmits the converted audio data to the target audio playing circuit via a contact switch.
  • the audio module sends the decoded first audio data of the first application to the digital-to-analog converting unit 41 for counting.
  • the modulo conversion, the decoded second audio data of the second application is sent to the digital-to-analog conversion unit 42 for digital-to-analog conversion, the contact switch 43 is connected to the first audio playback circuit, and the contact switch 44 is connected to the second audio playback circuit, and the digital-to-analog conversion unit 41, the converted first audio data is sent to the first audio playback circuit via the contact switch 43, and the digital-to-analog conversion unit 42 converts the converted audio data.
  • Two audio According to the contact switch 44, the second audio playback circuit is sent.
  • the system framework of the dual-screen mobile terminal is not limited.
  • the system framework shown in FIG. 3 is only an example. Some modules included in the system may be virtual modules, and others may be The module combined with the hardware and the hardware, or the hardware module, for example, the digital signal processing module may be a hardware module, such as a digital signal processor, or a software module, which is not limited by the embodiment of the present invention.
  • any of the screens may be configured to display the application data, and the audio signal of the application passes through the audio playback circuit corresponding to the screen. Play, so there will be no sound mixing to enhance the sound playback.
  • an embodiment of the present invention provides a dual-screen mobile terminal, including at least two audio playback circuits, and the dual-screen mobile terminal 50 includes:
  • the identification module 51 is configured to identify a target screen, the target screen displays display data of the target application, and the target screen is one of the terminals.
  • the searching module 52 is configured to search for a target audio playing circuit corresponding to the target screen, where the target audio playing circuit is one of the at least two audio playing circuits.
  • the playing module 53 is configured to play the audio data through the target audio playing circuit.
  • the searching module 52 includes:
  • the first collecting unit 521 is configured to acquire a correspondence between the predefined screen and the audio playing circuit
  • the searching unit 522 is configured to search for a target audio playing circuit corresponding to the target screen in the corresponding relationship.
  • the dual-screen mobile terminal 50 may further include:
  • the first determining module 54 is configured to determine, before the identifying the target screen, whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
  • the second determining module 55 is configured to determine whether the different applications have audio data output if the two screens of the dual-screen mobile terminal respectively display display data of different applications;
  • the identification module 51 is further configured to identify the target screen if the different applications have audio data output.
  • the dual-screen mobile terminal 40 may further include:
  • the third determining module 56 is configured to determine whether the audio data of the target application is output through the target audio playing circuit before the playing the audio data by the target audio playing circuit;
  • the playing module 53 is further configured to adjust the audio data of the target application to be output through the target audio playing circuit if the audio data of the target application is not output through the target audio playing circuit.
  • the play module 53 includes:
  • the second collecting unit 531 is configured to acquire a format requirement of the target audio playing circuit for the audio data
  • the digital signal processing unit 532 is configured to perform decoding processing on the audio data of the target application according to the format requirement
  • the playing unit 533 is configured to perform digital-to-analog conversion on the audio data of the decoded target application, and play the audio data through the target audio playing circuit.
  • the dual-screen mobile terminal 40 can implement the various processes of the audio data playing method in the method embodiment of FIG. 1 to FIG. 2, and can achieve the same beneficial effects. To avoid repetition, details are not described herein again.
  • Identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
  • Target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
  • Audio data is played through the target audio playback circuit.
  • the searching for the target audio playback circuit corresponding to the target screen includes:
  • the method further includes:
  • the two screens of the dual-screen mobile terminal respectively display display data of different applications, it is determined whether the different applications have audio data output;
  • the step of identifying the target screen is performed.
  • the method further includes:
  • the audio data of the target application is adjusted to be output through the target audio playback circuit.
  • the playing the audio data by using the target audio playing circuit includes:
  • the storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
  • the storage medium may be configured to store program code set to perform the following steps:
  • S1 identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
  • the storage medium is further configured to store program code set to perform the following steps: the searching for the target audio playback circuit corresponding to the target screen comprises:
  • the storage medium is further configured to store program code configured to perform the following steps: before the identifying the target screen, further comprising:
  • the storage medium is further configured to store program code configured to perform the following steps: before the playing the audio data by the target audio playback circuit, the method further includes:
  • the playing audio data by using the target audio playing circuit includes:
  • the audio data of the target application is adjusted to be output through the target audio playback circuit.
  • the storage medium is further configured to store program code configured to perform the following steps: the playing the audio data by the target audio playback circuit, comprising:
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present invention also provide a processor configured to execute a program, wherein the program is operative to perform the steps of any of the above methods.
  • the foregoing program is configured to perform the following steps:
  • S1 identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
  • the foregoing program is configured to perform the following steps: the searching for the target audio playback circuit corresponding to the target screen includes:
  • the foregoing program is configured to perform the following steps: before the identifying the target screen, further comprising:
  • the step of identifying the target screen is performed.
  • the foregoing program is configured to perform the following steps: before the playing the audio data by the target audio playing circuit, the method further includes:
  • the playing audio data by using the target audio playing circuit includes:
  • the audio data of the target application is adjusted to be output through the target audio playback circuit.
  • the playing audio data by using the target audio playback circuit includes:
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the target screen is identified, the target screen displays the display data of the target application, and the target screen is a screen in the dual-screen mobile terminal; the target audio playback circuit corresponding to the target screen is searched, and the target audio playback circuit is at least One of the two audio playback circuits; the audio data is played through the target audio playback circuit.
  • the audio playback circuit corresponding to the screen, so that there is no sound mixing, so as to enhance the sound playing effect.

Abstract

Provided are a method for playing audio data and a dual-screen mobile terminal. The dual-screen mobile terminal comprises at least two audio playing circuits. The method comprises: identifying a target screen, the target screen displaying display data of a target application, and the target screen being one of two screens of the dual-screen mobile terminal (S101); searching for a target audio playing circuit corresponding to the target screen, the target audio playing circuit being one of the at least two audio playing circuits (S102); and playing audio data by means of the target audio playing circuit (S103). In the present invention, when display data of an application is displayed on one screen, audio data of the application is played by an audio playing circuit corresponding to the screen, thereby avoiding a mishmash of sounds, and achieving better sound playing effect.

Description

一种音频数据播放方法和双屏移动终端Audio data playing method and dual screen mobile terminal 技术领域Technical field
本发明实施例涉及移动通讯技术领域,特别涉及一种音频数据播放方法和双屏移动终端。The embodiments of the present invention relate to the field of mobile communications technologies, and in particular, to an audio data playing method and a dual-screen mobile terminal.
背景技术Background technique
随着移动通讯技术的飞速发展,移动终端设备已成为人们生活中的必备品,人们对移动终端设备的功能要求也越来越高。目前,双屏移动终端设备已被开发出,用户可以独立操作两个显示屏幕,然而,当两个屏幕同时播放不同的应用的音频数据时,只有一个放音设备播放声音,这样两种应用的声音会混杂在一起,致使声音播放效果差。With the rapid development of mobile communication technology, mobile terminal devices have become a must-have item in people's lives, and people's functional requirements for mobile terminal devices are also increasing. At present, dual-screen mobile terminal devices have been developed, and users can independently operate two display screens. However, when two screens simultaneously play audio data of different applications, only one playback device plays sounds, so that the two applications The sounds will be mixed together, resulting in poor sound playback.
发明内容Summary of the invention
本发明实施例的目的在于提供一种音频数据播放方法和双屏移动终端,解决了双屏移动终端在两个屏幕同时播放不同的应用的音频数据时,只有一个放音设备播放声音,造成两种声音会混杂在一起,致使声音播放效果差的问题。The object of the embodiments of the present invention is to provide an audio data playing method and a dual-screen mobile terminal, which solves the problem that when a dual-screen mobile terminal simultaneously plays audio data of different applications on two screens, only one playback device plays sound, resulting in two The sounds will be mixed together, causing poor sound playback.
为了达到上述目的,本发明实施例提供一种音频数据播放方法,所述方法应用于双屏移动终端,所述双屏移动终端包括至少两路音频播放电路,所述方法包括:In order to achieve the above object, an embodiment of the present invention provides an audio data playing method, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playing circuits, and the method includes:
识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;Identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;Searching for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
通过所述目标音频播放电路播放音频数据。Audio data is played through the target audio playback circuit.
本发明实施例还提供一种双屏移动终端,包括至少两路音频播放电路, 所述终端包括:An embodiment of the present invention further provides a dual-screen mobile terminal, including at least two audio playback circuits. The terminal includes:
识别模块,设置为识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述终端中的一屏幕;An identification module, configured to identify a target screen, the target screen displaying display data of the target application, and the target screen is one of the terminals;
查找模块,设置为查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;a search module, configured to search for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
播放模块,设置为通过所述目标音频播放电路播放音频数据。a play module configured to play audio data through the target audio playback circuit.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如上述提供的一种音频数据播放方法。The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores one or more programs executable by a computer, and when the one or more programs are executed by the computer, the computer is executed as described above. A method of playing audio data is provided.
根据本发明的又一个实施例,还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述的方法。According to still another embodiment of the present invention, there is also provided a storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
根据本发明的又一个实施例,还提供了一种处理器,所述处理器设置为运行程序,其中,所述程序运行时执行上述任一项所述的方法。According to still another embodiment of the present invention, there is also provided a processor, the processor being arranged to run a program, wherein the program is executed to perform the method of any of the above.
上述技术方案中的一个技术方案具有如下优点或有益效果:One of the above technical solutions has the following advantages or benefits:
本发明实施例中,识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;通过所述目标音频播放电路播放音频数据。这样可以实现任一屏幕在显示应用的显示数据时,该应用的音频数据通过该屏幕所对应的音频播放电路播放,从而不会存在声音混杂,以提升声音播放效果。In the embodiment of the present invention, the target screen is identified, the target screen displays display data of the target application, and the target screen is a screen of the dual-screen mobile terminal; and the target audio playback corresponding to the target screen is searched for. The circuit, the target audio playback circuit is one of the at least two audio playback circuits; and the audio data is played by the target audio playback circuit. In this way, when any display screen displays the display data of the application, the audio data of the application is played through the audio playback circuit corresponding to the screen, so that there is no sound mixing, so as to enhance the sound playing effect.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1为本发明实施例提供的一种音频数据播放方法的流程示意图; 1 is a schematic flowchart of a method for playing audio data according to an embodiment of the present invention;
图2为本发明实施例提供的另一种音频数据播放方法的流程示意图;2 is a schematic flowchart of another audio data playing method according to an embodiment of the present invention;
图3为本发明实施例提供的一种双屏移动终端的系统框架图和数据流示意图;FIG. 3 is a schematic structural diagram of a system and a data flow of a dual-screen mobile terminal according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的一种音频数模转换开关控制模块结构示意图;4 is a schematic structural diagram of an audio digital-to-analog switch control module according to an embodiment of the present invention;
图5为本发明实施例提供的一种双屏移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a dual-screen mobile terminal according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种双屏移动终端的结构示意图;FIG. 6 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure;
图7为本发明实施例提供的另一种双屏移动终端的结构示意图;FIG. 7 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure;
图8为本发明实施例提供的另一种双屏移动终端的结构示意图;FIG. 8 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present disclosure;
图9为本发明实施例提供的另一种双屏移动终端的结构示意图。FIG. 9 is a schematic structural diagram of another dual-screen mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明实施例。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
为使本发明实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。The technical problems, the technical solutions, and the advantages of the embodiments of the present invention will be more clearly described in the following description.
如图1所示,本发明实施例提供一种音频数据播放方法,所述方法应用于双屏移动终端,所述双屏移动终端包括至少两路音频播放电路,所述方法包括以下步骤:As shown in FIG. 1 , an embodiment of the present invention provides a method for playing audio data, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playback circuits, and the method includes the following steps:
步骤S101、识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕。Step S101: Identify a target screen, the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals.
本实施例中,所述目标应用为当前运行在终端系统平台的应用,例如: 游戏应用、音频播放应用或者视频播放应用,且所述目标应用的显示数据显示在所述终端中的一屏幕,所述终端的两屏幕可以定义为第一屏幕和第二屏幕。In this embodiment, the target application is an application currently running on the terminal system platform, for example: A game application, an audio playback application, or a video playback application, and the display data of the target application is displayed on a screen in the terminal, and the two screens of the terminal may be defined as a first screen and a second screen.
在步骤S101中,识别目标屏幕可以是通过上述当前运行的应用信息确定的,例如:步骤S101可以包括:获取所述当前运行在终端系统平台的应用信息,以及在所述应用信息中识别所述目标应用,并识别显示所述目标应用的显示数据的目标屏幕。In step S101, the identification target screen may be determined by using the currently running application information. For example, step S101 may include: acquiring the application information currently running on the terminal system platform, and identifying the information in the application information. A target application and identifying a target screen displaying display data of the target application.
在该步骤中,可以假设所述当前运行在终端系统平台的应用信息储存在一张应用与屏幕的映射关系表中,该表中包含每个应用对应的屏幕位置信息,那么当有应用运行在终端系统平台时,步骤S101就可以通过查找该表来识别出目标应用和目标屏幕。In this step, it may be assumed that the application information currently running on the terminal system platform is stored in a mapping relationship table between the application and the screen, where the table contains the screen position information corresponding to each application, and then when the application runs on In the terminal system platform, step S101 can identify the target application and the target screen by searching the table.
另外,本实施例中,识别目标屏幕还可以是预先将应用和屏幕进行关联,那么应用和屏幕的关系是预先定义好的,步骤S101就可以通过预先定义的应用和屏幕的关系来识别所述目标屏幕。In addition, in this embodiment, the identification target screen may further associate the application with the screen in advance, and then the relationship between the application and the screen is predefined, and step S101 may identify the relationship between the application and the screen through a predefined relationship. Target screen.
步骤S102、查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路。Step S102: Search for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits.
其中,所述音频播放电路可以为放音设备,例如:扬声器、耳机、受话器、蓝牙耳机等。The audio playback circuit can be a playback device, such as a speaker, a headset, a receiver, a Bluetooth headset, and the like.
另外,所述音频播放电路还可以为设置为连接放音设备的音频通道。In addition, the audio playback circuit may also be an audio channel configured to connect to a playback device.
所述与所述目标屏幕对应的目标音频播放电路可由用户自行设置,即用户可以自由选择所述目标屏幕的放声设备为扬声器、耳机、受话器或蓝牙耳机等。The target audio playing circuit corresponding to the target screen can be set by the user, that is, the user can freely select the sound emitting device of the target screen as a speaker, a headset, a receiver, or a Bluetooth headset.
该实施方式中,所述查找与所述目标屏幕对应的目标音频播放电路的步骤执行完后,查找到的结果可以通过注册回调函数、设置系统属性等软件手段,通知所述目标音频播放电路。In this implementation manner, after the step of searching for the target audio playback circuit corresponding to the target screen is performed, the searched result may be notified to the target audio playback circuit by using a software such as a registration callback function and setting system attributes.
步骤S103、通过所述目标音频播放电路播放音频数据。 Step S103: Play audio data through the target audio playing circuit.
所述音频数据为所述目标应用请求播放的声音文件,所述音频数据需要根据所述目标音频播放电路的格式要求进行解码,解码后得到可播放的音频数据流,再经数模转换后送往所述目标音频播放电路进行播放。The audio data is a sound file requested to be played by the target application, and the audio data needs to be decoded according to the format requirement of the target audio playback circuit, and the audio data stream that can be played back is obtained after being decoded, and then sent by digital-analog conversion. Play to the target audio playback circuit.
根据查询到的目标屏幕与目标音频播放电路的对应关系,将目标应用的音频数据通过所述目标音频播放电路进行播放。例如:第一屏幕对应第一音频播放电路,且当第一屏幕显示音频播放应用程序的数据时,那么,音频播放应用程序的音频数据就通过第一音频播放电路进行播放;第二屏幕对应第二音频播放电路,且当第二屏幕显示视频播放应用程序的数据时,那么,视频播放应用程序的视频数据就通过第二音频播放电路进行播放。The audio data of the target application is played through the target audio playback circuit according to the corresponding relationship between the queried target screen and the target audio playback circuit. For example, the first screen corresponds to the first audio playing circuit, and when the first screen displays the data of the audio playing application, then the audio data of the audio playing application is played by the first audio playing circuit; The second audio playing circuit, and when the second screen displays the data of the video playing application, then the video data of the video playing application is played through the second audio playing circuit.
本实施例中,识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;通过所述目标音频播放电路播放音频数据。这样可以实现任一屏幕在显示应用的显示数据时,该应用的音频信号通过该屏幕所对应音频播放电路播放,从而不会存在声音混杂,以提升声音播放效果。In this embodiment, the target screen is identified, the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals; and the target audio playback circuit corresponding to the target screen is searched for. The target audio playback circuit is one of the at least two audio playback circuits; the audio data is played by the target audio playback circuit. In this way, when any display screen displays the display data of the application, the audio signal of the application is played through the audio playback circuit corresponding to the screen, so that there is no sound mixing, thereby improving the sound playing effect.
如图2所示,本发明实施例提供另一种音频数据播放方法,所述方法应用于双屏移动终端,所述双屏移动终端包括至少两路音频播放电路,所述方法包括以下步骤:As shown in FIG. 2, an embodiment of the present invention provides another audio data playing method, where the method is applied to a dual-screen mobile terminal, where the dual-screen mobile terminal includes at least two audio playing circuits, and the method includes the following steps:
步骤S201、识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕。Step S201: Identify a target screen, where the target screen displays display data of the target application, and the target screen is one of the dual-screen mobile terminals.
可选的,在上述识别目标屏幕之前,所述方法可以包括:Optionally, before the foregoing identifying the target screen, the method may include:
判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;Determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;If the two screens of the dual-screen mobile terminal respectively display display data of different applications, it is determined whether the different applications have audio data output;
若所述不同的应用均有音频数据输出,则执行上述识别目标屏幕的步骤。 If the different applications have audio data output, the step of identifying the target screen is performed.
该实施方式中,所述判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据,还包括:In this implementation manner, the determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications further includes:
若所述双屏移动终端的两个屏幕不是分别显示不同的应用的显示数据,则可以不执行后续步骤。If the two screens of the dual-screen mobile terminal do not separately display the display data of different applications, the subsequent steps may not be performed.
所述判断所述不同的应用是否均有音频数据输出,还包括:Determining whether the different applications have audio data output, further comprising:
若所述不同的应用不是均有音频数据输出,则可以不执行后续步骤。If the different applications do not have audio data output, the subsequent steps may not be performed.
该实施方式中,通过判断判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据和所述不同的应用是否均有音频数据输出来决定是否需要执行后续步骤。当所述终端的两个屏幕分别显示不同的应用的显示数据,且所述不同的应用均有音频数据输出时,执行后续步骤,以实现两个不同的应用分别通过不同的音频播放电路进行播放,从而不会存在声音混杂,以提升声音播放效果;当所述终端只有一个屏幕显示应用的显示数据或只有一个应用有音频数据输出时,可以不执行后续步骤,以达到节省系统资源的目的,而且也不会存在声音混杂导致声音播放效果差的问题。In this implementation manner, it is determined whether it is necessary to perform the subsequent steps by determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications and whether the different applications have audio data output. When the two screens of the terminal respectively display display data of different applications, and the different applications have audio data output, performing subsequent steps to realize that two different applications are respectively played through different audio playback circuits. Therefore, there is no sound mixing to enhance the sound playing effect; when the terminal has only one screen display application display data or only one application has audio data output, the subsequent steps may not be performed to save system resources. Moreover, there is no problem that the sound is mixed and the sound playback effect is poor.
步骤S202、获取预先定义的屏幕与音频播放电路的对应关系。Step S202: Acquire a correspondence between a preset screen and an audio playback circuit.
可选的,该实施方式中,所述预先定义屏幕与音频播放电路的对应关系可以包括两种预先定义方式:系统自定义和用户自定义。Optionally, in this implementation manner, the correspondence between the predefined screen and the audio playing circuit may include two predefined manners: system customization and user customization.
在该步骤中,可以假设所述预先定义的屏幕与音频播放电路的对应关系储存在一张屏幕与电路的对应关系表中,该表中第一屏幕和第二屏幕分别有对应的音频播放电路,那么,步骤S202可以是通过获取该表来得到屏幕与音频播放电路的对应关系。In this step, it may be assumed that the correspondence between the predefined screen and the audio playback circuit is stored in a correspondence table between the screen and the circuit, and the first screen and the second screen respectively have corresponding audio playback circuits. Then, step S202 may be to obtain a correspondence between the screen and the audio playing circuit by acquiring the table.
步骤S203、在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。Step S203: Search for a target audio playback circuit corresponding to the target screen in the correspondence relationship.
所述在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路可以是在获取的屏幕与电路的对应关系表中查找与所述目标屏幕对应的目标音频播放电路。 The searching for the target audio playing circuit corresponding to the target screen in the corresponding relationship may be: searching for a target audio playing circuit corresponding to the target screen in the acquired correspondence table between the screen and the circuit.
步骤S204、通过所述目标音频播放电路播放音频数据。Step S204: Play audio data through the target audio playback circuit.
可选的,在上述通过所述目标音频播放电路播放音频数据之前,所述方法可以包括:Optionally, before the playing the audio data by the target audio playing circuit, the method may include:
判断所述目标应用的音频数据是否是通过与所述目标屏幕对应的目标音频播放电路输出;Determining whether the audio data of the target application is output through a target audio playback circuit corresponding to the target screen;
若所述目标应用的音频数据不是通过所述目标音频播放电路输出,则将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。If the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit.
该实施方式中,所述判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出,还包括:In this implementation manner, the determining whether the audio data of the target application is output by the target audio playback circuit further includes:
若所述目标应用的音频数据是通过所述目标音频播放电路输出,则所述目标应用的音频数据无需调整,可直接通过所述目标音频播放电路输出。If the audio data of the target application is output through the target audio playback circuit, the audio data of the target application does not need to be adjusted, and may be directly output through the target audio playback circuit.
该实施方式中,通过判断所述目标应用的音频数据是否是通过与所述目标屏幕对应的目标音频播放电路输出,可以决定是否需要将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。当所述目标应用的音频数据不是通过所述目标音频播放电路输出时,将所述目标应用的音频数据调整至通过所述目标音频播放电路输出,从而不会存在声音混杂,以提升声音播放效果;当所述目标应用的音频数据是通过所述目标音频播放电路输出时,无需调整,可直接通过所述目标音频播放电路输出,以达到节省系统资源的目的,而且也不会存在声音混杂,以提升声音播放效果。In this implementation manner, by determining whether the audio data of the target application is output through a target audio playback circuit corresponding to the target screen, it may be determined whether the audio data of the target application needs to be adjusted to be played by the target audio. Circuit output. When the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit, so that there is no sound mixing to enhance the sound playback effect. When the audio data of the target application is output through the target audio playing circuit, it can be directly output through the target audio playing circuit without adjustment, so as to save system resources, and there is no sound mixing. To enhance the sound playback effect.
可选的,所述通过所述目标音频播放电路播放音频数据,可以包括:Optionally, the playing the audio data by using the target audio playing circuit may include:
获取所述目标音频播放电路对音频数据的格式要求;Obtaining a format requirement of the target audio playing circuit for the audio data;
按照所述格式要求对所述目标应用的音频数据进行解码处理;Decoding the audio data of the target application according to the format requirement;
将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。And transcoding the decoded audio data of the target application, and playing the audio data through the target audio playback circuit.
本实施例中,不同的音频播放电路对音频数据的格式要求不同,需获取所述目标音频播放电路对音频数据的格式要求,以获得可播放的音频数 据格式。In this embodiment, different audio playback circuits have different format requirements for the audio data, and the format requirement of the target audio playback circuit for the audio data needs to be obtained to obtain the playable audio number. According to the format.
所述按照所述格式要求对所述目标应用的音频数据进行解码处理,可以包括两种解码方式:Decoding the audio data of the target application according to the format requirement, which may include two decoding modes:
硬解码,即通过数字信号处理器对所述目标应用的音频数据进行解码;Hard decoding, that is, decoding the audio data of the target application by a digital signal processor;
软解码,即通过软件程序对所述目标应用的音频数据进行解码。Soft decoding, that is, decoding the audio data of the target application through a software program.
通过按照所述格式要求对所述目标应用的音频数据进行解码,可以获得可播放的音频数据流,使所述目标应用的音频数据能顺利通过所述目标音频播放电路进行播放。By decoding the audio data of the target application according to the format requirement, a playable audio data stream can be obtained, so that the audio data of the target application can be smoothly played through the target audio playback circuit.
可选的,本发明实施例中,双屏移动终端的系统框架和数据流示意图可以如图3所示,例如:所述终端的系统框架包括音频模块、双屏双音选择模块、双屏双音策略模块、数字信号处理模块、音频数模转换开关控制模块和放音设备模块,所述数据流包括控制流、第一音频数据流和第二音频数据流。Optionally, in the embodiment of the present invention, a system framework and a data flow diagram of the dual-screen mobile terminal may be as shown in FIG. 3. For example, the system framework of the terminal includes an audio module, a dual-screen dual-tone selection module, and dual-screen dual The sound policy module, the digital signal processing module, the audio digital-to-analog switch control module, and the sound emitting device module, the data stream includes a control stream, a first audio data stream, and a second audio data stream.
其中,步骤S201可以由上述双屏双音策略模块来实现,即双屏双音策略可以用于识别目标屏幕,例如:第一屏幕显示第一应用的显示数据,第二屏幕显示第二应用的显示数据,则双屏双音策略模块将此信息传递给音频模块。The step S201 can be implemented by the dual-screen dual-tone policy module, that is, the dual-screen dual-tone policy can be used to identify the target screen, for example, the first screen displays the display data of the first application, and the second screen displays the second application. Display data, the dual screen dual tone policy module passes this information to the audio module.
步骤S202和步骤S203可以由上述双屏双音选择模块来实现,即双屏双音选择模块可以设置为接收用户设置的屏幕与音频播放电路的对应关系,从而确定与所述目标屏幕对应的目标音频播放电路,例如:用户设置第一屏幕上对应第一音频播放电路,第二屏幕对应第二音频播放电路,则双屏双音选择模块可以通过进程间通讯将所述对应关系传递给双屏双音策略模块,双屏双音策略模块可以通过注册回调函数,设置系统属性等各种软件手段将所述对应关系通知音频框架。Step S202 and step S203 may be implemented by the dual-screen dual-tone selection module, that is, the dual-screen dual-tone selection module may be configured to receive a correspondence between the screen set by the user and the audio playback circuit, thereby determining a target corresponding to the target screen. The audio playing circuit, for example, the user sets the corresponding first audio playing circuit on the first screen, and the second screen corresponds to the second audio playing circuit, and the dual-screen dual-tone selecting module can transmit the corresponding relationship to the dual screen through inter-process communication. The dual-tone strategy module, the dual-screen dual-tone policy module can notify the audio framework of the corresponding relationship by registering a callback function, setting system attributes, and the like.
步骤S204可以由上述双屏双音策略模块、音频模块、数字信号处理模块、音频数模转换开关控制模块和放音设备模块实现,即双屏双音策略模块可以设置为若所述目标应用的音频数据不是通过所述目标音频播放 电路输出时,将所述目标应用的音频数据调整至通过所述目标音频播放电路输出,并通知音频模块;音频模块可以设置为接收目标应用的播放请求,例如:第一播放请求为第一屏幕请求播放第一应用的音频数据,第二播放请求为第二屏幕请求播放第二应用的音频数据,并将目标应用的音频数据从存储设备加载到内存中,例如:加载第一应用的第一音频数据和第二应用的第二音频数据,送给数字信号处理模块进行音频解码,判断所述目标应用的音频数据是否是通过与所述目标屏幕对应的目标音频播放电路输出,并将判断结果返回到双屏双音策略模块,获取与所述目标屏幕对应的目标放音设备对音频数据的格式要求;数字信号处理模块可以设置为按照所述格式要求对所述目标应用的音频数据进行解码处理,产生相应格式的可播放的音频数据流,并所述音频数据流返回到音频模块;音频数模转换开关控制模块可以设置为接收音频模块的指令,将所述音频数据流进行数模转换,并输送至与所述目标屏幕对应的目标音频播放电路,例如:将第一应用的音频数据流输送至第一音频播放电路,第二应用的音频数据流输送至第二音频播放电路;放音设备模块可以设置为通过与所述目标屏幕对应的目标放音设备播放音频数据,例如:第一音频播放电路播放第一应用的第一音频数据,第二音频播放电路播放第二应用的第二音频数据。Step S204 can be implemented by the dual-screen dual-tone policy module, the audio module, the digital signal processing module, the audio digital-to-analog switch control module, and the playback device module, that is, the dual-screen dual-tone policy module can be set to be the target application. Audio data is not played through the target audio When the circuit outputs, the audio data of the target application is adjusted to be output through the target audio playback circuit, and the audio module is notified; the audio module may be configured to receive a play request of the target application, for example, the first play request is the first screen. Requesting to play the audio data of the first application, the second play request requesting playing the audio data of the second application for the second screen, and loading the audio data of the target application into the memory from the storage device, for example, loading the first application And the audio data and the second audio data of the second application are sent to the digital signal processing module for audio decoding, determining whether the audio data of the target application is output through a target audio playback circuit corresponding to the target screen, and the determination result is Returning to the dual screen dual tone policy module, obtaining a format requirement of the target playback device corresponding to the target screen for audio data; the digital signal processing module may be configured to decode the audio data of the target application according to the format requirement Processing, generating a playable audio data stream in a corresponding format, and The frequency data stream is returned to the audio module; the audio digital-to-analog switch control module may be configured to receive an instruction of the audio module, perform digital-to-analog conversion, and transmit the audio data stream to a target audio playback circuit corresponding to the target screen, For example, the audio data stream of the first application is sent to the first audio playing circuit, and the audio data stream of the second application is sent to the second audio playing circuit; the sound emitting device module may be configured to pass the target corresponding to the target screen The audio device plays the audio data, for example, the first audio playback circuit plays the first audio data of the first application, and the second audio playback circuit plays the second audio data of the second application.
可选的,本发明实施例中,音频数模转换开关控制模块可以如图4所示,包括数模转换单元41、数模转换单元42和至少两个接点开关,例如包括:接点开关43、接点开关44,其中,数模转换单元41和数模转换单元42设置为接收音频模块的指令,将数字信号处理模块解码后的音频数据进行数模转换,接点开关连接至与所述目标屏幕对应的目标音频播放电路,将转换后的音频数据经接点开关输送至所述目标音频播放电路,例如:音频模块则将解码后的第一应用的第一音频数据送入数模转换单元41进行数模转换,解码后的第二应用的第二音频数据送入数模转换单元42进行数模转换,接点开关43连接第一音频播放电路,接点开关44连接第二音频播放电路,数模转换单元41则将转换后的第一音频数据经接点开关43输送至第一音频播放电路,数模转换单元42则将转换后的第二音频数 据经接点开关44送入第二音频播放电路。Optionally, in the embodiment of the present invention, the audio digital-to-analog switch control module, as shown in FIG. 4, includes a digital-to-analog conversion unit 41, a digital-to-analog conversion unit 42, and at least two contact switches, for example, including: a contact switch 43, a contact switch 44, wherein the digital-to-analog conversion unit 41 and the digital-to-analog conversion unit 42 are configured to receive an instruction of the audio module, perform digital-to-analog conversion on the audio data decoded by the digital signal processing module, and connect the contact switch to the target screen The target audio playing circuit transmits the converted audio data to the target audio playing circuit via a contact switch. For example, the audio module sends the decoded first audio data of the first application to the digital-to-analog converting unit 41 for counting. The modulo conversion, the decoded second audio data of the second application is sent to the digital-to-analog conversion unit 42 for digital-to-analog conversion, the contact switch 43 is connected to the first audio playback circuit, and the contact switch 44 is connected to the second audio playback circuit, and the digital-to-analog conversion unit 41, the converted first audio data is sent to the first audio playback circuit via the contact switch 43, and the digital-to-analog conversion unit 42 converts the converted audio data. Two audio According to the contact switch 44, the second audio playback circuit is sent.
需要说明的是,本发明实施例中,并不限定双屏移动终端的系统框架,图3所示的系统框架仅是一个举例,该系统中包括的模块有些可以是虚拟模块,而另一些可以虚拟与硬件结合的模块,或者硬件模块,例如:上述数字信号处理模块可以是硬件模块如数字信号处理器,也可以是软件模块,对此本发明实施例不作限定。It should be noted that, in the embodiment of the present invention, the system framework of the dual-screen mobile terminal is not limited. The system framework shown in FIG. 3 is only an example. Some modules included in the system may be virtual modules, and others may be The module combined with the hardware and the hardware, or the hardware module, for example, the digital signal processing module may be a hardware module, such as a digital signal processor, or a software module, which is not limited by the embodiment of the present invention.
当然,该实施方式,同样可以应用到图1所示的实施例中,且能达到相同有益效果。Of course, this embodiment can also be applied to the embodiment shown in FIG. 1 and the same advantageous effects can be achieved.
本实施例中,在图1所示的基础上增加了多种可选的实施方式,都可以实现任一屏幕在显示应用的显示数据时,该应用的音频信号通过该屏幕所对应音频播放电路播放,从而不会存在声音混杂,以提升声音播放效果。In this embodiment, a plurality of optional implementation manners are added on the basis of the screen shown in FIG. 1 , and any of the screens may be configured to display the application data, and the audio signal of the application passes through the audio playback circuit corresponding to the screen. Play, so there will be no sound mixing to enhance the sound playback.
通过以上所描述的步骤,可以实现两个屏幕通过不同的音频播放电路播放不同的应用的音频数据,以达到较好的声音播放效果且互不干扰。Through the steps described above, it is possible to realize that two screens play audio data of different applications through different audio playing circuits, so as to achieve better sound playing effects without mutual interference.
如图5所示,本发明实施例提供一种双屏移动终端,包括至少两路音频播放电路,双屏移动终端50包括:As shown in FIG. 5, an embodiment of the present invention provides a dual-screen mobile terminal, including at least two audio playback circuits, and the dual-screen mobile terminal 50 includes:
识别模块51,设置为识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述终端中的一屏幕。The identification module 51 is configured to identify a target screen, the target screen displays display data of the target application, and the target screen is one of the terminals.
查找模块52,设置为查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路。The searching module 52 is configured to search for a target audio playing circuit corresponding to the target screen, where the target audio playing circuit is one of the at least two audio playing circuits.
播放模块53,设置为通过所述目标音频播放电路播放音频数据。The playing module 53 is configured to play the audio data through the target audio playing circuit.
如图6所示,所述查找模块52包括:As shown in FIG. 6, the searching module 52 includes:
第一采集单元521,设置为获取预先定义的屏幕与音频播放电路的对应关系;The first collecting unit 521 is configured to acquire a correspondence between the predefined screen and the audio playing circuit;
查找单元522,设置为在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。The searching unit 522 is configured to search for a target audio playing circuit corresponding to the target screen in the corresponding relationship.
可选的,如图7所示,所述双屏移动终端50还可以包括: Optionally, as shown in FIG. 7, the dual-screen mobile terminal 50 may further include:
第一判断模块54,设置为在所述识别目标屏幕之前,判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;The first determining module 54 is configured to determine, before the identifying the target screen, whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
第二判断模块55,设置为若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;The second determining module 55 is configured to determine whether the different applications have audio data output if the two screens of the dual-screen mobile terminal respectively display display data of different applications;
可选的,识别模块51还可以设置为若所述不同的应用均有音频数据输出,则识别目标屏幕。Optionally, the identification module 51 is further configured to identify the target screen if the different applications have audio data output.
可选的,如图8所示,所述双屏移动终端40还可以包括:Optionally, as shown in FIG. 8, the dual-screen mobile terminal 40 may further include:
第三判断模块56,设置为在所述通过所述目标音频播放电路播放音频数据之前,判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;The third determining module 56 is configured to determine whether the audio data of the target application is output through the target audio playing circuit before the playing the audio data by the target audio playing circuit;
可选的,播放模块53还可以设置为若所述目标应用的音频数据不是通过所述目标音频播放电路输出,将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。Optionally, the playing module 53 is further configured to adjust the audio data of the target application to be output through the target audio playing circuit if the audio data of the target application is not output through the target audio playing circuit.
如图9所示,所述播放模块53包括:As shown in FIG. 9, the play module 53 includes:
第二采集单元531,设置为获取所述目标音频播放电路对音频数据的格式要求;The second collecting unit 531 is configured to acquire a format requirement of the target audio playing circuit for the audio data;
数字信号处理单元532,设置为按照所述格式要求对所述目标应用的音频数据进行解码处理;The digital signal processing unit 532 is configured to perform decoding processing on the audio data of the target application according to the format requirement;
播放单元533,设置为将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。The playing unit 533 is configured to perform digital-to-analog conversion on the audio data of the decoded target application, and play the audio data through the target audio playing circuit.
双屏移动终端40能够实现图1至图2的方法实施例中音频数据播放方法的各个过程,以及能达到相同的有益效果,为避免重复,这里不再赘述。The dual-screen mobile terminal 40 can implement the various processes of the audio data playing method in the method embodiment of FIG. 1 to FIG. 2, and can achieve the same beneficial effects. To avoid repetition, details are not described herein again.
本领域普通技术人员可以理解实现上述实施例方法的全部或者部分步骤是可以通过程序指令相关的硬件来完成,所述的程序可以存储于一计算机可读取介质中,该程序在执行时,包括以下步骤: It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be performed by hardware associated with program instructions, which may be stored in a computer readable medium, including when executed, including The following steps:
识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;Identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;Searching for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
通过所述目标音频播放电路播放音频数据。Audio data is played through the target audio playback circuit.
所述查找与所述目标屏幕对应的目标音频播放电路,包括:The searching for the target audio playback circuit corresponding to the target screen includes:
获取预先定义的屏幕与音频播放电路的对应关系;Obtaining a correspondence between a predefined screen and an audio playback circuit;
在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。Finding a target audio playback circuit corresponding to the target screen in the correspondence.
所述方法还包括:The method further includes:
在所述识别目标屏幕之前,判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;Before the identifying the target screen, determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;If the two screens of the dual-screen mobile terminal respectively display display data of different applications, it is determined whether the different applications have audio data output;
若所述不同的应用均有音频数据输出,则执行所述识别目标屏幕的步骤。If the different applications have audio data output, the step of identifying the target screen is performed.
所述方法还包括:The method further includes:
在所述通过所述目标音频播放电路播放所述音频数据之前,判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;Before the playing the audio data by the target audio playing circuit, determining whether the audio data of the target application is output through the target audio playing circuit;
若所述目标应用的音频数据不是通过所述目标音频播放电路输出,将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。If the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit.
所述通过所述目标音频播放电路播放所述音频数据,包括:The playing the audio data by using the target audio playing circuit includes:
获取所述目标音频播放电路对音频数据的格式要求;Obtaining a format requirement of the target audio playing circuit for the audio data;
按照所述格式要求对所述目标应用的音频数据进行解码处理;Decoding the audio data of the target application according to the format requirement;
将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。 And transcoding the decoded audio data of the target application, and playing the audio data through the target audio playback circuit.
所述的存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
实施例3Example 3
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项所述的方法。Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
可选地,在本实施例中,上述存储介质可以被设置为存储设置为执行以下步骤的程序代码:Optionally, in the embodiment, the storage medium may be configured to store program code set to perform the following steps:
S1,识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;S1, identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
S2,查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;S2, searching for a target audio playing circuit corresponding to the target screen, where the target audio playing circuit is one of the at least two audio playing circuits;
S3,通过所述目标音频播放电路播放音频数据。S3, playing audio data through the target audio playing circuit.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:所述查找与所述目标屏幕对应的目标音频播放电路,包括:Optionally, the storage medium is further configured to store program code set to perform the following steps: the searching for the target audio playback circuit corresponding to the target screen comprises:
S1,获取预先定义的屏幕与音频播放电路的对应关系;S1, obtaining a correspondence between a predefined screen and an audio playing circuit;
S2,在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。S2. Search for a target audio playback circuit corresponding to the target screen in the correspondence.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:在所述识别目标屏幕之前,还包括:Optionally, the storage medium is further configured to store program code configured to perform the following steps: before the identifying the target screen, further comprising:
S1,判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;S1. Determine whether the two screens of the dual-screen mobile terminal respectively display display data of different applications.
S2,若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;S2, if the two screens of the dual-screen mobile terminal respectively display display data of different applications, determine whether the different applications have audio data output;
S3,若所述不同的应用均有音频数据输出,则执行所述识别目标屏幕 的步骤。S3, if the different applications have audio data output, execute the recognition target screen A step of.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:在所述通过所述目标音频播放电路播放音频数据之前,还包括:Optionally, the storage medium is further configured to store program code configured to perform the following steps: before the playing the audio data by the target audio playback circuit, the method further includes:
S1,判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;S1. Determine whether audio data of the target application is output through the target audio playback circuit.
S2,所述通过所述目标音频播放电路播放音频数据,包括:S2. The playing audio data by using the target audio playing circuit includes:
S3,若所述目标应用的音频数据不是通过所述目标音频播放电路输出,则将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。S3. If the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit.
可选地,存储介质还被设置为存储设置为执行以下步骤的程序代码:所述通过所述目标音频播放电路播放音频数据,包括:Optionally, the storage medium is further configured to store program code configured to perform the following steps: the playing the audio data by the target audio playback circuit, comprising:
S1,获取所述目标音频播放电路对音频数据的格式要求;S1. Obtain a format requirement of the target audio playback circuit for audio data.
S2,按照所述格式要求对所述目标应用的音频数据进行解码处理;S2, performing decoding processing on the audio data of the target application according to the format requirement;
S3,将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。S3. Perform digital-to-analog conversion on the audio data of the decoded target application, and play the audio data through the target audio playback circuit.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
本发明的实施例还提供了一种处理器,该处理器设置为运行程序,其中,该程序运行时执行上述任一项方法中的步骤。Embodiments of the present invention also provide a processor configured to execute a program, wherein the program is operative to perform the steps of any of the above methods.
可选地,在本实施例中,上述程序设置为执行以下步骤:Optionally, in this embodiment, the foregoing program is configured to perform the following steps:
S1,识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;S1, identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
S2,查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;S2, searching for a target audio playing circuit corresponding to the target screen, where the target audio playing circuit is one of the at least two audio playing circuits;
S3,通过所述目标音频播放电路播放音频数据。 S3, playing audio data through the target audio playing circuit.
可选地,在本实施例中,上述程序设置为执行以下步骤:所述查找与所述目标屏幕对应的目标音频播放电路,包括:Optionally, in this embodiment, the foregoing program is configured to perform the following steps: the searching for the target audio playback circuit corresponding to the target screen includes:
S1,获取预先定义的屏幕与音频播放电路的对应关系;S1, obtaining a correspondence between a predefined screen and an audio playing circuit;
S2,在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。S2. Search for a target audio playback circuit corresponding to the target screen in the correspondence.
可选地,在本实施例中,上述程序设置为执行以下步骤:在所述识别目标屏幕之前,还包括:Optionally, in this embodiment, the foregoing program is configured to perform the following steps: before the identifying the target screen, further comprising:
S1,判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;S1. Determine whether the two screens of the dual-screen mobile terminal respectively display display data of different applications.
S2,若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;S2, if the two screens of the dual-screen mobile terminal respectively display display data of different applications, determine whether the different applications have audio data output;
S3,若所述不同的应用均有音频数据输出,则执行所述识别目标屏幕的步骤。S3. If the different applications have audio data output, the step of identifying the target screen is performed.
可选地,在本实施例中,上述程序设置为执行以下步骤:在所述通过所述目标音频播放电路播放音频数据之前,还包括:Optionally, in this embodiment, the foregoing program is configured to perform the following steps: before the playing the audio data by the target audio playing circuit, the method further includes:
S1,判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;S1. Determine whether audio data of the target application is output through the target audio playback circuit.
S2,所述通过所述目标音频播放电路播放音频数据,包括:S2. The playing audio data by using the target audio playing circuit includes:
S3,若所述目标应用的音频数据不是通过所述目标音频播放电路输出,则将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。S3. If the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit.
可选地,在本实施例中,上述程序设置为执行以下步骤:所述通过所述目标音频播放电路播放音频数据,包括:Optionally, in this embodiment, the foregoing program is configured to perform the following steps: the playing audio data by using the target audio playback circuit includes:
S1,获取所述目标音频播放电路对音频数据的格式要求;S1. Obtain a format requirement of the target audio playback circuit for audio data.
S2,按照所述格式要求对所述目标应用的音频数据进行解码处理;S2, performing decoding processing on the audio data of the target application according to the format requirement;
S3,将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。 S3. Perform digital-to-analog conversion on the audio data of the decoded target application, and play the audio data through the target audio playback circuit.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例中,识别目标屏幕,目标屏幕显示有目标应用的显示数据,且目标屏幕为双屏移动终端中的一屏幕;查找与目标屏幕对应的目标音频播放电路,目标音频播放电路为至少两路音频播放电路中的一路;通过目标音频播放电路播放音频数据。这样可以实现任一屏幕在显示应用的显示数据时,该应用的音频数据通过该屏幕所对应的音频播放电路播放,从而不会存在声音混杂,以提升声音播放效果。 In the embodiment of the present invention, the target screen is identified, the target screen displays the display data of the target application, and the target screen is a screen in the dual-screen mobile terminal; the target audio playback circuit corresponding to the target screen is searched, and the target audio playback circuit is at least One of the two audio playback circuits; the audio data is played through the target audio playback circuit. In this way, when any display screen displays the display data of the application, the audio data of the application is played through the audio playback circuit corresponding to the screen, so that there is no sound mixing, so as to enhance the sound playing effect.

Claims (12)

  1. 一种音频数据播放方法,所述方法应用于双屏移动终端,所述双屏移动终端包括至少两路音频播放电路,所述方法包括:An audio data playing method, the method is applied to a dual-screen mobile terminal, and the dual-screen mobile terminal includes at least two audio playing circuits, and the method includes:
    识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述双屏移动终端中的一屏幕;Identifying a target screen, the target screen displaying display data of the target application, and the target screen is one of the dual-screen mobile terminals;
    查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;Searching for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
    通过所述目标音频播放电路播放音频数据。Audio data is played through the target audio playback circuit.
  2. 根据权利要求1所述的方法,其中,所述查找与所述目标屏幕对应的目标音频播放电路,包括:The method of claim 1, wherein the finding a target audio playback circuit corresponding to the target screen comprises:
    获取预先定义的屏幕与音频播放电路的对应关系;Obtaining a correspondence between a predefined screen and an audio playback circuit;
    在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。Finding a target audio playback circuit corresponding to the target screen in the correspondence.
  3. 根据权利要求1或2所述的方法,其中,在所述识别目标屏幕之前,还包括:The method according to claim 1 or 2, further comprising: before the identifying the target screen:
    判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据;Determining whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
    若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;If the two screens of the dual-screen mobile terminal respectively display display data of different applications, it is determined whether the different applications have audio data output;
    若所述不同的应用均有音频数据输出,则执行所述识别目标屏幕的步骤。If the different applications have audio data output, the step of identifying the target screen is performed.
  4. 根据权利要求1或2所述的方法,其中,在所述通过所述目标音频播放电路播放音频数据之前,还包括:The method according to claim 1 or 2, further comprising: before the playing the audio data by the target audio playing circuit,
    判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;Determining whether the audio data of the target application is output through the target audio playback circuit;
    所述通过所述目标音频播放电路播放音频数据,包括: The playing audio data by the target audio playing circuit includes:
    若所述目标应用的音频数据不是通过所述目标音频播放电路输出,则将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。If the audio data of the target application is not output through the target audio playback circuit, the audio data of the target application is adjusted to be output through the target audio playback circuit.
  5. 根据权利要求1或2所述的方法,其中,所述通过所述目标音频播放电路播放音频数据,包括:The method according to claim 1 or 2, wherein said playing audio data by said target audio playback circuit comprises:
    获取所述目标音频播放电路对音频数据的格式要求;Obtaining a format requirement of the target audio playing circuit for the audio data;
    按照所述格式要求对所述目标应用的音频数据进行解码处理;Decoding the audio data of the target application according to the format requirement;
    将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。And transcoding the decoded audio data of the target application, and playing the audio data through the target audio playback circuit.
  6. 一种双屏移动终端,包括至少两路音频播放电路,所述终端包括:A dual-screen mobile terminal includes at least two audio playback circuits, and the terminal includes:
    识别模块,设置为识别目标屏幕,所述目标屏幕显示有目标应用的显示数据,且所述目标屏幕为所述终端中的一屏幕;An identification module, configured to identify a target screen, the target screen displaying display data of the target application, and the target screen is one of the terminals;
    查找模块,设置为查找与所述目标屏幕对应的目标音频播放电路,所述目标音频播放电路为所述至少两路音频播放电路中的一路;a search module, configured to search for a target audio playback circuit corresponding to the target screen, where the target audio playback circuit is one of the at least two audio playback circuits;
    播放模块,设置为通过所述目标音频播放电路播放音频数据。a play module configured to play audio data through the target audio playback circuit.
  7. 根据权利要求6所述的终端,其中,所述查找模块,包括:The terminal according to claim 6, wherein the searching module comprises:
    第一采集单元,设置为获取预先定义的屏幕与音频播放电路的对应关系;a first collecting unit configured to acquire a correspondence between a predefined screen and an audio playing circuit;
    查找单元,设置为在所述对应关系中查找与所述目标屏幕对应的目标音频播放电路。And a searching unit configured to search for a target audio playing circuit corresponding to the target screen in the correspondence relationship.
  8. 根据权利要求6或7所述的终端,其中,所述双屏移动终端还包括:The terminal according to claim 6 or 7, wherein the dual-screen mobile terminal further comprises:
    第一判断模块,设置为在所述识别目标屏幕之前,判断所述双屏移动终端的两个屏幕是否分别显示不同的应用的显示数据; The first determining module is configured to determine, before the identifying the target screen, whether the two screens of the dual-screen mobile terminal respectively display display data of different applications;
    第二判断模块,若所述双屏移动终端的两个屏幕分别显示不同的应用的显示数据,则判断所述不同的应用是否均有音频数据输出;a second judging module, if the two screens of the dual-screen mobile terminal respectively display display data of different applications, determine whether the different applications have audio data output;
    所述识别模块设置为若所述不同的应用均有音频数据输出,则识别目标屏幕。The identification module is configured to identify the target screen if the different applications have audio data output.
  9. 根据权利要求6或7所述的终端,其中,所述双屏移动终端还包括:The terminal according to claim 6 or 7, wherein the dual-screen mobile terminal further comprises:
    第三判断模块,设置为在所述通过所述目标音频播放电路播放音频数据之前,判断所述目标应用的音频数据是否是通过所述目标音频播放电路输出;a third determining module, configured to determine, before the playing of the audio data by the target audio playing circuit, whether the audio data of the target application is output through the target audio playing circuit;
    所述播放模块设置为若所述目标应用的音频数据不是通过所述目标音频播放电路输出,则将所述目标应用的音频数据调整至通过所述目标音频播放电路输出。The playing module is configured to adjust the audio data of the target application to be output through the target audio playing circuit if the audio data of the target application is not output through the target audio playing circuit.
  10. 根据权利要求6或7所述的终端,其中,所述播放模块包括:The terminal according to claim 6 or 7, wherein the playing module comprises:
    第二采集单元,设置为获取所述目标音频播放电路对音频数据的格式要求;a second collecting unit, configured to acquire a format requirement of the target audio playing circuit for the audio data;
    数字信号处理单元,设置为按照所述格式要求对所述目标应用的音频数据进行解码处理;a digital signal processing unit configured to perform decoding processing on the audio data of the target application according to the format requirement;
    播放单元,设置为将所述解码后的目标应用的音频数据进行数模转换,并通过所述目标音频播放电路播放所述音频数据。a playing unit, configured to perform digital-to-analog conversion of the decoded audio data of the target application, and play the audio data through the target audio playing circuit.
  11. 一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至5中任一项所述的方法。A storage medium, the storage medium comprising a stored program, wherein the program is executed to perform the method of any one of claims 1 to 5.
  12. 一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至5中任一项所述的方法。 A processor for running a program, wherein the program is executed to perform the method of any one of claims 1 to 5.
PCT/CN2017/089345 2017-01-03 2017-06-21 Method for playing audio data and dual-screen mobile terminal WO2018126613A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710001821.0 2017-01-03
CN201710001821.0A CN108132769A (en) 2017-01-03 2017-01-03 A kind of audio data play method and dual-screen mobile terminal

Publications (1)

Publication Number Publication Date
WO2018126613A1 true WO2018126613A1 (en) 2018-07-12

Family

ID=62388385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089345 WO2018126613A1 (en) 2017-01-03 2017-06-21 Method for playing audio data and dual-screen mobile terminal

Country Status (2)

Country Link
CN (1) CN108132769A (en)
WO (1) WO2018126613A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416016A (en) * 2022-01-14 2022-04-29 Oppo广东移动通信有限公司 Audio playing method and device, mobile terminal and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165004A (en) * 2018-08-16 2019-01-08 努比亚技术有限公司 Double screen terminal audio frequency output method, terminal and computer readable storage medium
CN110933221A (en) * 2018-09-19 2020-03-27 西安中兴新软件有限责任公司 Audio channel management method, device, terminal and storage medium
CN109120975A (en) * 2018-09-29 2019-01-01 努比亚技术有限公司 Video broadcasting method, terminal and computer readable storage medium
CN110989961A (en) * 2019-10-30 2020-04-10 华为终端有限公司 Sound processing method and device
CN111045631A (en) * 2019-11-29 2020-04-21 深圳市宏电技术股份有限公司 Method and device for realizing double-screen different display and different sound and storage medium
CN111405337A (en) * 2020-02-17 2020-07-10 福州瑞芯微电子股份有限公司 Method, device, equipment and medium for realizing double-screen abnormal sound of android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100008523A1 (en) * 2008-07-14 2010-01-14 Sony Ericsson Mobile Communications Ab Handheld Devices Including Selectively Enabled Audio Transducers
US20130063544A1 (en) * 2011-09-09 2013-03-14 Cisco Technology, Inc. System and method for affinity based switching
CN105096981A (en) * 2015-09-25 2015-11-25 福州瑞芯微电子股份有限公司 Multipath sound playing method, multipath sound playing device and multipath sound playing system
CN106131322A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 Dual-screen mobile terminal plays the method and device of sound

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101133629A (en) * 2005-03-02 2008-02-27 日本电气株式会社 Portable terminal
CN106959804B (en) * 2012-03-12 2020-07-24 联想(北京)有限公司 Handheld electronic equipment and method for switching working modes
KR102141044B1 (en) * 2012-12-03 2020-08-04 삼성전자주식회사 Apparatus having a plurality of touch screens and method for sound output thereof
CN105554230A (en) * 2015-07-31 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Voice communication circuit and hand-held terminal
CN105554201A (en) * 2015-07-31 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Audio frequency circuit selection method, apparatus, and circuit, and hand-held terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100008523A1 (en) * 2008-07-14 2010-01-14 Sony Ericsson Mobile Communications Ab Handheld Devices Including Selectively Enabled Audio Transducers
US20130063544A1 (en) * 2011-09-09 2013-03-14 Cisco Technology, Inc. System and method for affinity based switching
CN105096981A (en) * 2015-09-25 2015-11-25 福州瑞芯微电子股份有限公司 Multipath sound playing method, multipath sound playing device and multipath sound playing system
CN106131322A (en) * 2016-06-30 2016-11-16 努比亚技术有限公司 Dual-screen mobile terminal plays the method and device of sound

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416016A (en) * 2022-01-14 2022-04-29 Oppo广东移动通信有限公司 Audio playing method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108132769A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
WO2018126613A1 (en) Method for playing audio data and dual-screen mobile terminal
US10997240B1 (en) Dynamically determining highlights of media content based on user interaction metrics and/or social media metric
US11758232B2 (en) Presentation and management of audio and visual content across devices
US20190304448A1 (en) Audio playback device and voice control method thereof
KR20180115628A (en) Management layer for multiple intelligent personal assistant services
US10834503B2 (en) Recording method, recording play method, apparatuses, and terminals
KR101883301B1 (en) Method for Providing Personalized Voice Recognition Service Using Artificial Intellignent Speaker Recognizing Method, and Service Providing Server Used Therein
JP7348927B2 (en) Audio reproduction method and device, electronic equipment and storage medium
KR20110137784A (en) Platform or user sensitive advertising
US10469787B1 (en) Learning multi-device controller with personalized voice control
WO2022135527A1 (en) Video recording method and electronic device
US11889165B2 (en) Methods, computer server systems and media devices for media streaming
US10755707B2 (en) Selectively blacklisting audio to improve digital assistant behavior
WO2017107491A1 (en) Method and device for playing audio
CN111258530A (en) Audio playing control method, server and audio playing system
WO2018040102A1 (en) Audio processing method and device
WO2020224302A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
US20130117385A1 (en) Personal area network of devices and applications
WO2020233171A1 (en) Song list switching method, apparatus and system, terminal, and storage medium
KR20120110928A (en) Device and method for processing sound source
US20140121794A1 (en) Method, Apparatus, And Computer Program Product For Providing A Personalized Audio File
US20230370672A1 (en) Method for processing sound information, and non-transitory computer storage medium and electronic device
US20230232066A1 (en) Device recommendation method and electronic device
CN107340990B (en) Playing method and device
US20190163820A1 (en) Provision of playlist information related to a played song

Legal Events

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

Ref document number: 17890758

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17890758

Country of ref document: EP

Kind code of ref document: A1