A recovery method and device for abnormal crash of in-vehicle audio source management program

By detecting whether the audio source actively releases the audio focus, obtaining the recorded data of the use and recovering the recoverable audio source, the problem of the sound source losing the priority queue after the car audio source management program crashes, and improving the user experience.

CN114764378BActive Publication Date: 2025-07-22GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110030708.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-11
Publication Date
2025-07-22
Estimated Expiration
2041-01-11

AI Technical Summary

Technical Problem

When the existing car audio source management program crashes, the currently active audio source will lose the audio source in its priority queue after releasing the source focus. It needs to be reset when recovering, resulting in a bad user experience.

Method used

Provides a recovery method for abnormal crash of the car audio source management program. By detecting whether the audio source actively releases the audio focus, obtains usage record data, identifying the paused or delayed audio source identification ID, and judging its recoverability, restores the recoverable audio source to the audio focus, adjusts the audio environment, and returns the recovery success signal.

Benefits of technology

After the sound source management program crashes, the recoverable sound source is automatically restored according to the use record and arbitration rules of the sound source application, solving the problem of the sound source losing the priority queue and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114764378B_ABST
    Figure CN114764378B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for recovering from an abnormal crash of an in-vehicle sound source management program, including: Step S1, detecting whether an active sound source actively releases the audio focus. If the audio focus is actively released, obtain the first identification ID of the sound source that releases the audio focus; Step S2, detecting whether the audio focus is in an active state. If it is in an active state, obtain the usage record data of the currently playing sound source; Step S3, identifying the usage record data and obtaining the second identification ID of the sound source whose current state is paused or delayed; Step S4, determining whether the sound source with the second identification ID is a recoverable sound source. If it is determined to be a recoverable sound source, send the second identification ID to the audio focus; Step S5, restoring the recoverable sound source to the audio focus and adjusting the audio environment in which the sound source plays; returning a signal indicating successful recovery of the audio focus. The present invention can recover the sound sources that can be recovered according to the usage records of the sound source applications and in combination with the audio arbitration rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of in-vehicle sound source system management, and particularly to a method and device for recovering from an abnormal crash of an in-vehicle sound source management program. Background Art

[0002] With the development of multimedia and vehicle networking, the functions of in-vehicle head units are becoming more and more diverse, and sound, as a medium, is becoming increasingly important. Traditional in-vehicle head unit systems use different functional modules to distinguish sounds. For example, navigation modules, Bluetooth modules, FM modules, etc. are used to process different sound sources with dedicated hardware. However, with the improvement of hardware integration, existing intelligent in-vehicle head unit systems integrate hardware modules into the main control chip, and the sounds of each functional module are also output through the main control. Due to the limited sound processing mode of the hardware, which is completely executed according to the design before leaving the factory, the processing effects of many after-installed software and multiple sounds from the same source are not satisfactory.

[0003] The existing processing method is to realize the random switching of various sound sources through physical buttons such as steering wheel buttons, center control panel buttons or touch screen interfaces based on the sound source management program. When other multimedia application programs are installed on the system, the normal functions of sound source switching and playing can also be ensured. However, sometimes the sound source management program may crash due to system failures. After the currently active sound source releases the sound source focus, the sound source program will lose the sound sources in its priority queue and needs to be reset again when restarted, resulting in a poor user experience.

[0004] The existing application scenario is the multimedia human-machine interaction system on in-vehicle entertainment devices. Specific applications include a series of functions such as infotainment, navigation systems, in-vehicle telephones, and assisted driving. As the multimedia entertainment function of in-vehicle devices, it is necessary to realize the random switching of various sound sources through various methods such as steering wheel buttons, center control panel buttons, and touch screen interfaces. And when other multimedia application programs are installed on the system, the normal functions of sound source switching and playing can also be ensured. Now the arbitration requirements scenario of in-vehicle head units is relatively special, and the original arbitration mechanism cannot meet the requirements. How to implement a set of custom sound source management system that includes relevant logics such as audio arbitration, channel switching, and sound control. Simply put, it is how to handle the congestion problem of the sound source playback channels of different sound source generation modules in the in-vehicle multimedia human-machine interaction system. Summary of the Invention

[0005] The purpose of the present invention is to propose a method and device for recovering from an abnormal crash of an in-vehicle sound source management program, so as to solve the technical problem that when the sound source management crashes due to a fault, after the currently active sound source releases the sound source focus, it will lose the sound sources in its priority queue and needs to be reset again during recovery.

[0006] On the one hand, a method for recovering from an abnormal crash of an in-vehicle sound source management program is provided, including the following steps:

[0007] Step S1, in response to an abnormal crash of the in-vehicle sound source management program, detect whether the active sound source actively releases the audio focus. If the active sound source actively releases the audio focus, output a sound source recovery instruction; wherein, the active sound source is a sound source whose proportion of startup frequency in the sound source playback channel is greater than a preset determination threshold; the audio focus is a switch actuator for managing the playback priorities of multiple sound sources in the sound source playback channel;

[0008] Step S2, in response to the received sound source recovery instruction, detect whether the audio focus is in an active state; if the audio focus is in an active state, obtain the usage record data of the sound source currently occupying the sound source playback channel;

[0009] Step S3, identify the usage record data to obtain the identification ID of the sound source whose current state is paused or delayed as the second identification ID;

[0010] Step S4, determine whether the sound source with the second identification ID is a recoverable sound source; if it is determined to be a recoverable sound source, send the second identification ID to the audio focus; and obtain the acquired status signal returned by the audio focus;

[0011] Step S5, restore the recoverable sound source to the audio focus, and adjust the audio environment of the sound source with the second identification ID for playback; and return a recovery success signal of the audio focus.

[0012] Preferably, it further includes: when restoring the recoverable sound source to the audio focus, release the sound source currently occupying the audio focus, and output a release success signal to the sound source occupying the audio focus.

[0013] Preferably, it further includes: Step S6 includes: discarding the sound source information of the sound source occupying the audio focus stored in the audio focus, and updating it to the sound source information of the recoverable sound source.

[0014] Preferably, when determining whether the sound source with the second identification ID is a recoverable sound source in Step S4, it specifically includes: checking the sound source in the paused state and determining whether there is any other sound source blocking it. If there is no other sound source blocking it, determine that the sound source in the paused state is a recoverable sound source.

[0015] Preferably, when determining whether the sound source with the second identification ID is a recoverable sound source in Step S4, it specifically includes: checking the sound source in the delayed state and determining whether there is any other sound source blocking it. If there is no other sound source blocking it, determine that the sound source in the delayed state is a recoverable sound source.

[0016] Preferably, step S4 further includes: checking whether the mixing queue of the recoverable sound source is empty; if the mixing queue is not empty, setting the recoverable sound source to be in an attenuated state when it is recovered; if the mixing queue is empty, setting the recoverable sound source to be in a normal volume state when it is recovered.

[0017] Preferably, step S1 further includes: if the active sound source cannot be managed by the audio focus, determining that the active sound source does not actively release the audio focus, determining that the release of the sound source is invalid, and marking it as not to be recovered.

[0018] On the other hand, a recovery device for abnormal crash of an in-vehicle sound source management program is also provided to implement the recovery method for abnormal crash of the in-vehicle sound source management program, including: a detection module, an identification module, and a recovery module that are interconnected;

[0019] The detection module is used to respond to the abnormal crash of the in-vehicle sound source management program, detect whether the active sound source actively releases the audio focus. If the active sound source actively releases the audio focus, an instruction for sound source recovery is output. Among them, the active sound source is a sound source whose proportion of the startup frequency in the sound source playback channel is greater than a preset determination threshold. The audio focus is a switch actuator for managing the playback priorities of multiple sound sources in the sound source playback channel, and it also detects whether the audio focus is in an active state. If the audio focus is in an active state, the usage record data of the sound source currently occupying the sound source playback channel is obtained;

[0020] The identification module is used to identify the usage record data in response to the received sound source recovery instruction, obtain the identification ID of the sound source whose current state is paused or delayed as the second identification ID, determine whether the sound source with the second identification ID is a recoverable sound source. If it is determined to be a recoverable sound source, the second identification ID is output to the audio focus, and the obtained status signal returned by the audio focus is sent to the sound source with the second identification ID;

[0021] The recovery module is used to restore the recoverable sound source to the audio focus and adjust the audio environment in which the sound source with the second identification ID plays, and receive the recovery success signal generated by the audio focus. Among them, the audio environment includes path parameters, volume parameters, and sound effect parameters;

[0022] Among them, the detection module is also used to detect that the active sound source cannot be managed by the audio focus, determine that the active sound source does not actively release the audio focus, determine that the release of the sound source is invalid, and mark it as not to be recovered.

[0023] Preferably, the recovery module is further configured to release the sound source that currently occupies the audio focus, and output a release success signal to the sound source that occupies the audio focus; and discard the sound source information of the occupied sound source stored in the audio focus, and update it to the sound source information of the sound source with the second identification ID.

[0024] Preferably, when the recognition module determines whether the sound source with the second identification ID is a recoverable sound source, it judges whether there is any other sound source blocking it. If there is no other sound source blocking it, it determines that the sound source in the paused state is a recoverable sound source;

[0025] Moreover, it checks whether the mixing queue of the recoverable sound source is empty; if the mixing queue is not empty, it sets the recoverable sound source to be in an attenuated state when it resumes; if the mixing queue is empty, it sets the recoverable sound source to be in a normal volume state when it resumes; wherein, determining whether the sound source with the second identification ID is a recoverable sound source specifically includes: checking the sound source in the paused state or the delayed state, and judging whether there is any other sound source blocking it. If there is no other sound source blocking it, it determines that the sound source in the delayed state is a recoverable sound source.

[0026] In summary, implementing the embodiments of the present invention has the following beneficial effects:

[0027] The method and device for recovering the abnormal crash of the in-vehicle sound source management program provided by the present invention check the validity and activity of the released sound source and the cache of the sound source usage record in the system; find the paused or delayed sound source; realize that after the currently active sound source releases the audio focus, according to the usage record of the sound source application and in combination with the audio arbitration rule, find and recover the sound source that can be recovered. It solves the problem that when the sound source management program crashes due to a system failure, after the currently active sound source releases the sound source focus, the sound source program will lose the sound source in its priority queue and needs to be re-set during recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, obtaining other drawings based on these drawings still belongs to the scope of the present invention.

[0029] Figure 1 It is a schematic main flow diagram of a method for recovering the abnormal crash of an in-vehicle sound source management program in an embodiment of the present invention.

[0030] Figure 2 It is a schematic structural diagram of a device for recovering the abnormal crash of an in-vehicle sound source management program in an embodiment of the present invention. Detailed implementation mode

[0031] To make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.

[0032] As Figure 1 shown, it is a schematic diagram of an embodiment of a method for recovering from an abnormal crash of an in-vehicle sound source management program provided by the present invention. In this embodiment, the method includes the following steps:

[0033] Step S1, in response to an abnormal crash of the in-vehicle sound source management program, detect whether the active sound source actively releases the audio focus. If the active sound source actively releases the audio focus (judge whether the active sound source can be managed by the audio focus; if the active sound source can be managed by the audio focus, it is determined that the active sound source actively releases the audio focus; in the specific judgment process, while judging whether the active sound source can be managed by the audio focus, the first identification ID of the active sound source is also identified, and the active sound source is distinguished from other sound sources through the first identification ID), an instruction for sound source recovery is output; wherein, the active sound source is a sound source with a proportion of the startup frequency in the sound source playback channel greater than a preset determination threshold; the audio focus is a switch actuator for managing the playback priorities of multiple sound sources in the sound source playback channel; it can be understood that the triggering conditions for recovery startup are: the abnormal crash of the sound source management program; the active sound source actively releases the audio focus; the two triggering conditions need to be satisfied simultaneously and successively. Only when the sound source management program crashes and the active sound source actively releases the audio focus, can the recoverable sound sources be searched for and recovered. The abnormal crash of the sound source management program does not mean that the sound source playback terminal cannot play the sound source. The sound source playback terminal can still play the current active sound source, but the sound source management program can no longer dynamically manage the audio focus. It is equivalent to that the current active sound source has occupied the audio focus, and the audio focus cannot set the priority queue for other sound sources to be played. When described with a specific example, it can be as follows: when playing music on an in-vehicle music player, the music sound source obtains the audio focus. After being active for a period of time, the sound source management program suddenly crashes. At this time, the music sound source has always occupied the audio focus. No matter how it is set, other sound sources cannot obtain the audio focus (but the set sound sources will still have requests for queuing the audio focus priorities). For example, if you now need to make an in-vehicle call or the in-vehicle navigation wants to perform voice road condition announcements, but the music sound source always occupies the audio focus, the sound source playback terminal cannot switch to the sound source channels of the in-vehicle call or the in-vehicle navigation, but is playing music. Therefore, the two triggering conditions must be satisfied simultaneously and have a sequential order.

[0034] In a specific embodiment, when an abnormal crash of the in-vehicle sound source management program occurs, first, it is detected whether the trigger condition for recovery startup is met, that is, the validity of the released sound source is checked; when the trigger condition is met, the released sound source is valid; otherwise, it is invalid. If it is detected that the active sound source does not actively release the audio focus, it is determined that the released sound source is invalid and marked as not for recovery; the unique identifier ID of the sound source that simultaneously releases the audio focus is obtained. Specifically, an active sound source refers to a sound source with a relatively high usage frequency on the multimedia human-machine interaction system, such as voice navigation prompts and music. As the name implies, active means frequent startup, frequent operation, and frequent occupation of the sound source playback channel. For example, in-vehicle navigation and music playback are relatively the most active. Especially in-vehicle navigation, during driving, in-vehicle navigation basically works throughout the journey, such as voice announcements of speed limits ahead, left turns ahead, traffic congestion on the current section, etc. This sound source has the highest proportion in the sound source playback channel. Then there are music playback, in-vehicle phone, and fault voice prompts, etc. More specifically, the audio focus can be analogized to a switch actuator with a single channel, and multiple different branch pipes are connected to a main pipe through the single-channel switch actuator. Different branch pipes can be regarded as different sound sources, and different sound sources may come from sound-producing devices such as in-vehicle navigation, in-vehicle music players, in-vehicle phones, and fault voice prompt systems, while the main pipe can be regarded as the in-vehicle sound source playback terminal, that is, the in-vehicle audio system, and the audio focus is the switch actuator. If different branch pipes want to obtain the priority to enter the main pipe, they need to be controlled by the single-channel switch actuator. When it is necessary to play music or send a notification, it is possible to request to obtain the audio focus. Once obtained, the audio output device can be freely used, and at the same time, it is constantly monitoring the change of the audio focus; when the audio focus changes, it is necessary to appropriately handle the audio output.

[0035] Step S2, in response to the received sound source restoration instruction, detect whether the audio focus is in an active state; if the audio focus is in an active state, obtain the usage record data of the currently playing sound source. It can be understood that when the trigger condition is met, a sound source restoration instruction will be output. After receiving the sound source restoration instruction, start to determine whether the audio focus is in an active state. Specifically, it detects whether the audio focus controls the sound source. Specifically, when the audio focus outputs instructions such as pause, play, priority play, and secondary play to the sound source, whether it can receive the status signal returned by the sound source. For example, after receiving the pause command, whether the sound source will remain in the pause state and return a pause signal, and after receiving the play command, whether the sound source will remain in the play state and return a play signal. The instructions such as priority play and secondary play are similar. If the sound source can be normally controlled, it is determined that the audio focus is in an active state. If the sound source cannot be normally controlled and managed, it is determined that the audio focus is in an inactive state. When the trigger condition is met, by determining that the released sound source audio focus is active, the usage record cache of the sound source in the system can be obtained according to its identification ID, further providing a data basis for obtaining the recoverable sound source.

[0036] Step S3, identify the usage record data to obtain the identification ID of the sound source whose current state is paused or delayed, as the second identification ID. It can be understood that through the identification ID of the sound source and the usage record, the sound source data related to the audio focus can be filtered out, that is, the paused or delayed sound source can be found, and the unique identification ID of the paused or delayed sound source can be obtained. The usage record of the sound source is the cache for querying the usage record of the sound source in the system. Here, the sound source refers to the previous sound source that temporarily lost the sound source focus due to arbitration. For example, in in-vehicle music playback, when playing music, if a vehicle-mounted phone suddenly accesses or dials out, at this time, the audio focus is allocated to the vehicle-mounted phone sound source with a higher priority, and the sound source focus of the in-vehicle music sound source is temporarily allocated to the vehicle-mounted phone sound source with a higher priority. At this time, the usage record of this in-vehicle music sound source is saved in the cache of the sound source usage record. After the vehicle-mounted phone hangs up, the in-vehicle music sound source regains the sound source focus according to the cache of the sound source usage record.

[0037] Step S4, determine whether the sound source with the second identification ID is a recoverable sound source; if it is determined to be a recoverable sound source, send the second identification ID to the audio focus; and obtain the acquired status signal returned by the audio focus. It can be understood that according to the corresponding strategy, one or more recoverable sound sources can be found, and the unique identification ID of one or more recoverable sound sources can be obtained.

[0038] In a specific embodiment, the sound source in the paused state is checked to determine whether there are other sound sources blocking it. If there are no other sound sources blocking it, the sound source in the paused state is determined to be a recoverable sound source; the sound source in the delayed state is checked to determine whether there are other sound sources blocking it. If there are no other sound sources blocking it, the sound source in the delayed state is determined to be a recoverable sound source; it is checked whether the mixing queue of the recoverable sound source is empty; if the mixing queue is not empty, the recoverable sound source is set to be in an attenuated state when it is recovered; if the mixing queue is empty, the recoverable sound source is set to be in a normal volume state when it is recovered; it can be understood that the sound source in the paused state or the delayed state is checked to see if there are other sound sources blocking it; if there are no other sound sources blocking these two types of sound sources, they both meet the conditions for being recovered; it is checked whether the mixing queue of the recovered sound source is empty. If so, an attenuation effect is added to this sound source; if not, the volume is restored normally.

[0039] Step S5, restore the recoverable sound source to the audio focus, and adjust the audio environment in which the sound source with the second identification ID plays; and return a successful signal for the recovery of the audio focus; wherein, the audio environment includes path parameters, volume parameters, and sound effect parameters. It can be understood that after determining the recoverable sound source, the information of the recoverable sound source is reported to the audio focus, and the obtained message is returned; then the system switches to the audio environment in which the recovered sound source plays; and a result is returned to the released sound source, and the release is successful.

[0040] Step S6, when restoring the recoverable sound source to the audio focus, release the sound source currently occupying the audio focus, and output a successful release signal to the sound source occupying the audio focus; discard the sound source information of the sound source occupying the audio focus stored in the audio focus, and update it to the sound source information of the sound source with the second identification ID; it can be understood that when a recovery exception occurs, it is necessary to release other sound sources that occupy the audio focus after the exception occurs. Therefore, the audio focus storage information in the system is updated: discard the released sound source information and update the information of the recovered sound source.

[0041] The working principle of this embodiment is as follows: First, when an exception crash occurs, the validity of the released sound source is checked. If it is valid, the following further check is performed; if it is invalid, the process exits; the query result determines that the audio focus of the released sound source is active, and then the cache of the sound source usage records in the system is further queried; the paused or delayed sound sources are found from the retrieved usage records; one or more recoverable sound sources are found from the paused or delayed sound sources according to the corresponding strategy; then the obtained message of the audio focus is reported to the recovered sound source; after determination, the system switches to the audio environment in which the recovered sound source plays and returns a result to the released sound source, and the release is successful; the audio focus storage information in the system is updated: discard the released sound source information and update the information of the recovered sound source.

[0042] After the currently active sound source releases the audio focus through the above process, the recoverable sound sources can be found and restored according to the usage records of the sound source applications and in combination with the audio arbitration rules. This solves the problem that when the sound source management program crashes due to a system failure, after the currently active sound source releases the sound source focus, the sound source program will lose the sound sources in its priority queue and needs to be reset again during recovery.

[0043] As Figure 2 shown, this embodiment also provides a recovery device for abnormal crash of an in-vehicle sound source management program to implement the method for recovering abnormal crash of the in-vehicle sound source management program, including: a detection module, an identification module, and a recovery module that are connected to each other;

[0044] The detection module is used to respond to the abnormal crash of the in-vehicle sound source management program, detect whether the active sound source actively releases the audio focus. Specifically, it can be understood as judging whether the active sound source can be managed by the audio focus; if the active sound source can be managed by the audio focus, it is determined that the active sound source actively releases the audio focus, and then a sound source recovery instruction is output; wherein, the active sound source is a sound source whose proportion of the startup frequency in the sound source playback channel is greater than a preset determination threshold; the audio focus is a switch actuator for managing the playback priorities of multiple sound sources in the sound source playback channel; and it also detects whether the audio focus is in an active state; if the audio focus is in an active state, it obtains the usage record data of the sound source currently occupying the sound source playback channel; it is also used to detect that the active sound source cannot be managed by the audio focus, and then it is determined that the active sound source does not actively release the audio focus, and it is determined that the released sound source is invalid and marked as not to be recovered.

[0045] The recognition module is used to recognize the usage record data in response to the received sound source restoration instruction, obtain the identification ID of the sound source with the current state of pause or delay as the second identification ID, determine whether the sound source with the second identification ID is a recoverable sound source, if it is determined to be a recoverable sound source, output the second identification ID to the audio focus, and send the obtained status signal returned by the audio focus to the sound source with the second identification ID. In a specific embodiment, when the recognition module determines whether the sound source with the second identification ID is a recoverable sound source, it checks whether there are other sound sources blocking it. If there are no other sound sources blocking it, it determines that the sound source in the pause state is a recoverable sound source. In addition, it checks whether the mixing queue of the recoverable sound source is empty. If the mixing queue is not empty, it sets the recoverable sound source to be in an attenuation state when it is restored. If the mixing queue is empty, it sets the recoverable sound source to be in a normal volume state when it is restored. Specifically, determining whether the sound source with the second identification ID is a recoverable sound source includes checking the sound source in the pause state or delay state and determining whether there are other sound sources blocking it. If there are no other sound sources blocking it, it determines that the sound source in the delay state is a recoverable sound source.

[0046] The restoration module is used to restore the recoverable sound source to the audio focus and adjust the audio environment in which the sound source with the second identification ID plays, and receive the restoration success signal generated by the audio focus. The audio environment includes path parameters, volume parameters, and sound effect parameters. It is also used to release the sound source currently occupying the audio focus, output a release success signal to the sound source occupying the audio focus, discard the sound source information of the occupied sound source stored in the audio focus, and update it to the sound source information of the sound source with the second identification ID.

[0047] In summary, implementing the embodiments of the present invention has the following beneficial effects:

[0048] The method and device for restoring the abnormal crash of the in-vehicle sound source management program provided by the present invention check the validity and activity of the released sound source and query the cache of the sound source usage record in the system, find the paused or delayed sound source, and realize that after the currently active sound source releases the audio focus, according to the usage record of the sound source application and combined with the audio arbitration rule, it can find and restore the recoverable sound source. It solves the problem that when the sound source management program crashes due to a system failure, after the currently active sound source releases the sound source focus, the sound source program will lose the sound source in its priority queue and needs to be re-set during restoration.

[0049] The above-disclosed is only a preferred embodiment of the present invention, and of course it cannot be used to limit the scope of the rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope covered by the present invention.

Claims

1. A recovery method for abnormal crashes of an in-vehicle audio source management program, characterized in that, It includes the following steps: Step S1, in response to an abnormal crash of the in-vehicle sound source management program, detect whether the active sound source actively releases the audio focus. If the active sound source actively releases the audio focus, output a sound source recovery instruction; wherein, the active sound source is a sound source with a proportion of startup frequency in the sound source playback channel greater than a preset determination threshold; the audio focus is used to manage the playback priorities of multiple sound sources in the sound source playback channel; if the active sound source can be managed by the audio focus, it is determined that the active sound source actively releases the audio focus; Step S2, in response to the received sound source recovery instruction, detect whether the audio focus is in an active state; if the audio focus is in an active state, obtain the usage record data of the sound source currently occupying the sound source playback channel; wherein, determining that the audio focus is in an active state specifically detects whether the audio focus controls the sound source. If the sound source can be normally controlled, it is determined that the audio focus is in an active state; Step S3, identify the usage record data to obtain the identification ID of the sound source whose current state is paused or delayed as the second identification ID; Step S4, determine whether the sound source with the second identification ID is a recoverable sound source; if it is determined to be a recoverable sound source, send the second identification ID to the audio focus; and obtain the acquired status signal returned by the audio focus; Step S5, restore the recoverable sound source to the audio focus, and adjust the audio environment in which the sound source with the second identification ID plays; and return a successful recovery signal of the audio focus.

2. The method according to claim 1, wherein It also includes: Step S6, when restoring the recoverable sound source to the audio focus, release the sound source currently occupying the audio focus, and output a release success signal to the sound source occupying the audio focus.

3. The method according to claim 2, wherein Step S6 further includes: Discard the sound source information of the sound source occupying the audio focus stored in the audio focus, and update it to the sound source information of the recoverable sound source.

4. The method according to claim 3, wherein Step S4's determination of whether the sound source with the second identification ID is a recoverable sound source specifically includes: Check the sound source in the paused state and determine whether there is any other sound source blocking it. If there is no other sound source blocking it, determine that the sound source in the paused state is a recoverable sound source.

5. The method according to claim 3, wherein Step S4's determination of whether the sound source with the second identification ID is a recoverable sound source specifically includes: Check the sound source in the delayed state and determine whether there is any other sound source blocking it. If there is no other sound source blocking it, determine that the sound source in the delayed state is a recoverable sound source.

6. The method according to claim 4 or 5, characterized in that, Step S4 further includes: Check whether the mixing queue of the recoverable sound source is empty; if the mixing queue is not empty, set the recoverable sound source to be restored in an attenuated state; if the mixing queue is empty, set the recoverable sound source to be restored in a normal volume state.

7. The method according to claim 6, wherein Step S1 further includes: If the active sound source cannot be managed by the audio focus, it is determined that the active sound source does not actively release the audio focus, then it is determined that the release of the sound source is invalid, and it is marked as not to be restored.

8. A recovery device for abnormal crash of in-vehicle sound source management program, which is used to implement the method according to any one of claims 1-7, characterized in that It includes: A detection module, an identification module, and a recovery module that are interconnected; The detection module is used to detect whether the active sound source actively releases the audio focus in response to an abnormal crash of the in-vehicle sound source management program. If the active sound source actively releases the audio focus, an instruction for sound source recovery is output. Among them, the active sound source is the sound source with the proportion of the start frequency in the sound source playback channel greater than a preset determination threshold. The audio focus is used to manage the playback priorities of multiple sound sources in the sound source playback channel, and detect whether the audio focus is in an active state. If the audio focus is in an active state, the usage record data of the sound source currently occupying the sound source playback channel is obtained. The recognition module is used to recognize the usage record data in response to the received sound source recovery instruction, obtain the identification ID of the sound source with the current state of pause or delay as the second identification ID, determine whether the sound source with the second identification ID is a recoverable sound source. If it is determined to be a recoverable sound source, the second identification ID is output to the audio focus, and the acquired status signal returned by the audio focus is sent to the sound source with the second identification ID. The recovery module is used to restore the recoverable sound source to the audio focus, and adjust the audio environment for playing the sound source with the second identification ID, and receive the recovery success signal generated by the audio focus. Among them, the audio environment includes path parameters, volume parameters, and sound effect parameters. Among them, the detection module is also used to detect that the active sound source cannot be managed by the audio focus, then determine that the active sound source does not actively release the audio focus, then determine that the released sound source is invalid, and mark it as not to be recovered.

9. The device according to claim 8, wherein The recovery module is also used to release the sound source currently occupying the audio focus, and output a release success signal to the sound source occupying the audio focus, and discard the sound source information of the occupied sound source stored in the audio focus and update it to the sound source information of the sound source with the second identification ID.

10. The device according to claim 9, characterized in that, When the recognition module determines whether the sound source with the second identification ID is a recoverable sound source, it judges whether there are other sound sources blocking it. If there are no other sound sources blocking it, it determines that the sound source in the pause state is a recoverable sound source. In addition, check whether the mixing queue of the recoverable sound source is empty. If the mixing queue is not empty, set the recoverable sound source to be in an attenuation state when it is restored. If the mixing queue is empty, set the recoverable sound source to be in a normal volume state when it is restored. Among them, determining whether the sound source with the second identification ID is a recoverable sound source specifically includes: checking the sound source in the pause state or delay state, judging whether there are other sound sources blocking it. If there are no other sound sources blocking it, it determines that the sound source in the delay state is a recoverable sound source.

Citation Information

Patent Citations

  • Music playing application keep-alive processing method and system, storage medium and electronic equipment

    CN112162783A

  • Audio resource invoking method and apparatus, and electronic device

    WO2020107177A1