CN106648534A - Method of simultaneously playing mutually-exclusive audios - Google Patents

Method of simultaneously playing mutually-exclusive audios Download PDF

Info

Publication number
CN106648534A
CN106648534A CN201611217201.2A CN201611217201A CN106648534A CN 106648534 A CN106648534 A CN 106648534A CN 201611217201 A CN201611217201 A CN 201611217201A CN 106648534 A CN106648534 A CN 106648534A
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.)
Granted
Application number
CN201611217201.2A
Other languages
Chinese (zh)
Other versions
CN106648534B (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 invention discloses a method of simultaneously playing mutually-exclusive audios. The method comprises steps of determining an audio mixing enhancing application program via addition of an audio type of STREAM_FORCE_MIX and according to user selections, correcting an audio data type of the audio mixing enhancing application program into STREAM_FORCE_MIX, applying an audio strategy according to the STREAM_FORCE_MIX type, and gradually lowering media player media volume according to a set audio mixing enhancing priority strategy and a volume management strategy when the audio mixing enhancing application program and the audio data of the media player are played at the same time. And therefore, demands of hearing two or more sounds upon some scenes by users can be met, and multi-audio interaction experience can be improved for the users.

Description

A kind of audio frequency to mutual exclusion realizes the method played simultaneously
Technical field
The application is related to ARIXTRA art audio systems, and the audio frequency of mutual exclusion is realized simultaneously more particularly in Android system The method of broadcasting.
Background technology
Audio system of ARIXTRA (Android) system design based on type, its elementary tactics is:High priority type is beaten Disconnected low priority type, new-comer interrupts what is be currently played when same priority is interacted.
The opening of Android causes call ununified specifications of the third party APP to audio system, flow process also it is each not It is identical.Even exist and bypass, do not apply for audio frequency strategy, force with other audio players with the situation of same volume audio mixing;Have A little then notice that be not responding to audio system, request, such as " DUCK ".
It is mostly by increasing hardware (for example in Android automotive fields:Single-chip microprocessor MCU, audio mixing chip, multi-loudspeaker Deng) mode realize that multi-path media sound is played simultaneously.
Some applications such as high moral navigation, is by applying for audio frequency strategy " AUDIOFOCUS_GAIN_TRANSIENT_MAY_ DUCK ", asks other application " reduction volume " to realize that therewith audio mixing coexists.
Found by analysis, existing audio mixing technology has following defect:
1st, mutually interrupting to coexist.Some scenes need two kinds of output simultaneously (or more) audio frequency, such as while listening Song is navigated on one side using Baidu, is as a result that navigation voice frequently interrupts music, complete music cannot be almost appreciated during travelling, use Family experience is poor.
2nd, cannot give top priority to what is the most important sound, cause easily to ignore important voice messaging.Some APP do not apply for audio frequency strategy, or Person is not responding to audio system request, forces with equal volume and other player audio mixings.For example: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 impossible to reach the purpose of prominent navigation sound.
3rd, APP is depended on to realize while playing, the player of mutual exclusion cannot be realized playing simultaneously.
4th, high cost.Vehicular platform is increasing hardware to realize that navigation sound and multimedia sound increased into by way of coexisting This.
The content of the invention
This application provides a kind of audio frequency to mutual exclusion realizes the method played simultaneously, to solve the sound of android terminal mutual exclusion The problem that frequency cannot be played, improves experience when user's Multi-audio-frequency is interacted.
This application discloses a kind of audio frequency to mutual exclusion realizes the method played simultaneously, android terminal is applied to, including:
A, increase audio types STREAM_FORCE_MIX, in audio priory level strategy STREAM_FORCE_MIX is increased The audio frequency strategy of type;
B, determined according to the selection of user audio mixing strengthen application program, preserve audio mixing strengthen application program list;Wherein, It is to need the application program with media sound audio mixing that audio mixing strengthens application program;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 should With program in the list that preserved audio mixing strengthens application program, then the type of the voice data is revised as into STREAM_ FORCE_MIX;
When D, application requests audio frequency strategy, judge whether bag name is empty, be not space-time in bag name, obtain calling process Number, and then bag name is obtained, and judge that data base's audio mixing strengthens with the presence or absence of the record of the bag name in application program table, if deposited , then audio types are revised as into STREAM_FORCE_MIX, apply for audio frequency strategy;
E, strengthen priority policy according to the audio mixing for arranging to the voice data of the application program and media player Voice data carries out playing simultaneously, wherein, according to set volume management strategy media volume is progressively decayed with it is extensive It is multiple.
Preferably, in the D, when application requests audio frequency strategy, further including:Judge that whether request type is STREAM_MUSIC, if STREAM_MUSIC, then continues executing with and judges whether bag name is empty operation.
Preferably, the B includes:
All installation kits in traversal Android system, in retrieving its PackageInfo PackageInfo.requestedPermissions information;
Whether traversal requestedPermissions information includes SD card write permission;
The PackageInfo of application SD card write permission is preserved, including:Bag name, title and ICON;
In the result that interface display traversal is obtained, browse for user, arrange, and determined according to the selection of user therein mixed Sound strengthens application program.
Preferably, the volume management strategy is:
Wherein:
0 grade, represent that audio mixing strengthens application program with media sound with identical volume audio mixing;
1 grade, media sound reduces by 20% when representing audio mixing;
2 grades, media sound reduces by 40% when representing audio mixing;
3 grades, media sound reduces by 60% when representing audio mixing;
4 grades, media sound reduces by 80% when representing audio mixing;
5 grades, media sound volume is 0 when representing audio mixing.
Preferably, the audio mixing strengthens priority policy being:
Preferably, media volume is progressively decayed according to set volume management strategy including with recovery:
When audio mixing strengthens application program strategy success, and when commencing play out, current media volume is preserved, as media Volume initial value;
Damped expoential in the volume management strategy that inquiry is arranged, and calculate and decline according to " damped expoential × media volume " Media volume after subtracting;
Media volume is progressively adjusted to the media volume after calculated decay;
Terminate when audio mixing strengthens application program broadcasting, during release audio frequency strategy, progressively media volume is adjusted to media sound Amount initial value.
As seen from the above technical solution, it is full this application discloses a kind of audio frequency to mutual exclusion realizes the method played simultaneously Need while hearing the demand of two kinds or two or more sound under foot some scenes.For example more typical uses navigation (such as Baidu's navigation, Kai Lide navigation) when, the problem of music is listened, in complex road condition, music is frequently navigated voice broadcast and interrupts, Music cannot continuously be appreciated.By the present invention, user can arrange navigation application strengthens application program for audio mixing, can also arrange Media sound pad value is clear, bright to ensure prior navigation sound, is unlikely to miss important traffic information.
The present invention does not rely on the realization of third party app, it is not necessary to increase hardware cost, it is only necessary to update audio system just Can realize simultaneously playing the application program that script mutual exclusion can not coexist broadcasting, more rich, more friendly user can be brought Experience, lifts terminal differential competition advantage.
Description of the drawings
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 provided with audio mixing assistant APP of the present invention;
Fig. 3 strengthens application program and arranges interface schematic diagram for the preferable audio mixing of the present invention one;
Fig. 4 arranges interface schematic diagram for the preferable media sound decay 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 frequency strategy of the invention;
Fig. 7 is the preferable media sound decay of the present invention one and recovery handling process schematic diagram.
Specific embodiment
Purpose, technical scheme and advantage to make the application becomes more apparent, and develop simultaneously referring to the drawings embodiment, right The application is described in further detail.
The invention discloses a kind of android terminal audio system improved method, the method is carried out on the basis of existing technology Following improvement:
1st, new audio types " STREAM_FORCE_MIX " are increased, with independently of the phonetic type such as " STREAM_MUSIC " Carry out volume and audio frequency tactical management.
2nd, audio priory level strategy is redesigned, increases the audio frequency strategy of " STREAM_FORCE_MIX " type so that its Coexist with the audio types such as " STREAM_MUSIC ", mutually do not interrupt.
3rd, volume management strategy is designed, when " STREAM_FORCE_MIX " type player application audio frequency strategy, gradually The volume of related audio type players such as " STREAM_MUSIC " is reduced to setting value;When " STREAM_FORCE_MIX " type During player release audio frequency strategy, gradually recover the volume of related audio type players such as " STREAM_MUSIC ".Make it possible to Highlight the sound that prior " STREAM_FORCE_MIX " type player is broadcasted.
4th, audio mixing assistant APP is designed, proposes and realize that " audio mixing enhancing " application program is recognized and managed by bag name.With Family, should by audio mixing assistant APP records by selecting and arranging the application program for needing support and other media player audio mixings With the bag name of program, for audio system Division identification.
5th, Type mapping, in audio system, during application requests audio frequency strategy, by extracting contrast calling process bag The bag list of file names that name is preserved with audio mixing assistant, by the audio request coercion of type of matching " STREAM_FORCE_MIX " class is mapped as Type, independently to carry out volume and tactical management, realizes that the application is played the purpose broadcasted simultaneously by mutual exclusion.
It is in most cases the audio frequency needs of navigation software and music player according to the analysis to existing audio mixing scene Play simultaneously, this two classes application program needs the audio types for playing audio frequency to be usually STREAM_MUSIC, therefore, the application master Refer to for STREAM_MUSIC types to be revised as STREAM_FORCE_MIX types.In below illustrating, with STREAM_ Illustrate as a example by MUSIC types.
Based on above-mentioned improvement, the method that the present invention is provided enables the player of script mutual exclusion while playing, and can According to the setting of user, the sound that emphasis player is broadcasted in prominent audio mixing.The application journey with media sound audio mixing will be needed below Sequence is referred to as " audio mixing enhancing " application program.The frame diagram of the present invention program as shown in figure 1, the module that mainly includes of the framework and its Function is described as follows:
1st, audio mixing assistant APP modules
The major function of the module is as follows:
1) audio mixing strengthen application arrange submodule, for labelling audio mixing strengthen application program, user can by list and/ Or shift knob come be selected as audio mixing strengthen application program application program.
2) media sound decay arranges submodule, preferably, the present invention provides 6 grades of attenuation parameters, there is provided optional to user Media volume decreasing value.
3) data base, for carrying out data preservation, strengthens audio mixing application program list and attenuation parameter is stored in data In storehouse, and inquiry is provided and interface is changed.
2nd, audio frequency framework (Audio Framework) module
1) audio mixing strengthens application identification submodule, is strengthened by the audio mixing for contrasting calling process name and in data base and applies journey Sequence list, judges whether the application program needs to carry out audio mixing enhancing.
2) audio mixing strengthens Type mapping submodule, its function mainly audio mixing is strengthened the audio types of application program from STEAM_MUSIC replaces with STRREAM_MUSIC_MIX.After so processing, generic media sound data flow can be distinguished and " mixed Sound strengthens " type audio data stream, so as to independently carry out audio frequency strategy and volume management.
3) audio frequency right of broadcasting (Audio Focus) priority policy optimization submodule, by designing independent audio types And strategy, realize being coexisted with other media sound audio mixings.
4) distribution of audio mixing volume and regulation submodule, main to realize a kind of strategy, audio mixing for carrying out audio mixing volume process Enhancing is played when interacting with media sound broadcasting audio mixing, the value that media volume is gradually lowered to arrange;Audio mixing strengthens application program At the end of broadcasting, media volume is gradually restored to into initial value.
5) Audio Flinger stereo process submodule, realization distinguished with streamType audio mixing strengthen audio stream and Media audio stream, and arranged according to media volume attenuation, it is overlapped, smooth process.
3rd, audio hardware level of abstraction (Audio Hal) module
The module is used to for the voice data finally given after " audio mixing enhancing " to be streamed to audio driven and equipment.
Below by a preferred embodiment, the enforcement to technical scheme is further elaborated.
First, audio mixing assistant APP is illustrated.
Fig. 2 is the terminal interface schematic diagram for being provided with audio mixing assistant APP of the present invention.The audio mixing assistant APP that the present invention is provided Strengthen the entrance of application program as user management audio mixing, carry out the identification of audio mixing enhancing application program, protect to wrap entitled mark Deposit and arrange.The major function of audio mixing assistant APP includes:Filtration based on the audio frequency play-back application of SD card authority;It is based on The audio mixing of bag name strengthens application program identification, arranges;Media volume attenuation is arranged when audio mixing strengthens;Data base designs and is protected with parameter Deposit.Specific functional modules decomposition description is as follows:
First, audio mixing strengthens application program screening
Android system cannot directly judge whether an application program is multimedia application.The present invention is in analysis After the behavior characteristicss of conventional audio application, propose to filter out possible sound to apply for " SD card write permission " as condition Frequency application program, so as to reduce the scope of user's selection.First, all installation kits in Ergodic Theory, retrieve its PackageInfo In packageInfo.requestedPermissions information;Secondly, traversal requestedPermissions information is It is no comprising SD card write permission (android.permission.WRITE_EXTERNAL_STORAGE), preserve application SD card and write power The PackageInfo of limit, including bag name, title and ICON;Again, contrast the bag name whether be stored in data base's audio mixing strengthen should With in flow sheet;Finally, interface display is carried out in the form of a list, browse for user, arrange.As shown in Figure 3.
2nd, based on the identification of bag name, setting and storage
In the present invention, database table forcemix is increased in Settings, comprising _ id (INTEGER) and mix_pkg (TEXT) two fields, mix_pkg is used to record the bag name of audio mixing enhancing application program, such as Baidu's navigation (com.baidu.BaiduMap), when it is that audio mixing strengthens application program that user arranges application program, by the bag of the application program Name inserts (insert) in forcemix tables as mix_pkg field values, and refreshes interface audio mixing enhancing application description, switch State.When equally application program being set to into non-audio mixing enhancing application program, corresponding deletion (delete) audio mixing strengthens to be applied Field mix_pkg is equal to the record of this bag name in flow sheet forcemix, and refreshes UI interfaces.
3rd, media sound decay is arranged
When audio mixing strengthens application program with 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 5 grades of adjustable volumes, and as shown in table 1, user can be therefrom Voluntarily select, as shown in Figure 4.When the application program for participating in audio mixing belongs to audio mixing strengthens application program, with identical volume Carry out audio mixing.
Damped expoential Media volume Audio mixing strengthens volume
0 100% 100%
1 80% 100%
2 60% 100%
3 40% 100%
4 20% 100%
5 0% 100%
The media volume attenuation of table 1
0 grade, represent that audio mixing strengthens application program with media sound with identical volume audio mixing;
1 grade, media sound reduces by 20% when representing audio mixing;
2 grades, media sound reduces by 40% when representing audio mixing;
3 grades, media sound reduces by 60% when representing audio mixing;
4 grades, media sound reduces by 80% when representing audio mixing;
5 grades, media sound volume is 0 when representing audio mixing, quiet.
Secondly, strengthen type to audio mixing proposed by the present invention to illustrate.
First, type is increased newly:STREAM_FORCE_MIX
The present invention proposes that increasing audio mixing in Android audio systems strengthens type:STREAM_FORCE_MIX, to solve The audio frequency of mutual exclusion plays the problem that cannot be played simultaneously.It is as follows to increase in AudioSystem:
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 It is 7 and 15 that adduction arranges default volume and max volume.
2nd, AudioStreamType mappings in MediaPlayer/AudioTrack
According to AudioFlinger software Mixed Audio Algorithm principles, voice data carries out volume according to stream (stream) type Superposition, it is therefore desirable to which distinguishing audio mixing when audio stream is created strengthens voice data and generic media sound data.Android systems Audio stream plays entrance has two in system:One is the MediaPlayer played using Android multimedia frameworks, another It is AudioTrack that self-defined player is used.The present embodiment passes through to obtain calling process title, and in matching database Audio mixing strengthens application program table to determine whether audio mixing enhancing audio stream, and then carrying out audio mixing strengthens Type mapping.Flow process is such as Shown in Fig. 5, including:
Step 501:Select the entrance of the type for distinguishing audio stream.Wherein, MediaPlayer distinguishes " audio mixing enhancing " audio frequency The optimum entrance of data is function setAudioStreamType (int streamType);And AudioTrack distinguishes " audio mixing The optimum entrance of enhancing " voice data stream is then constructed fuction AudioTrack (int streamType).
Step 502:GetCallingPid is called, calling process number is obtained.
Step 503:Acquisition process title.
Step 504:Inquiry data base audio mixing strengthens application program table.
Step 505:Judge that audio mixing strengthens whether comprising corresponding record in application program table, if it is not, skipping, tie Beam this flow process, otherwise, continues executing with step 506.
Step 506:Audio types are replaced with into STREAM_FORCE_MIX from STREAM_MUSIC.
3rd, in AudioService STREAM_MUSIC to STREAM_FORCE_MIX mapping
Strengthen application program to distinguish audio mixing, the present embodiment is arranged by foregoing audio mixing assistant APP by user Application program is that audio mixing strengthens application program, and records bag name, and audio framework receive request right of broadcasting (requestAudioFocus) when calling, mapping audio mixing by bag name contrast identification strengthens Application Type, and flow process is such as Shown in Fig. 6, including:
Step 601:Application call requestAudioFocus (stream_type), asks right of broadcasting.
Step 602:Judge whether request type is STREAM_MUSIC, i.e.,:Judge stream_type=STREAM_ MUSICIf it is, step 603 is continued executing with, and otherwise, process ends.
Step 603:Judge whether bag name is sky, i.e.,:Judge callingPackageName=nullIf wrapped entitled Sky, then continue executing with step 606, if bag name is not sky, continue executing with step 604.
Step 604:Calling process number is obtained with function getCallingPid ().
Step 605:Bag name is obtained according to process number.It is used for realizing by two steps:Inquiry first is currently running All application informations (being inquired about by calling ActivityManager.getRunningAppProcesses), then According to returning result, the label information of the application program being currently running is inquired about (by call function PackageManager.getApplicationLabel is inquired about), its bag name is finally found out from label information.
Step 606:Inquiry data base audio mixing strengthens the record of this bag name in 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, the record that whether there is this bag name in table is judged, i.e.,:(c.moveToFirst ())=nullIf there is the record of this bag name in table, execution step 608, otherwise, process ends.
Step 608:STREAM_MUSIC is replaced with into STREAM_FORCE_MIX, applies for audio frequency strategy.
4th, STREAM_FORCE_MIX priority policies
Table 2 strengthens priority policy table for the audio mixing of the present embodiment.
The audio mixing of table 2 strengthens Policy Table
Finally, the decay to media volume in audio mixing of the present invention enhancing is illustrated with recovery.
The principle of AudioFlinger software audio mixings is taken advantage of according to the type volume of each Track and the volume of left and right acoustic channels Product realizes audio mixing to be overlapped, and the computing formula of wherein volume is as follows:
Float typeVolume=mStreamTypes [track->streamType()].volume;// type volume
Float v=masterVolume*typeVolume;
Vlf*=v;// L channel volume
Vrf*=v;// R channel volume
The volume of the left and right acoustic channels of the uncontrollable application player of system, therefore the present invention is by control TypeVolume strengthens volume realizing during audio mixing media sound less than audio mixing, to reach the purpose for giving top priority to what is the most important.I.e.:
mStreamTypes[STREAM_FORCE_MIX].volume>mStreamTypes[STREAM_MUSIC] .volume
Audio mixing strengthen interaction when audio system handling process as shown in fig. 7, comprises:
Step 701:Audio mixing strengthens application program strategy success, and commences play out.
Step 702:Preserve current media volume.
Step 703:The damped expoential arranged in inquiry audio mixing assistant, and calculated according to " damped expoential × media volume " Media volume after decay.
Step 704:SetStreamVolume (music_new) is called, volume of music is gradually adjusted to pad value, wherein, Parameter music_new is the media volume after the decay for calculating.
Step 705:Audio mixing strengthens to play and terminates to discharge audio frequency strategy.
Step 706:Call setStreamVolume (music_old), progressive recovery media volume to initial value, wherein, Music_old is media volume initial value.
The preferred embodiment of the application is the foregoing is only, not to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of the application protection.

Claims (6)

1. a kind of audio frequency to mutual exclusion realizes the method played simultaneously, is applied to android terminal, it is characterised in that include:
A, increase audio types STREAM_FORCE_MIX, increase STREAM_FORCE_MIX types in audio priory level strategy Audio frequency strategy;
B, determined according to the selection of user audio mixing strengthen application program, preserve audio mixing strengthen application program list;Wherein, audio mixing It is to need the application program with media sound audio mixing to strengthen application program;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 the application journey The type of the voice data is then revised as STREAM_FORCE_ by sequence in the list that preserved audio mixing strengthens application program MIX;
When D, application requests audio frequency strategy, judge whether bag name is empty, be not space-time in bag name, obtain calling process number, And then bag name is obtained, and judge that data base's audio mixing strengthens with the presence or absence of the record of the bag name in application program table, if it does, Then audio types are revised as into STREAM_FORCE_MIX, apply for audio frequency strategy;
E, according to arrange audio mixing strengthen priority policy to the voice data of the application program and the audio frequency of media player Data carry out playing simultaneously, wherein, according to set volume management strategy media volume is progressively decayed and recovered.
2. method according to claim 1, it is characterised in that:
In the D, when application requests audio frequency strategy, further include:Judge whether request type is STREAM_ MUSIC, if STREAM_MUSIC, then continues executing with and judges whether bag name is empty operation.
3. method according to claim 1 and 2, it is characterised in that the B includes:
All installation kits in traversal Android system, in retrieving its PackageInfo PackageInfo.requestedPermissions information;
Whether traversal requestedPermissions information includes SD card write permission;
The PackageInfo of application SD card write permission is preserved, including:Bag name, title and ICON;
In the result that interface display traversal is obtained, browse for user, arrange, and determine that audio mixing therein increases according to the selection of user Strong application program.
4. method according to claim 1 and 2, it is characterised in that the volume management strategy is:
Damped expoential Media volume Audio mixing strengthens volume 0 100% 100% 1 80% 100% 2 60% 100% 3 40% 100% 4 20% 100% 5 0% 100%
Wherein:
0 grade, represent that audio mixing strengthens application program with media sound with identical volume audio mixing;
1 grade, media sound reduces by 20% when representing audio mixing;
2 grades, media sound reduces by 40% when representing audio mixing;
3 grades, media sound reduces by 60% when representing audio mixing;
4 grades, media sound reduces by 80% when representing audio mixing;
5 grades, media sound volume is 0 when representing audio mixing.
5. method according to claim 1 and 2, it is characterised in that the audio mixing strengthens priority policy and is:
6. method according to claim 4, it is characterised in that media volume is entered according to set volume management strategy Progressively decay includes row with recovery:
When audio mixing strengthens application program strategy success, and when commencing play out, current media volume is preserved, as media volume Initial value;
Damped expoential in the volume management strategy that inquiry is arranged, and calculated after decay according to " damped expoential × media volume " Media volume;
Media volume is progressively adjusted to the media volume after calculated decay;
Terminate when audio mixing strengthens application program broadcasting, during release audio frequency strategy, at the beginning of progressively media volume is adjusted to media volume 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 true CN106648534A (en) 2017-05-10
CN106648534B 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)

Cited By (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
CN110032357A (en) * 2019-04-09 2019-07-19 青岛海信电器股份有限公司 The output method and display equipment of the audio data of application program
CN110196708A (en) * 2019-04-25 2019-09-03 深圳市布谷鸟科技有限公司 A kind of audio frequency controller method applied to Android in-vehicle multi-media system
CN111835922A (en) * 2019-04-19 2020-10-27 海能达通信股份有限公司 Multi-channel call voice control method and device
CN112533056A (en) * 2019-09-17 2021-03-19 海信视像科技股份有限公司 Display device and sound reproduction method
CN112965685A (en) * 2021-02-04 2021-06-15 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium
CN113423006A (en) * 2021-05-31 2021-09-21 惠州华阳通用电子有限公司 Multi-audio-stream audio mixing playing method and system based on main and auxiliary sound channels
US11288033B2 (en) 2019-04-09 2022-03-29 Hisense Visual Technology Co., Ltd. Method for outputting audio data of applications and display device
WO2022116709A1 (en) * 2020-12-04 2022-06-09 Oppo广东移动通信有限公司 Audio playback method, apparatus, head-mounted display device, and storage medium
CN114979347A (en) * 2021-02-21 2022-08-30 荣耀终端有限公司 Method for playing audio and electronic equipment

Citations (5)

* 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
CN102117221A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Audio frequency application conflict management method and manager
US20110219307A1 (en) * 2010-03-02 2011-09-08 Nokia Corporation Method and apparatus for providing media mixing based on user interactions
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

Patent Citations (5)

* 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
CN102117221A (en) * 2009-12-31 2011-07-06 上海博泰悦臻电子设备制造有限公司 Audio frequency application conflict management method and manager
US20110219307A1 (en) * 2010-03-02 2011-09-08 Nokia Corporation Method and apparatus for providing media mixing based on user interactions
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

Cited By (18)

* 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
CN110032357A (en) * 2019-04-09 2019-07-19 青岛海信电器股份有限公司 The output method and display equipment of the audio data of application program
WO2020207132A1 (en) * 2019-04-09 2020-10-15 海信视像科技股份有限公司 Output method for audio data of apps 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
CN110196708A (en) * 2019-04-25 2019-09-03 深圳市布谷鸟科技有限公司 A kind of audio frequency controller method applied to Android in-vehicle multi-media system
CN112533056A (en) * 2019-09-17 2021-03-19 海信视像科技股份有限公司 Display device and sound reproduction method
CN112533056B (en) * 2019-09-17 2022-10-28 海信视像科技股份有限公司 Display device and sound reproduction method
WO2022116709A1 (en) * 2020-12-04 2022-06-09 Oppo广东移动通信有限公司 Audio playback method, apparatus, head-mounted display device, and storage medium
CN112965685A (en) * 2021-02-04 2021-06-15 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium
CN112965685B (en) * 2021-02-04 2023-08-25 RealMe重庆移动通信有限公司 Audio control method, device, system, terminal equipment and storage medium
CN114979347A (en) * 2021-02-21 2022-08-30 荣耀终端有限公司 Method for playing audio and electronic equipment
CN114979347B (en) * 2021-02-21 2023-05-12 荣耀终端有限公司 Audio playing method, electronic equipment and chip system
CN113423006A (en) * 2021-05-31 2021-09-21 惠州华阳通用电子有限公司 Multi-audio-stream audio mixing playing method and system based on main and auxiliary sound channels
CN113423006B (en) * 2021-05-31 2022-07-15 惠州华阳通用电子有限公司 Multi-audio-stream audio mixing playing method and system based on main and auxiliary sound channels

Also Published As

Publication number Publication date
CN106648534B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN106648534A (en) Method of simultaneously playing mutually-exclusive audios
US7580325B2 (en) Utilizing metadata to improve the access of entertainment content
US7473839B2 (en) Method and system for time-shortening songs
CN101625863B (en) Playback apparatus and display method
WO2003019560A3 (en) Playlist generation, delivery and navigation
WO2003083726A3 (en) System and method for indexing videos based on speaker distinction
EP1382200A2 (en) Method for playing back multimedia data by means of an entertainment device
CN1636240A (en) System for selling a product utilizing audio content identification
CN107977373A (en) A kind of recommendation method of song
CN105808780B (en) Song recognition method and apparatus
CN1383543A (en) Karaoka system
US20090271413A1 (en) Trial listening content distribution system and terminal apparatus
CN107872685A (en) A kind of player method of multi-medium data, device and computer installation
CN105824895A (en) KTV song selection method and system
CN103718243A (en) Enhanced media recordings and playback
KR20010069124A (en) A method of combining multi media files
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
CN109240638A (en) Audio-frequency processing method and device for vehicle
CN101751967B (en) Multimedia file producing and playing method, multimedia file producing device and player
CN115866487A (en) Sound power amplification method and system based on balanced amplification
CN105959746A (en) File generation method and apparatus
CN104284209B (en) The method and apparatus for building mapping database, the method and apparatus of program push
CN104750868A (en) Method and device for establishing multi-media file playlist
CN107301871A (en) A kind of adaptive method for playing music
EP1355310A3 (en) Reproducing method, reproducing apparatus, and data accessing method

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