CN106648534B - The method that the audio of a kind of pair of mutual exclusion is realized while being played - Google Patents

The method that the audio of a kind of pair of mutual exclusion is realized while being played Download PDF

Info

Publication number
CN106648534B
CN106648534B CN201611217201.2A CN201611217201A CN106648534B CN 106648534 B CN106648534 B CN 106648534B CN 201611217201 A CN201611217201 A CN 201611217201A CN 106648534 B CN106648534 B CN 106648534B
Authority
CN
China
Prior art keywords
audio
audio mixing
application program
volume
media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201611217201.2A
Other languages
Chinese (zh)
Other versions
CN106648534A (en
Inventor
董传成
崔计平
杨泗群
樊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201611217201.2A priority Critical patent/CN106648534B/en
Publication of CN106648534A publication Critical patent/CN106648534A/en
Application granted granted Critical
Publication of CN106648534B publication Critical patent/CN106648534B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

The method realized while played this application discloses the audio of a kind of pair of mutual exclusion, this method is by increasing audio types STREAM_FORCE_MIX, and determine that audio mixing enhances application program according to the user's choice, the type of the audio data of audio mixing enhancing application program is revised as STREAM_FORCE_MIX, and according to STREAM_FORCE_MIX type application audio strategy, at the same time when the audio data of broadcasting audio mixing enhancing application program and media player, enhance priority policy according to the audio mixing of setting and volume management strategy gradually reduces media player media volume, to meet the demand for needing to hear two or more sound under some scenes simultaneously, improve the experience when interaction of user's Multi-audio-frequency.

Description

The method that the audio of a kind of pair of mutual exclusion is realized while being played
Technical field
This application involves Android art audio systems, in particular to realize simultaneously in Android system to the audio of mutual exclusion The method of broadcasting.
Background technique
Android (Android) system devises the audio system based on type, and elementary tactics is: high priority type is beaten Disconnected low priority type, newcomer, which interrupts, when same priority interaction is currently played.
The opening of Android makes third party APP to the ununified specification of calling of audio system, process also it is each not It is identical.The case where even existing and bypass, do not apply for audio strategy, forcing with other audio players with same volume audio mixing;Have Notice that is a little then being not responding to audio system, request, such as " DUCK ".
In Android automotive field, be mostly by increase hardware (such as: single-chip microprocessor MCU, audio mixing chip, multi-loudspeaker Deng) mode realize multi-path media sound while playing.
Some applications such as high moral is navigated, and is by applying for audio strategy " AUDIOFOCUS_GAIN_TRANSIENT_MAY_ DUCK ", audio mixing coexists Lai Shixian request other application " reducing volume " therewith.
It is found by analysis, existing audio mixing technology has the following deficiencies:
1, mutually interrupting can not coexist.Some scenes need to export simultaneously two kinds (or more) audio, such as listen on one side Song is navigated using Baidu on one side, the result is that navigation voice frequently interrupts music, when travelling can not almost appreciate complete music, is used Family experience is poor.
2, can not give top priority to what is the most important sound, cause to be easy to ignore important voice messaging.Some APP do not apply for audio strategy, or Person is not responding to audio system request, forces with same volume and other player audio mixings.Such as: high moral navigation attempts to solve navigation Sound and music audio mixing, when playing navigation, request music reduces volume, but some music players are to be not responding to " flat " request , it is unable to reach the purpose of prominent navigation sound.
3, it plays and is realized dependent on APP simultaneously, the player of mutual exclusion cannot achieve while play.
4, at high cost.Vehicular platform is increased into a manner of realizing that navigation sound and multimedia sound coexist increasing hardware This.
Summary of the invention
The method realized while played this application provides the audio of a kind of pair of mutual exclusion, to solve the sound of android terminal mutual exclusion The problem of frequency can not play improves the experience when interaction of user's Multi-audio-frequency.
The method realized while played this application discloses the audio of a kind of pair of mutual exclusion, is applied to android terminal, comprising:
A, increase audio types STREAM_FORCE_MIX, increase STREAM_FORCE_MIX in audio priory grade strategy The audio strategy of type;
B, it determines that audio mixing enhances application program according to the user's choice, saves the list of audio mixing enhancing application program;Wherein, Audio mixing enhancing application program is the application program needed with media sound audio mixing;Volume management strategy is determined according to the setting of user;
C, in application program playing audio-fequency data, the calling process title of the application program is obtained, if described answer With program in the list of saved audio mixing enhancing application program, then the type of the audio data is revised as STREAM_ FORCE_MIX;
D, when application requests audio strategy, judge whether packet name is sky, when packet name is not sky, obtain calling process Number, and then packet name is obtained, and judge the record that whether there is the packet name in database audio mixing enhancing application program table, if deposited Audio types are then being revised as STREAM_FORCE_MIX, are applying for audio strategy;
E, enhance priority policy according to the audio mixing of setting to carry out together the audio data and media sound of the application program When play, wherein according to set volume management strategy to media volume carry out gradually decaying and restore.
Preferably, when application requests audio strategy, further comprising in the D: judge request type whether be STREAM_MUSIC is then continued to execute if it is STREAM_MUSIC and is judged whether packet name is empty operation.
Preferably, the B includes:
All installation kits in Android system are traversed, the packageInfo.requeste in its PackageInfo is retrieved DPermissions information;
Traverse whether requestedPermissions information includes SD card write permission;
Save the PackageInfo of application SD card write permission, comprising: packet name, title and ICON;
Interface display traverse as a result, for user's browsing, setting, and determine according to the user's choice therein mixed Sound enhances application program.
Preferably, the volume management strategy are as follows:
Wherein:
0 grade, indicate audio mixing enhancing application program with media sound with identical volume audio mixing;
1 grade, indicate that media sound reduces by 20% when audio mixing;
2 grades, indicate that media sound reduces by 40% when audio mixing;
3 grades, indicate that media sound reduces by 60% when audio mixing;
4 grades, indicate that media sound reduces by 80% when audio mixing;
5 grades, indicate that media sound volume is 0 when audio mixing.
Preferably, the audio mixing enhances priority policy are as follows:
Preferably, carrying out gradually decaying to media volume according to set volume management strategy and with recovery including:
When audio mixing enhancing application program strategy is successful, and starts to play, current media volume is saved, as media Volume initial value;
The damped expoential in the volume management strategy of setting is inquired, and calculates and declines according to " damped expoential × media volume " Media volume after subtracting;
Gradually by media volume adjustment to media volume after calculated decaying;
When audio mixing enhancing application program broadcasting terminates, when discharging audio strategy, gradually by media volume adjustment to media sound Measure initial value.
As seen from the above technical solution, the method realized while played this application discloses the audio of a kind of pair of mutual exclusion, it is full Need to hear the demand of two or more sound under some scenes of foot simultaneously.Such as more typical use navigation is (such as Baidu's navigation, Kai Lide navigation) when, the problem of listening to music, in complex road condition, music is frequently navigated voice broadcast and interrupts, Music can not continuously be appreciated.Through the invention, it is that audio mixing enhances application program that navigation application, which can be set, in user, can also be arranged Media sound pad value is clear, bright to guarantee prior navigation sound, is unlikely to miss important traffic information.
Realization of the present invention independent of third party app does not need to increase hardware cost, it is only necessary to update audio system just It may be implemented that the application program of broadcasting cannot coexist script mutual exclusion into while playing, richer, more friendly user can be brought Experience promotes terminal differential competition advantage.
Detailed description of the invention
Fig. 1 is the frame diagram of android terminal audio system improvement project of the present invention;
Fig. 2 is a terminal interface schematic diagram for being preferably equipped with audio mixing assistant APP of the present invention;
Fig. 3 is that the preferable audio mixing of the present invention one enhances application program set interface schematic diagram;
Fig. 4 is the preferable media sound decaying set interface schematic diagram of the present invention one;
Fig. 5 is the Type mapping schematic diagram in a preferable audio stream of the invention;
Fig. 6 is the Type mapping schematic diagram in a preferable audio strategy of the invention;
Fig. 7 is the preferable media sound decaying of the present invention one and recovery processing flow schematic diagram.
Specific embodiment
It is right hereinafter, referring to the drawings and the embodiments, for the objects, technical solutions and advantages of the application are more clearly understood The application is described in further detail.
The invention discloses a kind of android terminal audio system improved method, this method carries out on the basis of existing technology Following improvement:
1, increase new audio types " STREAM_FORCE_MIX ", independently of the phonetics type such as " STREAM_MUSIC " Carry out volume and audio tactical management.
2, audio priory grade strategy is redesigned, the audio strategy of " STREAM_FORCE_MIX " type is increased, so that its It coexists, does not interrupt mutually with audio types such as " STREAM_MUSIC ".
3, volume management strategy is designed, when " STREAM_FORCE_MIX " type player application audio strategy, gradually The volume of the related audios type player such as " STREAM_MUSIC " is reduced to setting value;When " STREAM_FORCE_MIX " type When player discharges audio strategy, it is gradually recovered the volume of the related audios type player such as " STREAM_MUSIC ".It makes it possible to Highlight the sound that prior " STREAM_FORCE_MIX " type player is broadcasted.
4, audio mixing assistant APP is designed, proposes and realize through packet name to identify and manage " audio mixing enhancing " application program.With Family records this by audio mixing assistant APP and answers by select andding set the application program needed support with other media player audio mixings With the packet name of program, for audio system Division identification.
5, Type mapping when application requests audio strategy, passes through in audio system and extracts comparison calling process packet The packet list of file names that name is saved with audio mixing assistant, is mapped as " STREAM_FORCE_MIX " class for matched audio request coercion of type Type carries out volume and tactical management with independent, realizes the purpose that mutual exclusion is played while being broadcasted by the application.
It is the audio needs of navigation software and music player in most cases according to the analysis to existing audio mixing scene It playing simultaneously, the audio types that these two types of application programs need to play audio are usually STREAM_MUSIC, therefore, the application master It will what is involved is STREAM_MUSIC type is revised as STREAM_FORCE_MIX type.Below in explanation, with STREAM_ It is illustrated for MUSIC type.
Based on above-mentioned improvement, method provided by the invention enables the player of script mutual exclusion to play simultaneously, and can According to the setting of user, the sound of emphasis player broadcast in prominent audio mixing.The application journey with media sound audio mixing will be needed below Sequence is known as " audio mixing enhancing " application program.The frame diagram of the present invention program as shown in Figure 1, module that the frame mainly includes and its Function is described as follows:
1, audio mixing assistant APP module
The major function of the module is as follows:
1) audio mixing enhancing application setting submodule, for mark audio mixing enhance application program, user can by list and/ Or switch button, to be selected as the application program of audio mixing enhancing application program.
2) it is optional to be supplied to user preferably, the present invention provides 6 grades of attenuation parameters for media sound decaying setting submodule Media volume decreasing value.
3) audio mixing is enhanced application program list and attenuation parameter is stored in data by database for carrying out data preservation In library, and provide inquiry and modification interface.
2, audio frame (Audio Framework) module
1) audio mixing enhancing application identification submodule applies journey by the audio mixing enhancing in comparison calling process name and database Sequence list, judges whether the application program needs to carry out audio mixing enhancing.
2) audio mixing enhance Type mapping submodule, function be mainly by audio mixing enhancing application program audio types from STEAM_MUSIC replaces with STRREAM_MUSIC_MIX.After handling in this way, generic media sound data flow can be distinguished and " mixed Sound enhancing " type audio data stream, so that independent carry out audio strategy and volume management.
3) audio right of broadcasting (Audio Focus) priority policy optimizes submodule, by designing independent audio types And strategy, realization coexist with other media sound audio mixings.
4) distribution of audio mixing volume mainly realizes a kind of strategy, audio mixing for carrying out audio mixing volume processing with adjusting submodule When enhancing broadcasting is interacted with media sound broadcasting audio mixing, media volume is gradually lowered to the value of setting;Audio mixing enhances application program At the end of broadcasting, media volume is gradually restored to initial value.
5) Audio Flinger stereo process submodule, realize with streamType come distinguish audio mixing enhancing audio stream and Media audio stream, and be arranged according to media volume attenuation, it is overlapped, smooth processing.
3, audio hardware level of abstraction (Audio Hal) module
The module will be for that will be streamed to audio driven and equipment by finally obtained audio data after " audio mixing enhancing ".
Below by a preferred embodiment, the implementation of technical scheme is further elaborated.
Firstly, being illustrated to audio mixing assistant APP.
Fig. 2 is the terminal interface schematic diagram for being equipped with audio mixing assistant APP of the present invention.Audio mixing assistant APP provided by the invention As the entrance of user management audio mixing enhancing application program, the identification of audio mixing enhancing application program is carried out to wrap entitled mark, is protected It deposits and is arranged.The major function of audio mixing assistant APP includes: the filtering of the audio play-back application based on SD card permission;It is based on The identification of audio mixing enhancing application program, the setting of packet name;Media volume attenuation is arranged when audio mixing enhances;Database design is protected with parameter It deposits.Specific functional modules decomposition description is as follows:
One, audio mixing enhancing application program screening
Android system can not directly judge whether an application program is multimedia application.The present invention is analyzing After the behavioural characteristic of common audio application, propose to apply for that " SD card write permission " was condition and filter out possible sound Frequency application program, to reduce the range of user's selection.Firstly, all installation kits in Ergodic Theory, retrieve its PackageInfo In packageInfo.requestedPermissions information;Secondly, traversal requestedPermissions information is No includes SD card write permission (android.permission.WRITE_EXTERNAL_STORAGE), saves application SD card and writes power The PackageInfo of limit, including packet name, title and ICON;Again, compare the packet name whether be stored in database audio mixing enhancing answer With in program list;Finally, interface display is carried out in the form of a list, for user's browsing, setting.As shown in Figure 3.
Two, identification, setting and storage based on packet name
In the present invention, database table forcemix is increased in Settings, includes _ id (INTEGER) and mix_pkg (TEXT) two fields, mix_pkg are used to record the packet name of audio mixing enhancing application program, such as Baidu's navigation (com.baidu.BaiduMap), when user setting application program is that audio mixing enhances application program, by the packet of the application program Name is inserted into (insert) into forcemix table as mix_pkg field value, and refreshes interface audio mixing enhancing application description, switch State.It is corresponding to delete the enhancing application of (delete) audio mixing when equally setting non-audio mixing enhancing application program for application program Field mix_pkg is equal to the record of this packet name in program list forcemix, and refreshes the interface UI.
Three, media sound decaying setting
When audio mixing enhances application program and media application audio mixing, need to reduce media volume with protrusion " audio mixing enhancing " The volume of application program.The audio mixing assistant APP of the present embodiment provides 6 grades of adjustable volumes, and as shown in table 1, user can be therefrom It voluntarily selects, as shown in Figure 4.When the application program for participating in audio mixing belongs to audio mixing enhancing application program, with identical volume Carry out audio mixing.
Damped expoential Media volume Audio mixing enhances volume
0 100% 100%
1 80% 100%
2 60% 100%
3 40% 100%
4 20% 100%
5 0% 100%
1 media volume attenuation of table
0 grade, indicate audio mixing enhancing application program with media sound with identical volume audio mixing;
1 grade, indicate that media sound reduces by 20% when audio mixing;
2 grades, indicate that media sound reduces by 40% when audio mixing;
3 grades, indicate that media sound reduces by 60% when audio mixing;
4 grades, indicate that media sound reduces by 80% when audio mixing;
5 grades, indicate that media sound volume is 0 when audio mixing, it is mute.
Secondly, being illustrated to audio mixing proposed by the present invention enhancing type.
One, type: STREAM_FORCE_MIX is increased newly
The present invention proposes that increasing audio mixing in Android audio system enhances type: STREAM_FORCE_MIX, to solve The problem of audio broadcasting of mutual exclusion can not play simultaneously.Increase in AudioSystem as follows:
Public static final int STREAM_FROCE_MIX=14;//for force mix
Private static final int NUM_STREAM_TYPES=15;//changed from 14
And increase this type in AudioPlayer, AuidoFlinger accordingly.Increase in AudioService simultaneously Default volume is arranged in adduction and max volume is 7 and 15.
Two, AudioStreamType maps in MediaPlayer/AudioTrack
According to AudioFlinger software Mixed Audio Algorithm principle, audio data carries out volume according to stream (stream) type Superposition, it is therefore desirable to audio mixing enhancing audio data and generic media sound data are distinguished when creating audio stream.Android system In system there are two audio stream plays entrances: one is the MediaPlayer played using Android multimedia framework, another It is the AudioTrack that customized player uses.The present embodiment, which passes through, obtains calling process title, and in matching database Audio mixing enhances application program table, to determine whether enhancing audio stream for audio mixing, then carrying out audio mixing enhances Type mapping.Process is such as Shown in Fig. 5, comprising:
Step 501: selecting the entrance for distinguishing the type of audio stream.Wherein, MediaPlayer distinguishes " audio mixing enhancing " audio The optimal entrance of data is function setAudioStreamType (int streamType);And AudioTrack distinguishes " audio mixing The optimal entrance of enhancing " voice data stream is then constructed fuction AudioTrack (int streamType).
Step 502: calling getCallingPid, obtain calling process number.
Step 503: obtaining process title.
Step 504: inquiry database audio mixing enhances application program table.
Step 505: judging, if it is not, skipping, to tie in audio mixing enhancing application program table whether comprising corresponding record Otherwise this process of beam continues to execute step 506.
Step 506: audio types are replaced with into STREAM_FORCE_MIX from STREAM_MUSIC.
Three, in AudioService STREAM_MUSIC to STREAM_FORCE_MIX mapping
In order to distinguish audio mixing enhancing application program, the present embodiment is by foregoing audio mixing assistant APP, by user setting Application program is that audio mixing enhances application program, and records packet name, and audio framework receives request right of broadcasting (requestAudioFocus) it when calling, is compared and is identified by packet name, to map audio mixing enhancing Application Type, process is such as Shown in Fig. 6, comprising:
Step 601: application call requestAudioFocus (stream_type) requests right of broadcasting.
Step 602: judging whether request type is STREAM_MUSIC, it may be assumed that judge stream_type=STREAM_ MUSIC? if so, continuing to execute step 603, otherwise, terminate this process.
Step 603: judging whether packet name is empty, it may be assumed that judge callingPackageName=null? if wrapped entitled Sky then continues to execute step 606, if packet name is not sky, continue to execute step 604.
Step 604: obtaining calling process number with function getCallingPid ().
Step 605: packet name is obtained according to process number.Be used to realize by two steps: inquiry is currently running first All application informations (by calling ActivityManager.getRunningAppProcesses to be inquired), then According to returning the result, the label information of the application program being currently running is inquired (by calling function PackageManager.g EtApplicationLabel is inquired), its packet name is finally found out from label information.
Step 606: the record of this packet name in inquiry database audio mixing enhancing application program table:
Cursor c=db.query (" t_mixapp ", new String [] { " name " }, " name=? ", new String[]{callingPackageName},null,null,null)。
Step 607: according to query result, judging the record that whether there is this packet name in table, it may be assumed that (c.moveToFirst ())=null? if there are the records of this packet name in table, 608 are thened follow the steps, otherwise, terminates this process.
Step 608: STREAM_MUSIC being replaced with into STREAM_FORCE_MIX, applies for audio strategy.
Four, STREAM_FORCE_MIX priority policy
Table 2 is that the audio mixing of the present embodiment enhances priority policy table.
2 audio mixing of table enhances priority policy table
Finally, being illustrated to the decaying of media volume in audio mixing of the present invention enhancing with recovery.
The principle of AudioFlinger software audio mixing is multiplied according to the type volume of each Track and the volume of left and right acoustic channels Product is to be overlapped realization audio mixing, and wherein the calculation formula of volume is as follows:
Float typeVolume=mStreamTypes [track- > streamType ()] .volume;// type volume
Float v=masterVolume*typeVolume;
Vlf*=v;// L channel volume
Vrf*=v;// right channel volume
System is unable to control the volume of the left and right acoustic channels of application player, therefore the present invention passes through control TypeVolume enhances volume lower than audio mixing come media sound when realizing audio mixing, to achieve the purpose that give top priority to what is the most important.That is:
mStreamTypes[STREAM_FORCE_MIX].volume>mStreamTypes[STREAM_MUSIC] .volume
Audio mixing enhancing interaction when audio system process flow as shown in fig. 7, comprises:
Step 701: audio mixing enhances the success of application program strategy, and starts to play.
Step 702: saving current media volume.
Step 703: the damped expoential being arranged in inquiry audio mixing assistant, and calculated according to " damped expoential × media volume " Media volume after decaying.
Step 704: calling setStreamVolume (music_new), gradually adjust volume of music to pad value, wherein Parameter music_new is the media volume after the calculated decaying.
Step 705: audio mixing enhancing, which plays, terminates release audio strategy.
Step 706: calling setStreamVolume (music_old), progressive recovery media volume to initial value, wherein Music_old is media volume initial value.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (6)

1. the method that the audio of a kind of pair of mutual exclusion is realized while being played is applied to android terminal characterized by comprising
A, increase audio types STREAM_FORCE_MIX, increase STREAM_FORCE_MIX type in audio priory grade strategy Audio strategy;
B, it determines that audio mixing enhances application program according to the user's choice, saves the list of audio mixing enhancing application program;Wherein, audio mixing Enhancing application program is the application program needed with media sound audio mixing;Volume management strategy is determined according to the setting of user;
C, in application program playing audio-fequency data, the calling process title of the application program is obtained, if described apply journey The type of the audio data is then revised as STREAM_FORCE_ in the list of saved audio mixing enhancing application program by sequence MIX;
D, when application requests audio strategy, judge whether packet name is sky, when packet name is not sky, obtain calling process number, And then packet name is obtained, and judge the record that whether there is the packet name in database audio mixing enhancing application program table, if it does, Audio types are then revised as STREAM_FORCE_MIX, apply for audio strategy;
E, enhance priority policy according to the audio mixing of setting the audio data and media sound of the application program are carried out while being broadcast It puts, wherein gradually decaying is carried out to media volume according to set volume management strategy and is restored.
2. according to the method described in claim 1, it is characterized by:
In the D, when application requests audio strategy, further comprise: judging whether request type is STREAM_ MUSIC is then continued to execute if it is STREAM_MUSIC and is judged whether packet name is empty operation.
3. method according to claim 1 or 2, which is characterized in that the B includes:
All installation kits in Android system are traversed, the packageInfo.requestedPer in its PackageInfo is retrieved Missions information;
Traverse whether requestedPermissions information includes SD card write permission;
Save the PackageInfo of application SD card write permission, comprising: packet name, title and ICON;
Interface display traverse as a result, for user's browsing, setting, and determine that audio mixing therein increases according to the user's choice Strong application program.
4. method according to claim 1 or 2, which is characterized in that the volume management strategy are as follows:
Wherein:
0 grade, indicate audio mixing enhancing application program with media sound with identical volume audio mixing;
1 grade, indicate that media sound reduces by 20% when audio mixing;
2 grades, indicate that media sound reduces by 40% when audio mixing;
3 grades, indicate that media sound reduces by 60% when audio mixing;
4 grades, indicate that media sound reduces by 80% when audio mixing;
5 grades, indicate that media sound volume is 0 when audio mixing.
5. method according to claim 1 or 2, which is characterized in that the audio mixing enhances priority policy are as follows:
6. according to the method described in claim 4, it is characterized in that, according to set volume management strategy to media volume into Row is gradually decayed with recovery
When audio mixing enhancing application program strategy is successful, and starts to play, current media volume is saved, as media volume Initial value;
The damped expoential in the volume management strategy of setting is inquired, and after calculating decaying according to " damped expoential × media volume " Media volume;
Gradually by media volume adjustment to media volume after calculated decaying;
Terminate when audio mixing enhancing application program plays, it, gradually will be at the beginning of media volume adjustment to media volume when discharging audio strategy Initial value.
CN201611217201.2A 2016-12-26 2016-12-26 The method that the audio of a kind of pair of mutual exclusion is realized while being played Expired - Fee Related CN106648534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611217201.2A CN106648534B (en) 2016-12-26 2016-12-26 The method that the audio of a kind of pair of mutual exclusion is realized while being played

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611217201.2A CN106648534B (en) 2016-12-26 2016-12-26 The method that the audio of a kind of pair of mutual exclusion is realized while being played

Publications (2)

Publication Number Publication Date
CN106648534A CN106648534A (en) 2017-05-10
CN106648534B true CN106648534B (en) 2019-09-13

Family

ID=58827991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611217201.2A Expired - Fee Related CN106648534B (en) 2016-12-26 2016-12-26 The method that the audio of a kind of pair of mutual exclusion is realized while being played

Country Status (1)

Country Link
CN (1) CN106648534B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107155155A (en) * 2017-06-12 2017-09-12 宇龙计算机通信科技(深圳)有限公司 Audio-frequency inputting method, device, mobile terminal and computer-readable recording medium
CN108334302A (en) * 2017-12-26 2018-07-27 努比亚技术有限公司 A kind of sound transmission method, mobile terminal and computer readable storage medium
CN109918042A (en) * 2019-03-19 2019-06-21 常州卡灵克软件有限公司 A kind of vehicle device application sound channel control method
CN110032357B (en) * 2019-04-09 2022-05-10 海信视像科技股份有限公司 Output method of audio data of application program and display device
US11288033B2 (en) 2019-04-09 2022-03-29 Hisense Visual Technology Co., Ltd. Method for outputting audio data of applications and display device
CN111835922A (en) * 2019-04-19 2020-10-27 海能达通信股份有限公司 Multi-channel call voice control method and device
CN110196708B (en) * 2019-04-25 2023-05-16 深圳市布谷鸟科技有限公司 Audio management method applied to android vehicle-mounted multimedia system
CN112533056B (en) * 2019-09-17 2022-10-28 海信视像科技股份有限公司 Display device and sound reproduction method
CN112433615A (en) * 2020-12-04 2021-03-02 Oppo广东移动通信有限公司 Audio playing method and device, head-mounted display equipment and storage medium
CN112965685B (en) * 2021-02-04 2023-08-25 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium
CN114979347B (en) * 2021-02-21 2023-05-12 荣耀终端有限公司 Audio playing method, electronic equipment and chip system
CN113423006B (en) * 2021-05-31 2022-07-15 惠州华阳通用电子有限公司 Multi-audio-stream audio mixing playing method and system based on main and auxiliary sound channels

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117221A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Audio frequency application conflict management method and manager
CN102522096A (en) * 2011-12-07 2012-06-27 中国航空无线电电子研究所 Synchronous replay system for multi-channel audio and video and method thereof
CN105468380A (en) * 2015-12-29 2016-04-06 山东大学 Optimized method for managing audio focus in Android system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100293468A1 (en) * 2009-05-12 2010-11-18 Sony Ericsson Mobile Communications Ab Audio control based on window settings
US20110219307A1 (en) * 2010-03-02 2011-09-08 Nokia Corporation Method and apparatus for providing media mixing based on user interactions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117221A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Audio frequency application conflict management method and manager
CN102522096A (en) * 2011-12-07 2012-06-27 中国航空无线电电子研究所 Synchronous replay system for multi-channel audio and video and method thereof
CN105468380A (en) * 2015-12-29 2016-04-06 山东大学 Optimized method for managing audio focus in Android system

Also Published As

Publication number Publication date
CN106648534A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106648534B (en) The method that the audio of a kind of pair of mutual exclusion is realized while being played
US7580325B2 (en) Utilizing metadata to improve the access of entertainment content
CN103354630B (en) For using object-based metadata to produce the apparatus and method of audio output signal
DE69923578T2 (en) METHOD AND DEVICE FOR PERSONALIZED ADVERTISING ADVERTISING
CN101675472A (en) The method and apparatus that is used for audio signal
CN101625863B (en) Playback apparatus and display method
US20120259440A1 (en) Method for managing conflicts between audio applications and conflict managing device
CN102576562B (en) Automatic generation of metadata for audio dominance effects
CN104090766A (en) Sound effect switching method and system for mobile terminal
CN1636240A (en) System for selling a product utilizing audio content identification
CN1820511A (en) Method and device for generating and detecting a fingerprint functioning as a trigger marker in a multimedia signal
CN106531201A (en) Song recording method and device
CN107609034A (en) A kind of audio frequency playing method of intelligent sound box, audio playing apparatus and storage medium
CN105760438A (en) Method for performing associated audio pushing in comprehensive vehicle running state
CN108268233A (en) Sound source control method, device and vehicle
US20090271413A1 (en) Trial listening content distribution system and terminal apparatus
CN105824895A (en) KTV song selection method and system
CN101120412A (en) A system for and a method of mixing first audio data with second audio data, a program element and a computer-readable medium
CN112381574B (en) Advertisement putting method and device for public transport vehicle
CN104750868A (en) Method and device for establishing multi-media file playlist
Kalliris et al. Media management, sound editing and mixing
US20080140235A1 (en) Equalization application based on autonomous environment sensing
CN106205656A (en) The localization method of a kind of file playing position and device
CN104284209B (en) The method and apparatus for building mapping database, the method and apparatus of program push
CN109743615A (en) Data flow playback method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190913

CF01 Termination of patent right due to non-payment of annual fee