Audio driver sound management method

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

Inactive Publication Date: 2008-03-12
ZTE CORP
View PDF0 Cites 22 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

[0034] 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.

[0035] Next, explain the key of the present invention: increase management module inside audio driver program, mainly is to increase a play list, store and record the sound that is playing, structure as shown in Figure 4, comprises some sound records, and each record is provided with priority Item, simultaneous playback attribute item, sound data buffer unit item, the sound data buffer unit item corresponds to the DMA data buffer created by the audio driver, and the playlist can also include other items, such as allowing the pause item or the like.

[0036] The audio driver sound playback management, as shown in Figure 5, specifically includes the followi...

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 for audio drive programs to adopt a playing buffer and add an additional playing list; the method comprises the following parallel steps: A) Utilize a playing list to perform real-time record on all kinds of current sound data as well as relevant priority written by application programs; B) Move the corresponding sound data into a playing buffer in the sequence of high-to-low priority; C) Utilize the playing buffer to transmit sound data into an audio device. The method is characterized by adding the playing list into an audio drive program to record a plurality of parallel sound data, selecting to play sound data in higher priority, and further, selecting sound data to be played simultaneously, or played after remembrance, so as to avoid complicated procedure communication, synchronism and large quantity of data transmission work that are caused by program management with a single sound service. Besides, the method adopts an expanded universal standard interface function, so that program transplantation can be relatively simple. Therefore, the method can sufficiently meet sound playing management requirements for 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 program, it can create a DMA data buffer in memory, as shown in Figure 1, including several buffer units. The playing sound method of existing audio driver program, as Fig. 2, comprises: 210) start; 220) judge whether DMA data buffer has sound data; Yes, proceed to step 230); No, enter next step; 221) wa...

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 Applications(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