Method and device for transmitting audio data

An audio data and audio technology, applied in the computer and embedded fields, can solve the problems of inability to start DMA transmission, occupation, DMA interruption, etc.

Active Publication Date: 2011-12-21
VIMICRO ELECTRONICS CORP
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the defect of this method is that memory is needed to save mute data, which takes up more storage resources
And the storage space of this memory should not be too small, because if it is too small, the audio data may not be ready after the saved silent data is transmitted, and the DMA transmission cannot be started, and the purpose of improving the discontinuous audio playback cannot be achieved.
And since it is judged by DMA interrupt whether there is ready audio data, a judgment must be made every time the silent data

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
  • Method and device for transmitting audio data
  • Method and device for transmitting audio data
  • Method and device for transmitting audio data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In the embodiment of the present invention, the decoder writes audio data to the buffer unit; when the buffer unit is full, the decoder judges whether there is an interrupt flag; wherein, after the audio transmission is interrupted, the decoder receives the interrupt flag sent by the interrupt module; If the judgment result is yes, the decoder triggers DMA transfer. Therefore, the transmission of audio data can be realized without occupying additional memory to save the silent data, thereby saving storage space. Moreover, it is judged by the decoder whether to start DMA for transmission, so that only one DMA interrupt needs to be generated before the DMA transmission is interrupted and the next round of DMA transmission starts, which reduces the burden on the CPU.

[0047] see Figure 1A , this embodiment provides an apparatus for transmitting audio data, which includes a decoder 101 , a cache module 102 and an interrupt module 103 .

[0048]The decoder 101 is used to ...

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 data transmission method, which is used for carrying out audio data transmission without occupying an extra memory in order to save the memory space and reduce the burden of a CPU (central processing unit). The method includes the following steps that: a decoder writes audio data into a cache unit; when the cache unit is full, the decoder judges whether an interrupt flag exists; after audio transmission is interrupted, the decoder receives an interrupt flag transmitted by an interrupt module; and when a judgement result is yes, the decoder triggers DMA (Direct Memory Access) transmission. The invention also discloses a device used for carrying out the method.

Description

technical field [0001] The invention relates to computer and embedded fields, in particular to a method and device for transmitting audio data. Background technique [0002] With the rapid development of embedded system and multimedia technology, the multimedia playback system based on embedded system is gradually rising. In the embedded multimedia playback system, audio playback is one of the most basic functions. [0003] During audio playback, the output of audio data is output to DAC (Digital-to-Analog Converter, digital-to-analog converter) by means of DMA (Direct Memory Access, direct memory access), and the audio data is converted from digital signal by DAC After it is an analog signal, it is output according to the sampling rate, such as 48K, 44.1K, etc. Among them, DMA refers to an input / output operation mode that realizes automatic batch exchange of data between high-speed peripherals and main memory under special hardware control, and minimizes CPU intervention....

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): G10L19/00G10L19/24
Inventor 李志刚
Owner VIMICRO ELECTRONICS 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