Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Audio stream output method based on rtos

An output method and audio stream technology, applied in the direction of sound input/output, etc., to reduce the project development cycle, facilitate the convenience of expansion and maintenance, and reduce the effect of system coupling

Pending Publication Date: 2020-10-16
安徽芯智科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] How to use an effective method to solve the existing stable output method of audio stream under rtos

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
  • Audio stream output method based on rtos

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail:

[0025] Such as figure 1 As shown, an rtos-based audio stream output method includes the following steps:

[0026] Step 1, the application layer transmits the continuous voice data to the next layer Resample layer by calling the function interface encapsulated by the I / O Device Framework layer, such as open, start, write, etc.;

[0027] Among them, the audio stream is equivalent to the data stream in pcm format; rtos is equivalent to the real-time operating system;

[0028] Furthermore, the I / O Device Framework layer mainly implements the I / O device management interface, so that the voice stream can be written into the registered audio device; some mainstream rtos have a packaged I / O Device Framework layer interface, Such as open, start, write, etc., can be modified and used on the basis of it; note tha...

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 invention discloses an audio stream output method based on rtos, and the method comprises the steps that an application layer calls a function interface packaged by an I / O Device Framework layer,and transmits continuous voice data to a next Resample layer for resampling; and an Audio Framework reads the resampled data and sends the resampled data to a BSP Audio Driver layer, and the BSP AudioDriver finally calls an HW Driver to send out the data through a bottom layer hardware interface. According to the method, the real-time performance and stability of audio stream output based on a real-time operating system are improved, the system coupling is reduced, and through multi-layer design, each layer uses independent task processing so that application layer data can be stably output to the bottom layer hardware interface in real time; therefore, not only is the data processing flow of application development simplified, but also the driver development is more modular, the portability of the whole audio driver is improved, and the convenience of business layer expansion and maintenance is facilitated.

Description

technical field [0001] The invention relates to the technical field of audio stream processing, in particular to an rtos-based audio stream output method. Background technique [0002] Different from linux, android and windows systems, rtos is small in size and simple in function, and is often used in the fields of Internet of Things, industrial control, etc. Technology, new architectures and new applications provide very limited support for it. At present, the audio stream processing method on rtos basically uses the application layer code to directly operate the underlying hardware without any layers. Developers need to understand both the upper layer software and the underlying hardware mechanism. It is difficult to develop and there is no portability In addition, application developers directly operate the underlying hardware, which poses a great risk to the system. Unlike linux, which has the alsa framework to build the output control of the entire audio stream. [0...

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/16
CPCG06F3/16
Inventor 李重王利平权良民程龙
Owner 安徽芯智科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products