Virtual audio device and method based on Linux and Android compatible technology

An audio and technical technology, applied in the field of virtual audio devices based on Linux and Android compatible technology, which can solve the problems of hardware access channel interruption and direct access without penetration.

Active Publication Date: 2020-11-13
北京技德系统技术有限公司
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] However, for the Android operating environment compatible with the Linux operating system, since the Android operating environment runs in a container, the Android HAL layer cannot directly call the audio device driver in the Linux kernel through TiniAlsa. The hardware access channel is interrupted, and when the Android application calls the hardware driver in the Linux kernel, it cannot penetrate and directly access

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtual audio device and method based on Linux and Android compatible technology
  • Virtual audio device and method based on Linux and Android compatible technology
  • Virtual audio device and method based on Linux and Android compatible technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] According to an embodiment of the present invention, a virtual audio device based on a technology compatible with Linux and Android is provided. The apparatus may include a virtual audio device unit, a virtual audio interface unit, and an audio session control unit.

[0039] The virtual audio device unit is located in the hardware abstraction layer HAL of the Android operating environment. The first audio operation interface group is implemented in the virtual audio device unit. The first audio operation interface group obtains the user's audio operation on the Android application as the first control data. An audio operation interface group obtains the audio stream data in the Android application as the first audio stream data;

[0040] The first audio operation interface group implements a set of audio I / O interfaces, and abstracts the I / O of all audio devices mainly to three functions of playback, recording and sound input, and these three functions correspond to thr...

Embodiment 2

[0081] According to the embodiment of the present invention, a method embodiment of virtual audio based on Linux and Android compatible technology is also provided.

[0082] figure 1 It shows the principle of a virtual audio device and method based on Linux and Android compatible technology provided by the embodiment of the present invention, such as figure 1 As shown, the method may include the following steps:

[0083] Step S001: Run the Android operating environment provided by the first system container in the Linux operating system;

[0084] The user opens the Android application on the Linux desktop, and performs audio playback related operations in the application. At this time, the Android system process will call the built-in AudioFlinger interface to output the audio stream and audio control to the Linux kernel;

[0085] Step S002: Obtain the user's audio operation on the Android application as the first control data, and obtain the audio stream data in the Andro...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a virtual audio device and method based on the Linux and Android compatible technology, and belongs to the field of computer basic software. The method comprises the steps that a virtual audio device unit is achieved on the Android side of a container, and an Android application completes audio input, playing and recording by calling an interface providedby the virtual audio device unit; a virtual audio interface unit is achieved on the Linux side of the container, and hardware audio equipment is controlled by calling a Linux audio equipment driver; an audio session control unit is achieved on the Linux side of the container, and bidirectional transmission of data on the two sides of the container is achieved by establishing a Socket monitoring thread to penetrate through the container; according to the method and the device, the problem that the Android application which is compatibly operated in the Linux system calls the Linux physical audio equipment by a container technology is solved, and related functions of sound playing, reading, recording and the like are achieved.

Description

technical field [0001] The invention belongs to the field of computer basic software, in particular to a virtual audio device and method based on Linux and Android compatible technology. Background technique [0002] With the service termination of Windows 7, the Linux system has become more popular. For the Android operating environment compatible with running on the Linux system, the real physical audio equipment is controlled in the Linux kernel, so it is necessary to solve the problem of Android applications Problems with the use of physical audio equipment. [0003] For audio device access, the Linux operating system and the Android operating system have their own access methods, and the following is a brief description of the audio device access of these two systems. [0004] One: The call process for audio equipment in the Linux operating system [0005] From Figure 4 It can be seen that in the Linux operating system, Linux applications cannot directly operate on h...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/16G06F9/455G06F13/38
CPCG06F3/162G06F9/45558G06F13/382G06F2009/4557G06F2009/45595
Inventor姚宏亮周剑张耀斌
Owner北京技德系统技术有限公司