Movatterモバイル変換


[0]ホーム

URL:


CN105184192A - Audio data processing method and apparatus for dual operation system - Google Patents

Audio data processing method and apparatus for dual operation system
Download PDF

Info

Publication number
CN105184192A
CN105184192ACN201510528690.2ACN201510528690ACN105184192ACN 105184192 ACN105184192 ACN 105184192ACN 201510528690 ACN201510528690 ACN 201510528690ACN 105184192 ACN105184192 ACN 105184192A
Authority
CN
China
Prior art keywords
high performance
performance system
voice data
audio
audio hardware
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.)
Pending
Application number
CN201510528690.2A
Other languages
Chinese (zh)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co LtdfiledCriticalYulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510528690.2ApriorityCriticalpatent/CN105184192A/en
Publication of CN105184192ApublicationCriticalpatent/CN105184192A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention discloses an audio data processing method and apparatus for a dual operation system. The method comprises: in a high-performance system and a low-performance system sharing audio hardware, setting an access authority to the audio hardware for the high-performance system; when detecting that the low-performance system outputs audio data, sending the audio data to the high-performance system; and controlling the high-performance system to output the audio data to the audio hardware. The dual operation system of present invention shares the audio hardware; and the access authority to the audio hardware is set for the high-performance system, and when the low-performance system needs to use the audio hardware, audio data are sent to the audio hardware through the high-performance system. According to the audio data processing method and apparatus for the dual operation system, the number and the cost of hardware are reduced. Moreover, as the audio data are processed by the high-performance system, the processing efficiency of the audio data can be improved.

Description

A kind of audio data processing method of dual operating systems and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of audio data processing method and device of dual operating systems.
Background technology
At present, mobile terminal can run two operating systems, although, the mobile terminal of dual operating systems can improve data security, but, compared to traditional single operating system mobile terminal, in order to run dual operating systems in the terminal, avoid two operating systems to access same hardware to clash simultaneously, need, for each operating system arranges corresponding hardware, to improve the hardware cost of mobile terminal.
Summary of the invention
Fundamental purpose of the present invention is the audio data processing method and the device that provide a kind of dual operating systems, to solve the problem that in prior art, the hardware cost of dual operating systems is high.
For above-mentioned technical matters, the present invention solves by the following technical programs.
The invention provides a kind of audio data processing method of dual operating systems, comprising: in the high performance system and low performance systems of sharing audio hardware, for described high performance system arranges the access rights to described audio hardware; When described low performance systems outputting audio data being detected, described voice data is sent to described high performance system; Control described high performance system and described voice data is exported to described audio hardware.
Wherein, described voice data is sent to described high performance system, comprises: by described voice data by web socket socket, be sent to described high performance system.
Wherein, described voice data is sent to described high performance system, comprises: the described voice data of decoding without described low performance systems is sent to described high performance system.
Wherein, control described high performance system and described voice data is exported to described audio hardware, comprising: control described high performance system and to decode described voice data; Control described high performance system and decoded described voice data is exported to described audio hardware.
Wherein, control described high performance system and described voice data is exported to described audio hardware, comprising: control described high performance system, by audio hardware level of abstraction Hal, described voice data is exported to described audio hardware.
Present invention also offers a kind of audio-frequency data processing device of dual operating systems, comprising: module is set, in the high performance system and low performance systems of sharing audio hardware, for described high performance system arranges the access rights to described audio hardware; Sending module, for when described low performance systems outputting audio data being detected, is sent to described high performance system by described voice data; Control module, exports to described audio hardware for controlling described high performance system by described voice data.
Wherein, described sending module is used for: by described voice data by web socket socket, be sent to described high performance system.
Wherein, described sending module is used for: the described voice data of decoding without described low performance systems is sent to described high performance system.
Wherein, described control module is used for: control described high performance system and to decode described voice data; Control described high performance system and decoded described voice data is exported to described audio hardware.
Wherein, described control module specifically for: control described high performance system, by audio hardware level of abstraction Hal, described voice data exported to described audio hardware.
Beneficial effect of the present invention is as follows:
Dual operating systems sharing audio hardware of the present invention; For high performance system arranges the access rights to this audio hardware, when low performance systems needs to use audio hardware, voice data is sent to audio hardware by high performance system.By The present invention reduces hardware quantity, can hardware cost be reduced, and, by high performance system processing audio data, the treatment effeciency of voice data can be improved.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the audio data processing method of dual operating systems according to the embodiment of the present invention;
Fig. 2 is the schematic diagram of the audio data processing method of dual operating systems according to the embodiment of the present invention;
Fig. 3 is the structural drawing of the audio-frequency data processing device of dual operating systems according to the embodiment of the present invention.
Embodiment
Main thought of the present invention is, arranges dual operating systems sharing audio hardware in the terminal; According to the performance of operating system, dual operating systems comprises high performance system and low performance systems; For high performance system arranges the access rights to this audio hardware; When low performance systems needs to use audio hardware, voice data is sent to audio hardware by high performance system.By The present invention reduces hardware quantity, can hardware cost be reduced, and, by high performance system processing audio data, the treatment effeciency of voice data can be improved.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
According to embodiments of the invention, provide a kind of audio data processing method of dual operating systems.Fig. 1 is the process flow diagram of the audio data processing method of dual operating systems according to the embodiment of the present invention.
Step S110, in the high performance system and low performance systems of sharing audio hardware, for high performance system arranges the access rights to audio hardware.
Running of mobile terminal dual operating systems, according to the difference of these two operating system performances, can be divided into high performance system and low performance systems.The voice data processing power of high performance system and data transmission capabilities are better than low performance systems.Such as: the system configuration of high performance system higher than the system configuration of low performance systems,
High performance system and low performance systems sharing audio hardware.Audio hardware is such as: audio player (loudspeaker).
In high performance system and low performance systems, high performance system is only set and has access rights to audio hardware, and low performance systems does not possess the access rights of audio hardware, if low performance systems needs to use audio hardware playing audio-fequency data, then need to access audio hardware by high performance system, realize the broadcasting of voice data.By which, the hardware quantity in mobile terminal can be reduced, and by high performance system processing audio data, the treatment effeciency of voice data can be provided.
Step S120, when low performance systems outputting audio data being detected, is sent to high performance system by voice data.
When low performance systems needs to use audio hardware, export the voice data that it needs to play.If detect that low performance systems has voice data to export, then this voice data is sent to high performance system.Further, by voice data by web socket socket, high performance system is sent to.
In one embodiment, voice data in low performance systems is packed data, in order to reduce the time of decoding audio data, reduce the time of low performance systems to high performance system transmitting audio data, shorten the delay that voice data is play, the voice data of decoding without low performance systems can be sent to high performance system.Further, the voice data that can will decode without low performance systems, by web socket socket, is sent to high performance system.
Step S130, controls high performance system and described voice data is exported to audio hardware.
If send to the voice data of high performance system to be packed data, then control high performance system decoding audio data; Control high performance system and decoded voice data is exported to audio hardware.Decoded voice data is pulse code adjustment (PulseCodeModulation, PCM) coding.Because high performance system decoding speed is faster than the decoding speed of low performance systems, so, the present embodiment adopts the mode at high performance system decoding audio data, the data volume that low performance systems transmits to high performance system can be reduced, reduce decoding consuming time, improve decoding efficiency.
Such as: with 2 sound channels, 16, the MP3 data instance of 48KHz, the ratio of compression of MP3 is about 10:1, and namely the low performance systems data needing high performance system to transmit per second are 48000 × 2 × 16/10=153.6Kbps.
After voice data is sent to high performance system, controls high performance system, by audio hardware level of abstraction Hal, voice data is exported to audio hardware.Further, voice data, by system call, is exported to audio hardware by audio hardware level of abstraction Hal.
To the control of high performance system, can realize by performing high performance system configuration.In other words, by system configuration, high performance system is set and receives voice data and will send it to audio hardware, receive the voice data of not decoding and first to its decoding, audio hardware will sent it to.By system configuration, the mode that high performance system receives, sends voice data is set.
Provide a concrete example below and describe the present invention further.Fig. 2 is the schematic diagram of the audio data processing method of dual operating systems according to the embodiment of the present invention.
User clicks and plays music A in the voice applications APP of low performance systems Performance-Low-OS; This voice applications APP is positioned at the application layer of low performance systems Performance-Low-OS.
Low performance systems Performance-Low-OS, by the compacted voice file of music A, is sent to high performance system Performance-High-OS by Socket;
High performance system Performance-High-OS receives this without the compacted voice file of decoding, and in application layer, this compacted voice file is decoded, obtain audio file, by this audio file transmissions to audio frequency Hal layer, by audio frequency Hal by calling the related function of high performance system Performance-Low-OS, as write function, decoded audio file is outputted to audio hardware.Further, audio file is passed to audio hardware and drive in the audio hardware of high performance system Performance-Low-OS inner nuclear layer, then pass to audio hardware by the driving of this audio hardware.
Present invention also offers a kind of audio-frequency data processing device of dual operating systems.Fig. 3 is the structural drawing of the audio-frequency data processing device of dual operating systems according to the embodiment of the present invention.
This device comprises:
Module 310 is set, in the high performance system and low performance systems of sharing audio hardware, for described high performance system arranges the access rights to described audio hardware;
Sending module 320, for when described low performance systems outputting audio data being detected, is sent to described high performance system by described voice data;
Control module 330, exports to described audio hardware for controlling described high performance system by described voice data.
In one embodiment, described sending module 320, for described voice data is passed through web socket socket, is sent to described high performance system.
In another embodiment, described sending module 320 is for being sent to described high performance system by the described voice data of decoding without described low performance systems.Described control module 330 to be decoded described voice data for controlling described high performance system; Control described high performance system and decoded described voice data is exported to described audio hardware.
In another embodiment, described voice data is exported to described audio hardware specifically for controlling described high performance system by audio hardware level of abstraction Hal by described control module 330.
The function of the device described in the present embodiment is described in the embodiment of the method shown in Fig. 1-Fig. 2, therefore not detailed part in the description of the present embodiment, see the related description in previous embodiment, can not repeat at this.
The foregoing is only embodiments of the invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.

Claims (10)

CN201510528690.2A2015-08-262015-08-26Audio data processing method and apparatus for dual operation systemPendingCN105184192A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510528690.2ACN105184192A (en)2015-08-262015-08-26Audio data processing method and apparatus for dual operation system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510528690.2ACN105184192A (en)2015-08-262015-08-26Audio data processing method and apparatus for dual operation system

Publications (1)

Publication NumberPublication Date
CN105184192Atrue CN105184192A (en)2015-12-23

Family

ID=54906265

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510528690.2APendingCN105184192A (en)2015-08-262015-08-26Audio data processing method and apparatus for dual operation system

Country Status (1)

CountryLink
CN (1)CN105184192A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105955693A (en)*2016-04-212016-09-21北京元心科技有限公司Method and device for distributing audio-video resource in multisystem

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1765328A (en)*2004-09-132006-05-03美国西门子医疗解决公司 Communication between co-location operating systems for medical diagnostic ultrasound and other systems
CN101763238A (en)*2008-12-252010-06-30北京联想软件有限公司Method for improving audio playing quality, audio data acquisition method and audio data acquisition system
CN101847105A (en)*2009-03-262010-09-29联想(北京)有限公司Computer and internal memory sharing method of a plurality of operation systems
CN102981887A (en)*2011-09-062013-03-20联想(北京)有限公司Data processing method and electronic device
US20130086298A1 (en)*2011-10-042013-04-04International Business Machines CorporationLive Logical Partition Migration with Stateful Offload Connections Using Context Extraction and Insertion
CN104216777A (en)*2014-08-292014-12-17宇龙计算机通信科技(深圳)有限公司Double-system electronic device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1765328A (en)*2004-09-132006-05-03美国西门子医疗解决公司 Communication between co-location operating systems for medical diagnostic ultrasound and other systems
CN101763238A (en)*2008-12-252010-06-30北京联想软件有限公司Method for improving audio playing quality, audio data acquisition method and audio data acquisition system
CN101847105A (en)*2009-03-262010-09-29联想(北京)有限公司Computer and internal memory sharing method of a plurality of operation systems
CN102981887A (en)*2011-09-062013-03-20联想(北京)有限公司Data processing method and electronic device
US20130086298A1 (en)*2011-10-042013-04-04International Business Machines CorporationLive Logical Partition Migration with Stateful Offload Connections Using Context Extraction and Insertion
CN104216777A (en)*2014-08-292014-12-17宇龙计算机通信科技(深圳)有限公司Double-system electronic device and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105955693A (en)*2016-04-212016-09-21北京元心科技有限公司Method and device for distributing audio-video resource in multisystem
CN105955693B (en)*2016-04-212019-12-27北京元心科技有限公司Method and device for allocating audio resources in multiple systems

Similar Documents

PublicationPublication DateTitle
KR102569374B1 (en) How to operate a Bluetooth device
US9654076B2 (en)Metadata for ducking control
US8989884B2 (en)Automatic audio configuration based on an audio output device
CN107124674A (en)A kind of audio-frequency inputting method of bluetooth earphone, device and bluetooth earphone
US20070259621A1 (en)Method of generating advanced audio distribution profile (a2dp) source code and chipset using the same
CN109785841B (en)Bluetooth intelligent equipment voice interaction system and method
US20180098151A1 (en)Enhanced multichannel audio interception and redirection for multimedia devices
CN1507593A (en)On-line music data providing system VIA bluetooth headset
CN102667924A (en)Method and apparatus for decoding audio data
US12131741B2 (en)Audio transmission method and electronic device
WO2023051367A1 (en)Decoding method and apparatus, and device, storage medium and computer program product
CN104240738A (en)Sound effect setting method and electronic device
CN102543094A (en)Apparatus and method for generating audio signal having sound enhancement effect
CN108718361A (en) Audio file playback method and wireless listening device
WO2023051370A1 (en)Encoding and decoding methods and apparatus, device, storage medium, and computer program
CN115691514A (en)Coding and decoding method and device for multi-channel signal
CN209642945U (en) An anti-jamming wireless speaker
KR102423827B1 (en)Transmission apparatus and method for controlling the transmission apparatus thereof
CN105184192A (en)Audio data processing method and apparatus for dual operation system
CN107864448B (en) A device for realizing dual-channel communication based on Bluetooth 2.0 or 3.0 and its communication method
WO2019036092A1 (en)Dynamic audio data transfer masking
CN202258375U (en)Dual-chip audio and video player and mobile terminal
CN203912165U (en)Bluetooth loudspeaker box system
CN109286922B (en)Bluetooth prompt tone processing method, system, readable storage medium and Bluetooth device
CN103220410B (en)Frequency modulation (FM) broadcasting sharing method on mobile intelligent devices utilizing Bluetooth

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20151223


[8]ページ先頭

©2009-2025 Movatter.jp