CN107977188A - A kind of method for closing panorama audio - Google Patents
A kind of method for closing panorama audio Download PDFInfo
- Publication number
- CN107977188A CN107977188A CN201711299456.2A CN201711299456A CN107977188A CN 107977188 A CN107977188 A CN 107977188A CN 201711299456 A CN201711299456 A CN 201711299456A CN 107977188 A CN107977188 A CN 107977188A
- Authority
- CN
- China
- Prior art keywords
- audio
- closing
- thread
- panorama
- interface
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of method for closing panorama audio, include the following steps:Create new thread thread, create audio management class, it is named as ModMgr.getAudioEffectMgr, in audio management class ModMgr.getAudioEffectMgr, the application programming interface api for opening and closing panorama audio is called, the operation for closing panorama audio is performed in new thread thread, the operation for closing ripple animation is performed in the main thread of interface, two thread asynchronous operations, do not block mutually.The present invention, the algorithm that common audio is switched to for panorama audio optimize, and by the way of asynchronous closing interface, eliminate the interim card of ripple animation, improve interface fluency, give user more preferable usage experience.
Description
Technical field
The present invention relates to panorama sound effect technology field, specifically a kind of method for closing panorama audio.
Background technology
Panorama audio, also referred to as panorama is around audio, when user is switched to common audio by panorama audio, interface harmony
Sound can interim card, different interim card delays is had on different mobile phones, have less than 1 second, some is more than 1 second.Such as:
When user clicks X button, it is desirable to be switched to common audio by panorama audio, interface main thread can wait panorama sound
Effect empty caching, that is, play caching data could perform closing ripple animation operation, at this time, the feelings that user sees
Condition is then that the ripple animation interim card at interface is motionless, and after panorama audio empties caching, ripple animation is just closed, so
Experience is very bad.
The content of the invention
For defect existing in the prior art, it is an object of the invention to provide a kind of method for closing panorama audio,
The algorithm that common audio is switched to for panorama audio optimizes, and by the way of asynchronous closing interface, eliminates ripple animation
Interim card, improve interface fluency, give user more preferable usage experience.
To achieve the above objectives, the present invention adopts the technical scheme that:
A kind of method for closing panorama audio, it is characterised in that include the following steps:
New thread thread is created,
Audio management class ModMgr.getAudioEffectMgr is created,
In audio management class ModMgr.getAudioEffectMgr, the api for opening and closing panorama audio is called,
The operation for closing panorama audio is performed in new thread thread,
The operation for closing ripple animation is performed in the main thread of interface,
Two thread asynchronous operations, do not block mutually.
Based on the above technical solutions, the api for opening and closing panorama audio is set3DsoundEnable,
The api interfaces provide the parameter input of boolean types.
Based on the above technical solutions, parameter value is set as:
True represents to open, and false represents to close.
The method of the present invention for closing panorama audio, the algorithm progress that common audio is switched to for panorama audio are excellent
Change, by the way of asynchronous closing interface, eliminate the interim card of ripple animation, improve interface fluency, preferably used to user
Experience.
Brief description of the drawings
The present invention has drawings described below:
The flow chart of Fig. 1 present invention.
Embodiment
The present invention is described in further detail below in conjunction with attached drawing.
As shown in Figure 1, the method for the present invention for closing panorama audio, includes the following steps:
New thread thread is created,
Audio management class ModMgr.getAudioEffectMgr is created,
In audio management class ModMgr.getAudioEffectMgr, the api for opening and closing panorama audio is called,
The operation for closing panorama audio is performed in new thread thread, i.e.,:In new thread thread, audio management class is called
ModMgr.getAudioEffectMgr, performs the api for opening and closing panorama audio,
The operation for closing ripple animation is performed in the main thread of interface,
Two thread asynchronous operations, do not block mutually.
In such scheme, by closing panorama audio in single new thread thread, reach and do not blocked interface master
The purpose of thread, drawing interface can continuously draw without interim card in the main thread of interface, it appears that moment has been shut off entirely
Scape audio, experience are good.
Based on the above technical solutions, the api for opening and closing panorama audio is set3DsoundEnable,
The api interfaces provide the parameter input of boolean types, and parameter value is set as:
True represents to open, and false represents to close.
The content not being described in detail in this specification belongs to the prior art known to professional and technical personnel in the field.
Claims (3)
- A kind of 1. method for closing panorama audio, it is characterised in that include the following steps:New thread thread is created,Audio management class is created, is named as ModMgr.getAudioEffectMgr,In audio management class ModMgr.getAudioEffectMgr, the application program for opening and closing panorama audio is called to compile Journey interface api,The operation for closing panorama audio is performed in new thread thread,The operation for closing ripple animation is performed in the main thread of interface,Two thread asynchronous operations, do not block mutually.
- 2. the method for panorama audio is closed as claimed in claim 1, it is characterised in that:The opening and closing panorama audio Application programming interface api is to set 3D audio interface set3DsoundEnable, application programming interface api interfaces The parameter input of boolean's boolean types is provided.
- 3. the method for panorama audio is closed as claimed in claim 2, it is characterised in that:Parameter value is set as:Value represents to open for true, and value represents to close for false.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711299456.2A CN107977188B (en) | 2017-12-08 | 2017-12-08 | Method for closing panoramic sound effect |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711299456.2A CN107977188B (en) | 2017-12-08 | 2017-12-08 | Method for closing panoramic sound effect |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107977188A true CN107977188A (en) | 2018-05-01 |
CN107977188B CN107977188B (en) | 2021-07-30 |
Family
ID=62009749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711299456.2A Active CN107977188B (en) | 2017-12-08 | 2017-12-08 | Method for closing panoramic sound effect |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107977188B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635160A (en) * | 2009-06-17 | 2010-01-27 | 深圳市美赛达科技有限公司 | Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device |
CN106028254A (en) * | 2016-05-05 | 2016-10-12 | 惠州Tcl移动通信有限公司 | Mobile terminal and audio-left and right channels automatic switching method of mobile terminal |
CN106408646A (en) * | 2015-07-27 | 2017-02-15 | 常州市武进区半导体照明应用技术研究院 | Instant light color rendering system and method used for play scenes |
CN107305492A (en) * | 2016-04-18 | 2017-10-31 | 广东石油化工学院 | Gse2D game engines |
CN107347173A (en) * | 2017-06-01 | 2017-11-14 | 华南理工大学 | The implementation method of multi-path surround sound dynamic ears playback system based on mobile phone |
-
2017
- 2017-12-08 CN CN201711299456.2A patent/CN107977188B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635160A (en) * | 2009-06-17 | 2010-01-27 | 深圳市美赛达科技有限公司 | Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device |
CN106408646A (en) * | 2015-07-27 | 2017-02-15 | 常州市武进区半导体照明应用技术研究院 | Instant light color rendering system and method used for play scenes |
CN107305492A (en) * | 2016-04-18 | 2017-10-31 | 广东石油化工学院 | Gse2D game engines |
CN106028254A (en) * | 2016-05-05 | 2016-10-12 | 惠州Tcl移动通信有限公司 | Mobile terminal and audio-left and right channels automatic switching method of mobile terminal |
CN107347173A (en) * | 2017-06-01 | 2017-11-14 | 华南理工大学 | The implementation method of multi-path surround sound dynamic ears playback system based on mobile phone |
Non-Patent Citations (1)
Title |
---|
HTTP://3G.DONEWS.COM/NEWS/DONEWS_DETAIL/2956429.HTML: "酷我全景环绕音效", 《HTTP://3G.DONEWS.COM/NEWS/DONEWS_DETAIL/2956429.HTML》 * |
Also Published As
Publication number | Publication date |
---|---|
CN107977188B (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104952033B (en) | System conformance in the classification of distributive image process device | |
US9760968B2 (en) | Reduction of graphical processing through coverage testing | |
CN108550107A (en) | A kind of image processing method, picture processing unit and mobile terminal | |
JP2018536952A (en) | Method and apparatus for controlling a smart device and computer storage medium | |
CN111063008A (en) | Image processing method, device, equipment and storage medium | |
CN104780459A (en) | Method and electronic equipment for loading effects in instant video | |
CN109361949A (en) | Method for processing video frequency, device, electronic equipment and storage medium | |
CN111225232B (en) | Video-based sticker animation engine, realization method, server and medium | |
CN105302569B (en) | A kind of method and apparatus for generating special-shaped window | |
CN106982249A (en) | Multithreading segmentation method for down loading, equipment, client device and electronic equipment | |
CN105208221A (en) | Method and device for automatically adjusting communication voice | |
US20140168240A1 (en) | Methods and systems for overriding graphics commands | |
CN110480633A (en) | A kind of method, apparatus and storage medium controlling equipment | |
CN104978118B (en) | A kind of graphical interface of user display methods, device and terminal device | |
CN107977188A (en) | A kind of method for closing panorama audio | |
CN109960485A (en) | A kind of audio adjustment method, audio debugging apparatus and terminal device | |
CN107959845A (en) | The method, apparatus of view data transmission, client terminal device and wear display device | |
CN104331289A (en) | Method and device for applying plug-in design application to flow processing | |
CN106371732A (en) | Method for controlling electronic curtain and electronic terminal | |
WO2014099301A1 (en) | Methods and systems for overriding graphics commands | |
CN104461615B (en) | A kind of processing method and electronic equipment of skin resource | |
CN116206006A (en) | Card style direct illumination effect rendering method based on UE rendering engine | |
CN109657139A (en) | Analogy method, device and the equipment that network event is propagated | |
CN105681157B (en) | Long switching performance reminding method and device based on instant messaging | |
CN105487764B (en) | A kind of man-machine interaction method and device based on shortcut menu |
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 |