Audio driver sound management method

A management method and audio-driven technology, applied in the direction of multi-program devices, etc., can solve the problems of large data volume, inconvenient transplantation, complex service program implementation, etc., and achieve the effect of simple program transplantation and avoiding inter-process communication

Inactive Publication Date: 2009-07-08
ZTE CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is applied to the embedded operating systems of terminals such as mobile phones and PDAs, and there are two obvious disadvantages: (1) the service program is complicated to implement, and multiple situations must be considered: simple ring tones can directly use the file name as the message parameter , the service program calls the codec to decompress, and directly operates the sound card to play; for MP3 music, since the MP3 player has already called the codec to decompress, the service program only needs to write the unpacked data directly to the sound card for playback, but it needs to consider how the data is played from the media It is a problem to pass the device to the service program, because it is two different processes and the amount of data that needs to be transmitted is very large, so a complex inter-process communication and synchronization mechanism and a large amount of data transmission mechanism between processes are required; (2) this method does not It is easy to transplant other existing mobile phone programs. Since other existing mobile phone programs directly operate the sound card to play sound, they will conflict with the system and bring great trouble to the transplantation.

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 driver sound management method
  • Audio driver sound management method
  • Audio driver sound management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] First, the design idea of ​​the present invention is described: all sounds of the entire system are managed uniformly at the audio driver layer, and different applications or processes directly call the audio driver to realize the synchronization and coordination of multiple sounds without interfering with each other.

[0034] Secondly, illustrate the key of the present invention: increase the management module inside the audio driver program, mainly to increase a playlist, store and record the sound being played, the structure is as Figure 4As shown, several sound records are included, and each record is provided with a priority item, a simultaneous playback attribute item, and a sound data buffer unit item, and the sound data buffer unit item corresponds to the DMA data buffer created by the audio driver program, and the playlist is also Other items can be included, such as allow pause items, and so on.

[0035] The audio driver manages sound playback, such as Figu...

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 relates to a sound management method of an audio driver program, which adopts a play buffer and adds a play list, including parallel steps: A) using the play list to record in real time various current sound data written by an application program and their priorities; B) moving the corresponding sound data to the play buffer in the descending order of the priority; C) transmitting the sound data to the audio device through the play buffer. In this method, a playlist for recording multiple parallel sound data is added inside the audio driver, and high-priority sound data is selected for playback. Further, sound data that needs to be played at the same time can also be selected to be mixed with the sound data before playback, avoiding single sound The complex inter-process communication, synchronization and large amount of data transmission caused by service program management, together with the use of extended general standard interface functions, make program transplantation relatively simple and fully meet the sound playback management requirements of mobile phones.

Description

technical field [0001] The invention relates to a sound management method of an embedded operating system, in particular to a sound management method of an audio driver in a wireless mobile terminal. Background technique [0002] At present, the most typical embedded operating systems on mobile phones and PDA terminals are Linux and WinCE. Taking Linux as an example, the general application program plays sound, and usually calls the sound interface functions such as open(), ioctl(), write(), read(), close() in the Linux operating system, and the audio driver operates the audio device to complete the specific play. [0003] When the audio driver is called by the application, it can create a DMA data buffer in memory, such as figure 1 , including several buffer units. Play sound methods for existing audio drivers such as figure 2 , including: 210) start; 220) judge whether there is sound data in the DMA data buffer; yes, proceed to step 230); no, enter the next step; 221)...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/46
Inventor 刘亮
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products