WO2020103076A1 - 音频播放处理方法、装置、终端和计算机可读存储介质 - Google Patents
音频播放处理方法、装置、终端和计算机可读存储介质Info
- Publication number
- WO2020103076A1 WO2020103076A1 PCT/CN2018/116908 CN2018116908W WO2020103076A1 WO 2020103076 A1 WO2020103076 A1 WO 2020103076A1 CN 2018116908 W CN2018116908 W CN 2018116908W WO 2020103076 A1 WO2020103076 A1 WO 2020103076A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio
- audio track
- releasable
- track
- application
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Definitions
- the present application relates to the field of communication technologies, and in particular, to an audio playback processing method, device, terminal, and computer-readable storage medium.
- the terminal There is a corresponding audio system in the terminal for playing audio resources in the terminal.
- the corresponding audio track needs to be configured so that the audio resources can be played.
- any application can automatically configure the audio track when required.
- Embodiments of the present application provide an audio playback processing method, device, terminal, and computer-readable storage medium.
- An audio playback processing method including:
- an audio track is configured for the target audio, and the target audio is played based on the configured audio track.
- An audio playback processing device includes:
- the receiving module is used to obtain the occupied state of the audio track when receiving the configuration instruction of the audio track;
- a release module used to obtain and release a releasable audio track when it is determined that there is no available audio track
- the configuration module is configured to configure the audio track for the target audio when the release of the releasable audio track is completed, and play the target audio based on the configured audio track.
- a terminal includes a memory and a processor.
- a computer program is stored in the memory.
- the processor is caused to perform the following operations:
- an audio track is configured for the target audio, and the target audio is played based on the configured audio track.
- a computer-readable storage medium includes a memory and a processor.
- a computer program is stored in the memory.
- the processor causes the processor to perform the following operations:
- an audio track is configured for the target audio, and the target audio is played based on the configured audio track.
- the audio playback processing method, terminal and computer-readable storage medium of the embodiment of the present application when receiving the audio track configuration instruction, acquire the occupied state of the included audio track, and then determine according to the determined occupied state of the audio track Whether there is a usable audio track, and when there is no usable audio track, obtain a releasable audio track from all the audio tracks to release the releasable audio track, and finally configure the audio track for the target audio, based on the configuration To play the target audio.
- the target audio track is configured by acquiring and releasing the idle and unused audio tracks to play the target audio, ensuring the terminal audio resources Normal playback.
- FIG. 1 is an application environment diagram of an audio playback processing method in an embodiment.
- FIG. 2 is a flowchart of an audio playback processing method in an embodiment.
- FIG. 3 is a flowchart of steps for releasing a releasable audio track in one embodiment.
- FIG. 4 is a flowchart of steps for releasing a releasable audio track in another embodiment.
- FIG. 5 is a structural block diagram of an audio playback processing device in an embodiment.
- FIG. 6 is a schematic structural diagram of a terminal in an embodiment.
- FIG. 7 is a partial block diagram of a mobile phone in an embodiment.
- FIG. 1 is a schematic diagram of an application environment of an audio playback processing method in an embodiment.
- the application environment includes a terminal 100.
- the terminal 100 receives the configuration instruction of the audio track, it acquires the occupied status of the audio track included in the terminal 100 to determine whether there is an available audio track, and then when the terminal 100 When it is determined that there is no usable audio track, obtain a releasable audio track and release the releasable audio track. Finally, when the release of the releasable audio track is completed, configure the audio track for the target audio and play the target audio based on the configured audio track.
- the terminal 100 may be a smart phone, a tablet computer, a personal digital assistant, or the like.
- an audio playback processing method is provided, which is exemplified by the application to the above terminal 100. As shown in FIG. 2, the method includes the following operations:
- Operation 202 when receiving the configuration instruction of the audio track, acquiring the occupied state of the audio track.
- the audio track is the resource information for the terminal to play audio.
- the audio system in the terminal includes several audio tracks for each application to play audio resources.
- the audio track is stored in the audio track
- the audio resource can be in an unused state.
- the audio track is controlled to play the stored audio resource.
- the occupied state is that the audio track is in the occupied state
- the unused state is the idle and unoccupied state.
- the terminal when receiving the configuration instruction of the audio track, the terminal will obtain the occupied status of the audio track included in the terminal. Specifically, there is a corresponding audio system inside the terminal for controlling the terminal's management of audio resources, including releasing audio resources and playing audio resources.
- the audio resource corresponding to the application When configuring the audio track, the audio resource corresponding to the application will be stored in the audio track.
- the application state of the audio track resource in the audio system changes.
- the actual application status of the audio track in the terminal's own audio system is first obtained to determine whether the target audio track can be configured and completed.
- Operation 204 when it is determined that there is no available audio track, acquire and release the releasable audio track.
- the usable audio track refers to an audio track that is not occupied and can be configured.
- the configuration of the target audio track is not directly completed. It is necessary to determine whether the configuration of the target audio track can be completed based on the application state of the audio track of the terminal itself. Therefore, the When the application status of the audio track is, first determine whether there is an available audio track based on the application status of the included audio track. Specifically, for the audio system inside the terminal, the number of configurable audio tracks is limited. When the number of already configured audio tracks is too large, the configuration of audio tracks will not be allowed again.
- the terminal when the terminal configures the audio track, it will make corresponding records and statistics to determine the real-time application status of the audio track included in the terminal.
- the number of configurable audio tracks in the terminal is limited. When the number of already configured audio tracks reaches the upper limit of the number of configurable audio tracks, it means that there are currently no available audio tracks.
- the releasable audio track will be acquired, and then the releasable audio track will be released.
- the corresponding audio track will be directly selected from the available audio tracks to complete the configuration of the target audio track, thereby achieving the playback of the target audio.
- the audio track that has been configured in the audio system in the terminal may be idle and unused. Due to the occupation of the audio track, there will be no available audio track when the audio track needs to be configured.
- the released track is used for the configuration of the target track.
- the audio track configured in the audio system in the terminal contains corresponding audio resources. Only after the corresponding audio resources are released, the configuration of the target audio track can be completed, and then the target audio can be played.
- the audio track is configured for the target audio, and the target audio is played based on the configured audio track.
- the terminal determines the releasable audio track
- the releasable audio corresponding to the releasable audio track is released, and after the release of the releasable audio track is completed, the audio track is configured for the target audio, and based on the configured audio track Play the target audio.
- the occupancy of the included audio track is obtained, and then whether there is an available audio track is determined according to the determined occupancy of the audio track, and if there is no available
- obtain releasable audio tracks from all audio tracks to release the releasable audio resources contained in the releasable audio tracks obtain releasable audio tracks from all audio tracks to release the releasable audio resources contained in the releasable audio tracks.
- configure the target audio Audio track and play the target audio based on the configured audio track.
- the target audio track is configured by acquiring and releasing the idle and unused audio tracks to play the target audio, ensuring the terminal audio resources Normal playback.
- the target application program is an application program that issues an audio track configuration instruction.
- the number of audio tracks in the audio system in the terminal is limited, and the configuration and use of audio tracks cannot be unlimited.
- the number of audio tracks allowed to be configured and used is also limited.
- the target application is one of the three-party applications. When all the audio track resources of the terminal are occupied, the configuration of the audio track cannot be performed; for the three-party application, when the audio tracks used in the three-party application are all occupied, the configuration of the audio track cannot be performed. When there is no usable audio track, some audio tracks will need to be released to obtain usable audio tracks before the configuration of the target audio track can be completed.
- acquiring the occupied status of the audio track included in the terminal includes: acquiring the first number of audio tracks included in the terminal; reading the second number of audio tracks in the application state in the terminal, where the first The quantity is not less than the second quantity; when the first quantity is equal to the second quantity, it is determined that there are no available audio tracks; and, when the first quantity is greater than the second quantity, it is determined that there are available audio tracks.
- the first number refers to the maximum value of the audio tracks configurable by the audio system in the terminal
- the second number refers to the value of the audio track configuration that has been completed in the terminal.
- acquiring the occupied state of the audio track associated with the target application includes: acquiring the third number of audio tracks associated with the target application; reading the application state associated with the target application The fourth number of tracks, of which the third number is not less than the fourth number; when the third number is equal to the fourth number, it is determined that there is no usable track; and, when the third number is greater than the fourth number, it is determined that there is Audio tracks can be used.
- the third number refers to the maximum value of the audio tracks that can be configured and used by the target application
- the fourth number refers to the value of the audio tracks that have been configured in the target application.
- operation 204 when it is determined that there are no available audio track resources, acquire and release Releasable audio tracks, including:
- the configuration time corresponding to the first audio track is obtained, and the first audio track is the audio track corresponding to the fourth quantity.
- the first number is equal to the second number, it is determined that there is no usable audio track.
- the terminal when the first number is equal to the second number, it means that the audio tracks in the audio system in the terminal are all occupied, that is, there are no available audio tracks. At this time, the audio tracks included in the target application are also All are in the occupied state, and the terminal needs to perform the corresponding release to complete the configuration of the target audio track.
- the configuration time corresponding to the first audio track is obtained, where the first audio track is the audio track corresponding to the fourth number, that is, the audio track in the target application in a state, and
- the number of audios contained in the first audio track may be one or more.
- the fourth quantity is not zero, it means that there are audio tracks in the application state among the audio tracks associated with the target application, that is, when obtaining the configuration times corresponding to the audio sounds associated with the target application, respectively It is the configuration time corresponding to the track in the application state associated with the target application.
- the configuration time corresponding to the configuration of each audio track that is, when saving the configuration information of the audio track, in addition to recording the object of the configuration audio track, the configuration time of the audio track is also recorded. Therefore, when it is determined that there is no available audio track in the terminal, the configuration time corresponding to the audio track associated with the target application can be obtained.
- Operation 304 based on the configuration moment, obtain a releasable audio track in the first audio track.
- the corresponding releasable audio track is obtained in the first audio track according to the configuration time.
- obtaining the releasable audio track in the first audio track includes:
- Operation a obtain the target time corresponding to the configuration instruction.
- the target time is compared with the configuration time, and the audio track corresponding to the configuration time farthest from the target time in the configuration time is obtained as a releasable audio track.
- the audio track corresponding to the furthest configuration time is the releasable audio track.
- the number of audio tracks that the target application has configured is 4, where the configuration time of the first audio track (numbered 01) is 16:30:20 on August 8, 2008, and the second audio track (numbered The configuration time for 02) is 16:33:25 on August 8, 2008, the configuration time for the third track (number 03) is 16:40:20 on August 8, 2008, and the fourth The configuration time of the audio track (No. 04) is 16:45:35 on August 8, 2008.
- the first time corresponding to the configuration instruction is 16:48:05 on August 8, 2008
- the audio track corresponding to the configuration time farthest from the first time corresponding to the configuration instruction is the first The audio track, which is the first audio track, will be treated as a releasable audio track.
- the configuration time corresponding to the first audio track is obtained, the configuration time is also sorted in order of time, to obtain priority information corresponding to each audio track in the first audio track, which is associated with the target application. After arranging the configuration times of the audio tracks of the first track to obtain the priority of each track in the first track, select the track corresponding to the configuration time with the highest priority as the releasable track.
- the state of the audio track associated with the target application is not necessarily in the application state, where the application state is the occupied state, and the configuration time of the audio track in the application state is sorted. After obtaining the configuration time corresponding to the above four audio tracks, when sorting them in the order of time, the corresponding order is 01 ⁇ 02 ⁇ 03 ⁇ 04, that is, the first audio track is the first configured audio track, At this time, the track with the highest priority is the track number 01, and the track with the lowest priority is the track number 04.
- the release of the audio track needs to be performed. Then, it is necessary to select a releasable audio track among the already configured audio tracks for release.
- the releasable audio track that is released is in an idle state, that is, although the configuration of the audio track has been completed, the corresponding audio resource is not played. At the same time, for the audio track that has been configured, after the corresponding audio resource is played, the audio track will be released, and then from the occupied state to the usable state.
- the releasable audio track is released.
- the releasable audio track After determining the releasable audio track that can be released, the releasable audio track will be released, specifically, the audio resources corresponding to the releasable audio track will be released to achieve the release of the releasable audio track.
- the audio track with a longer configuration time is released in order of the configuration time, so that The configuration of the target audio track can be completed.
- the fourth quantity when the first quantity is equal to the second quantity, and the fourth quantity is not zero, first obtain the audio track that is associated with the target application and is in the application state, by obtaining the corresponding Configure the time, and then release the audio track with a relatively long time. It realizes that when the terminal fails to configure the audio track, by releasing the audio track configured by the target application itself and in an idle and unused state, a usable audio track is obtained, and then the configuration of the target audio track is completed. It realizes the automatic release of audio tracks that have been configured but not used in the target application, so that the terminal can play audio resources normally.
- operation 206 when it is determined that there are no available audio track resources, acquiring and releasing the releasable includes :
- the application to which the second audio track belongs is determined, and the second audio track is the audio track corresponding to the second number.
- the target application is not configured with any audio track.
- the application to which each audio track in the second audio track belongs will be determined, where the second audio track is the audio track corresponding to the second number, that is, the audio track included in the terminal and in the application state.
- different applications can record the identification information of the application that configures the audio track when configuring the audio track, that is, the object that configures the audio track, that is, the corresponding application. Therefore, when it is determined that the target application does not have an already configured audio track, the application to which all audio tracks belong is determined according to the identification information of the application corresponding to each audio track.
- the identification information of the application is the only mark of the application, which can be text or digital number.
- the number of audio tracks corresponding to the application program is determined.
- the second audio track is classified by the application identifier corresponding to each audio track in the second audio track to determine the number of audio tracks corresponding to each application program. Specifically, the audio tracks are classified according to the application identifiers corresponding to the respective audio tracks, and the number of audio tracks included in different application programs is determined.
- the application with the largest number of audio tracks associated with the application is regarded as a releasable application.
- the number of audio tracks corresponding to different applications can be obtained, and then the application with the largest number of audio tracks in each application can be obtained and used as a band release application program. Specifically, the number of audio tracks included in each application is sorted to obtain the sorting result obtained by each application based on the number of audio tracks, and then the application with the largest number of included audio tracks is used as a releasable application to perform audio tracks Of release.
- Operation 408 releasing the track associated with the releaseable application.
- the audio track associated with the releasable application is obtained, and then the associated audio track is released, specifically, the corresponding audio resource in the audio track associated with the application is released to obtain usable Audio track.
- the audio track included in the releasable application program can also be performed Partial release. Specifically, when a releasable application is obtained, the audio track included in the releasable application is obtained, and then the released audio track is determined according to the configuration time of the included audio track to obtain a usable audio track.
- the target application when the first quantity is equal to the second quantity and the fourth quantity is zero, it means that the target application does not have a configured audio track. At this time, it will determine and determine which of the configured audio tracks belong respectively. Applications, and count the number, and then use the application with the largest number of configured audio tracks as a releasable application, and then release the audio tracks contained in the releasable application to obtain usable audio tracks, which has achieved automatic release. Configured but unused audio tracks, so that the terminal can play audio resources normally.
- the third quantity is equal to the fourth quantity, and the fourth quantity is not zero, it means that the audio tracks included in the target application are all in the occupied state, that is, in the application state, and will not be It is necessary to determine whether all the audio tracks included in the terminal are in the application state, and directly select and determine the releasable audio track from the audio tracks included in the target application to complete the release of the audio track.
- the operation of acquiring and releasing the releasable audio track includes: acquiring configuration times corresponding to the first audio track respectively, where the first audio track is the target application The collection of audio tracks in the application state in the program; obtaining the target time corresponding to the configuration instruction and comparing the target time with the configuration time; and, based on the obtained comparison result, separating the configuration time from the target time The corresponding audio track at the moment of configuration is the releasable audio track, and the audio contained in the releasable audio track is released.
- FIG. 5 is a structural block diagram of an audio playback processing device in an embodiment. As shown in FIG. 5, the device includes: a receiving module 502, a releasing module 504, and a configuration module 506, where:
- the receiving module 502 is configured to obtain the occupied state of the audio track when receiving the configuration instruction of the audio track.
- the release module 504 is configured to acquire and release the releasable audio track when it is determined that there is no available audio track.
- the configuration module 506 is configured to complete the configuration of the target audio track and play the target audio configured by the target audio track when the release of the audio contained in the releasable audio track is completed.
- a provided receiving module includes a first acquiring module and a second acquiring module.
- the first obtaining module is used to obtain the occupied state of the audio track included in the terminal, and the second obtaining module is used to obtain the occupied state of the audio track associated with the target application.
- a first acquisition module includes a first data acquisition module, a second data acquisition module, and a first determination module.
- the first data acquisition module is used to acquire the first number of audio tracks contained in the terminal
- the second data acquisition module is used to read the second number of audio tracks in the application state of the terminal, wherein the first number is not less than The second quantity
- the first determining module is used to determine the occupied status of the audio track included in the terminal based on the first quantity and the second quantity, wherein when the first quantity is equal to the second quantity, it is determined that there is no usable Audio track.
- a second acquisition module provided includes a third data acquisition module, a fourth data acquisition module, and a second determination module.
- the third data acquisition module is used to acquire the third number of audio tracks associated with the target application
- the fourth data acquisition module is used to read the fourth number of audio tracks in the application state.
- the second determination module is used to determine the occupied status of the audio track associated with the target application based on the third quantity and the fourth quantity, where when the third quantity is equal to the fourth quantity, it is determined not to Available audio tracks.
- a release module provided further includes a time acquisition module, a judgment selection module, and an audio release module.
- the first moment acquisition module is used to acquire the configuration time corresponding to the first audio track
- the first audio track is the audio track corresponding to the fourth number
- the judgment selection module is used to acquire the available sound in the first audio track based on the configuration time
- the audio release module is used to release the releasable audio track.
- the provided judgment selection module further includes a second moment acquisition module and a selection module.
- the second moment obtaining module is used to obtain the target time corresponding to the configuration instruction
- the selection module is used to compare the target time with the configuration time to obtain the audio track corresponding to the configuration time farthest from the target time in the configuration time as The audio track can be released.
- a provided judgment selection module further includes a category determination module, a quantity determination module, a program selection module, and a program release module.
- the category determination module is used to determine the application programs to which the second audio track belongs, the second audio track is the audio track corresponding to the second number, the quantity determination module is used to determine the number of audio tracks corresponding to the respective application programs, and the program selection module It is used to take the application with the largest number of audio tracks in each application as a releasable application, and the program release module is used to release the audio track associated with the releasable application.
- a release module provided is also used to obtain the configuration time corresponding to the first audio track; and, obtain the target time corresponding to the configuration instruction and compare the target time with the configuration time; and, based on The obtained comparison result selects the audio track corresponding to the configuration time farthest from the target time as the releasable audio track, and releases the releasable audio track.
- Each module in the audio playback processing device may be implemented in whole or in part by software, hardware, and a combination thereof.
- the above modules may be embedded in the hardware form or independent of the processor in the terminal or server, or may be stored in the memory in the terminal or server in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
- FIG. 6 a schematic diagram of an internal structure of a terminal is provided.
- the terminal includes a processor, memory, display, and network interface connected by a system bus.
- the processor is used to provide computing and control capabilities to support the operation of the entire terminal.
- the memory is used to store data, programs, and / or instruction codes.
- the memory stores at least one computer program that can be executed by the processor to implement the audio playback processing method applicable to the terminal provided in the embodiments of the present application.
- the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access memory (Random-Access-Memory, RAM).
- the memory includes a non-volatile storage medium and internal memory.
- the non-volatile storage medium stores an operating system and computer programs.
- the computer program may be executed by the processor to implement an audio playback processing method provided by various embodiments of the present application.
- the internal memory provides a cached operating environment for the operating system and computer programs in the non-volatile storage medium.
- the display can be used to display information, for example, to display various interfaces.
- the network interface may be an Ethernet card or a wireless network card, which is used to communicate with external terminals, for example, it may be used to communicate with a server.
- FIG. 6 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the terminal or server to which the solution of the present application is applied.
- the specific terminal or The server may include more or less components than shown in the figure, or combine certain components, or have a different arrangement of components.
- An embodiment of the present application also provides a terminal. As shown in FIG. 7, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. Take the terminal as a mobile phone as an example:
- the mobile phone includes: a radio frequency (Radio Frequency) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780 , And power supply 790 and other components.
- a radio frequency (Radio Frequency) circuit 710 for a radio frequency (Radio Frequency) circuit 710
- a memory 720 includes: a radio frequency (Radio Frequency) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780 , And power supply 790 and other components.
- WiFi wireless fidelity
- FIG. 7 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
- the RF circuit 710 can be used for receiving and sending signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 780; it can also send the uplink data to the base station.
- RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
- the RF circuit 710 can also communicate with the network and other devices through wireless communication.
- the above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), etc.
- GSM Global System of Mobile
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- SMS Short Message Service
- the memory 720 may be used to store software programs and modules, and may also be used to store application installation packages.
- the processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720.
- the memory 720 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and applications required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc .;
- the data storage area can store data (such as audio data, address book, etc.) configured according to the use of the mobile phone.
- the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the input unit 730 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 700.
- the input unit 1130 may include a touch panel 731 and other input devices 732.
- the touch panel 731 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel 731 Operation), and drive the corresponding connection device according to the preset program.
- the touch panel 731 may include a touch detection device and a touch controller.
- the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 780, and can receive the command sent by the processor 780 and execute it.
- the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 730 may also include other input devices 732.
- other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
- the display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
- the display unit 740 may display according to the resolution.
- the display unit 740 may include a display panel 741.
- the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
- LCD liquid crystal display
- OLED Organic Light-Emitting Diode
- the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event, and then the processor 780 according to The type of touch event provides a corresponding visual output on the display panel 741.
- the touch panel 731 and the display panel 741 are implemented as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated and Realize the input and output functions of the mobile phone.
- the mobile phone 700 may further include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may close the display panel 741 and / or when the mobile phone moves to the ear Or backlight.
- the motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition-related functions (such as Pedometer, percussion), etc.
- the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
- the audio circuit 760, the speaker 761, and the microphone 762 may provide an audio interface between the user and the mobile phone.
- the audio circuit 760 can transmit the received electrical signal converted to electrical signals to the speaker 761, which is converted into a sound signal output by the speaker 761; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 760 After receiving, it is converted into audio data, and then processed by the audio data output processor 780, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for subsequent processing.
- WiFi is a short-range wireless transmission technology.
- the mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 770. It provides users with wireless broadband Internet access.
- FIG. 7 shows the WiFi module 770, it can be understood that it is not a necessary component of the mobile phone 700, and may be omitted as needed.
- the processor 780 is the control center of the mobile phone, connects various parts of the entire mobile phone with various interfaces and lines, executes or executes the software programs and / or modules stored in the memory 720, and calls the data stored in the memory 720 to execute Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole.
- the processor 780 may also update the application according to the application installation package.
- the processor 780 may include one or more processing units.
- the processor 780 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 780.
- the mobile phone 700 further includes a power supply 790 (such as a battery) for powering various components.
- a power supply 790 (such as a battery) for powering various components.
- the power supply can be logically connected to the processor 780 through a power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
- the mobile phone 700 may further include a camera, a Bluetooth module, and the like.
- the processor 780 executes the steps of the audio playback processing method by running software programs and modules stored on the memory 720.
- the embodiments of the present application also provide a computer-readable storage medium.
- One or more non-volatile computer-readable storage media containing computer-executable instructions, which when executed by one or more processors, cause the processors to perform the steps of the audio playback processing method.
- a computer program product containing instructions that, when run on a computer, causes the computer to perform an audio playback processing method.
- Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM), which acts as external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR) SDRAM, enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDR double data rate SDRAM
- ESDRAM enhanced SDRAM
- SLDRAM synchronous Link (Synchlink) DRAM
- Rambus direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
Description
Claims (11)
- 一种音频播放处理方法,所述方法包括:当接收音轨的配置指令时,获取音轨的被占用情况;当确定不存在可使用音轨时,获取并释放可释放音轨;及当所述可释放音轨释放完成时,对目标音频配置音轨,并基于所配置的音轨播放所述目标音频。
- 根据权利要求1所述的方法,其特征在于,所述获取音轨的被占用情况,包括:获取终端所包含的音轨的被占用情况;及获取与目标应用程序相关联的音轨的被占用情况。
- 根据权利要求2所述的方法,其特征在于,所述获取终端所包含的音轨的被占用情况,包括:获取终端所包含音轨的第一数量;读取所述终端中处于应用状态下的音轨的第二数量,其中,所述第一数量不小于所述第二数量;当所述第一数量等于所述第二数量时,确定不存在可使用音轨;及当所述第一数量大于所述第二数量是,确定存在可使用音轨。
- 根据权利要求2所述的方法,其特征在于,所述获取与目标应用程序相关联的音轨的被占用情况,包括:获取与目标应用程序相关联的音轨的第三数量;读取与目标应用程序相关联的处于应用状态下的音轨的第四数量,其中所述第三数量不小于所述第四数量;当所述第三数量等于所述第四数量时,确定不存在可使用音轨;及当所述第三数量大于所述第四数量时,确定存在可使用音轨。
- 根据权利要求4所述的方法,其特征在于,当所述第一数量等于所述第二数量,且所述第四数量不为零时;所述当确定不存在可使用音轨资源时,获取并释放可释放音轨,包括:获取第一音轨对应的配置时刻,所述第一音轨为所述第四数量所对应的音轨;基于所述配置时刻,在所述第一音轨中获取可释放音轨;及释放所述可释放音轨。
- 根据权利要求5所述的方法,其特征在于,所述基于所述配置时刻,在所述第一音轨中获取可释放音轨,包括:获取所述配置指令所对应的目标时刻;及将所述目标时刻与配置时刻进行对比,获取所述配置时刻中与所述目标时刻相隔最远的配置时刻所对应的音轨作为可释放音轨。
- 根据权利要求4所述的方法,其特征在于,当所述第一数量等于所述第二数量,且所述第四数量为零时;所述当确定不存在可使用音轨资源时,获取并释放可释放音轨,还包括:确定第二音轨所属的应用程序,所述第二音轨为第二数量对应的音轨;确定所述应用程序对应的音轨的数量;将所述应用程序所关联的音轨数量最多的应用程序作为可释放应用程序;及释放所述可释放应用程序所关联的音轨。
- 根据权利要求4所述的方法,其特征在于,当所述第三数量等于所述第四数量,且所述第四数量不为零时;所述当确定不存在可使用音轨资源时,获取并释放可释放音轨,包括:获取所述第一音轨对应的配置时刻;获取所述配置指令所对应的目标时刻,并将所述目标时刻与配置时刻进行对比;及基于所得到的对比结果,将所述配置时刻中与所述目标时刻相隔最远的配置时刻所对应的音轨作为可释放音轨,并释放所述可释放音轨。
- 一种音频播放处理装置,其特征在于,所述装置包括:接收模块,用于当接收音轨的配置指令时,获取音轨的被占用情况;释放模块,用于当确定不存在可使用音轨时,获取并释放可释放音轨;及配置模块,用于当所述可释放音轨频释放完成时,完成目标音轨的配置,并播放所述目标音轨所配置的目标音频。
- 一种终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时实现权利要求1至8中任一项所述的音频播放处理方法的步骤。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的音频播放处理方法的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/116908 WO2020103076A1 (zh) | 2018-11-22 | 2018-11-22 | 音频播放处理方法、装置、终端和计算机可读存储介质 |
CN201880098466.6A CN112997155B (zh) | 2018-11-22 | 2018-11-22 | 音频播放处理方法、装置、终端和计算机可读存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/116908 WO2020103076A1 (zh) | 2018-11-22 | 2018-11-22 | 音频播放处理方法、装置、终端和计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020103076A1 true WO2020103076A1 (zh) | 2020-05-28 |
Family
ID=70773780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/116908 WO2020103076A1 (zh) | 2018-11-22 | 2018-11-22 | 音频播放处理方法、装置、终端和计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112997155B (zh) |
WO (1) | WO2020103076A1 (zh) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101944048A (zh) * | 2010-09-26 | 2011-01-12 | 中兴通讯股份有限公司 | 一种终端在音频资源冲突时的管理方法及该终端 |
CN103294553A (zh) * | 2012-02-24 | 2013-09-11 | 中兴通讯股份有限公司 | 移动终端多媒体资源的管理方法及装置 |
CN105550037A (zh) * | 2015-12-11 | 2016-05-04 | 北京元心科技有限公司 | 多系统中分配音频资源的方法及装置 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101631120A (zh) * | 2009-08-20 | 2010-01-20 | 中兴通讯股份有限公司 | 应用服务器和媒体资源分配方法 |
CN102135913A (zh) * | 2011-03-18 | 2011-07-27 | 宇龙计算机通信科技(深圳)有限公司 | 应用的响应方法和装置 |
CN106126174B (zh) * | 2016-06-16 | 2019-02-22 | Oppo广东移动通信有限公司 | 一种场景音效的控制方法、及电子设备 |
CN107665143B (zh) * | 2016-07-27 | 2020-10-16 | 华为技术有限公司 | 资源管理方法、装置及系统 |
-
2018
- 2018-11-22 WO PCT/CN2018/116908 patent/WO2020103076A1/zh active Application Filing
- 2018-11-22 CN CN201880098466.6A patent/CN112997155B/zh active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101944048A (zh) * | 2010-09-26 | 2011-01-12 | 中兴通讯股份有限公司 | 一种终端在音频资源冲突时的管理方法及该终端 |
CN103294553A (zh) * | 2012-02-24 | 2013-09-11 | 中兴通讯股份有限公司 | 移动终端多媒体资源的管理方法及装置 |
CN105550037A (zh) * | 2015-12-11 | 2016-05-04 | 北京元心科技有限公司 | 多系统中分配音频资源的方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN112997155B (zh) | 2023-10-13 |
CN112997155A (zh) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831161B2 (en) | Method and device for sending communication message | |
CN107368518B (zh) | 一种通知消息的管理方法及终端、计算机可读存储介质 | |
WO2018049887A1 (zh) | 数据传输处理方法及终端设备 | |
WO2019128540A1 (zh) | 资源管理方法、移动终端及计算机可读存储介质 | |
TWI520043B (zh) | 消息查看方法、裝置和移動終端 | |
US10657347B2 (en) | Method for capturing fingerprint and associated products | |
WO2018014745A1 (zh) | 漫游结束后的网络搜索方法及设备 | |
WO2018219119A1 (zh) | 应用功能的控制方法及相关产品 | |
WO2015027856A1 (zh) | 信息反馈方法、装置及终端 | |
CN113039516B (zh) | 一种对应用程序进行处理的方法、装置和电子设备 | |
CN106341713B (zh) | 一种多媒体同步播放方法、装置、系统及终端 | |
CN103634717A (zh) | 一种利用耳机控制的方法、装置及终端设备 | |
US20150043312A1 (en) | Sound playing method and device thereof | |
WO2017215661A1 (zh) | 一种场景音效的控制方法、及电子设备 | |
CN112997471B (zh) | 音频通路切换方法和装置、可读存储介质、电子设备 | |
CN107623612B (zh) | 流量展示方法和装置、计算机设备、计算机可读存储介质 | |
CN103533139B (zh) | 多卡用户的数据管理方法、装置及移动终端 | |
WO2015078349A1 (zh) | 麦克风收音状态的切换方法和装置 | |
CN104424203A (zh) | 移动设备中的照片分享状态查看方法及系统 | |
CN109511139B (zh) | Wifi控制方法、装置、移动设备、计算机可读存储介质 | |
CN112997507B (zh) | 音频系统控制方法、装置、终端和计算机可读存储介质 | |
WO2019084783A1 (zh) | 服务调度方法和装置、计算机设备、计算机可读存储介质 | |
WO2020103076A1 (zh) | 音频播放处理方法、装置、终端和计算机可读存储介质 | |
US20210286588A1 (en) | Method and apparatus for playing alarm and electronic device | |
WO2018049896A1 (zh) | 数据传输方法及设备 |
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: 18940898 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: 18940898 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 29/09/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18940898 Country of ref document: EP Kind code of ref document: A1 |