CN1324466C - Softwared sound intercepting method based on Windows system - Google Patents
Softwared sound intercepting method based on Windows system Download PDFInfo
- Publication number
- CN1324466C CN1324466C CNB021555060A CN02155506A CN1324466C CN 1324466 C CN1324466 C CN 1324466C CN B021555060 A CNB021555060 A CN B021555060A CN 02155506 A CN02155506 A CN 02155506A CN 1324466 C CN1324466 C CN 1324466C
- Authority
- CN
- China
- Prior art keywords
- sound
- dll
- emulation
- present
- sound device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Abstract
The present invention discloses a sound interception method though software, which is based on a WINDOWS system. The present invention comprises the following steps that A, a universal sound card drives DLL to realize the simulation of a sound device; B, sound data is copied to a shared memory zone through the sound device; C, the sound data in the shared memory zone is carried out for format conversion; D, the converted sound data is stored and/or transmitted. When used, the present invention intercepts original sound data, so the present invention can ensure that the sound quality is undistorted, and reduce white noise; the present invention has advantage of good generality, and can be used in fields of remote display, multimedia teaching, etc.
Description
Technical field
The present invention relates to method, refer to a kind ofly especially, under the WINDOWS system, realize the method for intercepting sound based on user's attitude emulation sound driver dynamic link library (DLL) by software processes computing machine external data.
Background technology
At present, the general method of passing through the software intercepting sound based on the WINDOWS system is: utilize the interior multimedia tool of control panel of WINDOWS operating system, with the input of stereo-mixing as sound pick-up outfit; Utilize the API (application programming interfaces) or DirectCaptureSound (the voice capturing DirectX hardware program interface) object of relevant recording (as WaveIn) in the WINDOWS system again, the input of captured in real time sound; By ACM (Audio Codec Manager audio coding decoding manager) catching sound is converted to the respective coding form again; Data after will changing then are saved in file or send by network.
As shown in Figure 1, according to the disclosed technology of Microsoft, the driving process of user's attitude sound of its WINDOWS NT/2K/XP operating system is: the standard multimedia storehouse WINMM.DLL that application call WINDOWS provides (comprising various API about multimedia such as audio frequency and vision operation), operate (as playback and recording etc.) to the sound of different-formats such as WAVE, MIDI; The storehouse MSACM32.DLL of the encoding and decoding of utilization management alternative sounds form and MSACM32.DRV and various ACM handle voice data again; Data after will handling afterwards save as file or send by network.It is the DLL that is provided by the sound card hardware vendor that the sound card of using in the process drives DLL, is used to call the API that transmits WINMM.DLL and gives operating system nucleus (kernel state driver in other words), thereby realize above-mentioned operation to sound.
But, use the method to have obvious defects:
1, voice data is from the input of sound card equipment, brings the interference (as microphone etc.) of other signals inevitably, causes tonequality to descend, and noise is more, and audio distortions is serious.
2, because the application program place of capture is the input of sound card equipment, even under the situation of not carrying out any sound operation, application program is still in the simulating signal of constantly catching the sound card input equipment, so not only reduce system performance greatly, and in the voice data of catching, be mingled with a large amount of white noise (static background), cause waste, increased the difficulty of post-processed as storage space, the network bandwidth etc.
3, true sound card driving DLL is normally provided by specific hardware vendor, neither has versatility, and the output interface of any voice data is not provided yet.
Summary of the invention
In order to overcome above-mentioned defective, the purpose of this invention is to provide a kind of method of passing through the software intercepting sound based on the WINDOWS system, it can improve tonequality, reduce white noise, and has good versatility.
For achieving the above object, the present invention by the following technical solutions: a kind of method of passing through the software intercepting sound based on the WINDOWS system, it may further comprise the steps:
A, mistake one general sound card drive DLL and realize sound device of emulation;
B, original sound data copy to the shared drive district by this sound device;
C, the voice data in the shared drive district is carried out format conversion;
Voice data after D, storage and/or the transmission conversion.
Wherein, drive DLL by a general sound card and realize sound device of emulation, may further comprise the steps:
A, call the API that WINMM.DLL provides, find a real physical equipment;
The attribute of the true physical equipment that b, acquisition are found, and pass to this emulation sound device;
C, by the sound in the control panel and audio frequency apparatus CPL or by the audio mixing device A PI that system provides, the sound device after the emulation is made as first-selection;
D, the general sound card of startup drive DLL emulation sound and are not equipped with, and will be the operation to real equipment to the operation map of this emulator.
Wherein, call the API that WINMM.DLL provides, find a real physical equipment, it specifically may further comprise the steps:
(1), the number n of the sound device of the current installation of recognition system;
(2), write down this numerical value from 0 to n-1;
(3), inquire about the attribute of each equipment;
(4), find real physical equipment.
A kind of method of passing through the software intercepting sound of the present invention based on the WINDOWS system, adopt above step, can utilize software before voice data arrives sound device, to tackle, what it obtained like this is raw digital signal, rather than the simulating signal after the sound device output, can guarantee that tonequality can distortion; Since have only when system to the sound device output sound, the present invention just can produce data output, so the present invention can not be mingled with a large amount of white noises that produced by audio playing device, has reduced the difficulty that late time data is handled, thereby has improved the utilization factor of system; This general sound card drives the mounted sound device of DLL analogue system simultaneously, is not subjected to hardware vendor's restriction, has good versatility; Because the ACM (audio coding decoding manager) that the present invention utilizes system to provide by system compresses,, just can produce any type of audio stream output in addition as long as corresponding C odec (audio coding decoding module) has installed in system.
Description of drawings
Fig. 1 is a prior art theory diagram of the present invention
Fig. 2 is a realization general flow chart of the present invention
Fig. 3 is the process flow diagram of emulation audio playing device of the present invention
Fig. 4 searches the process flow diagram of true physical equipment for the present invention
Embodiment
For making purpose of the present invention, technical scheme and effect clearer, the present invention is further described in detail again below in conjunction with drawings and Examples.
As shown in Figure 2, a kind of method of passing through the software intercepting sound of the present invention based on the WINDOWS system, the realization of the method comprises following concrete steps:
A. drive DLL by general sound card and realize sound device of emulation;
B. the original sound data copy to the shared drive district by this sound device;
C. the voice data in the shared drive district is carried out format conversion;
D. store and/or send the voice data after the conversion.
Described steps A. drive DLL by general sound card and realize sound device of emulation, general sound card wherein drives DLL and writes according to Windows standard I nstallabe Driver (driving can be installed) form.The DLL that writes according to this standard, after the system of packing into, sound device of emulation.
As shown in Figure 3, the emulation audio playing device comprises following concrete steps:
A, call the API of the function waveOutGetNumDevs that WINMM.DLL provides, find a real physical equipment;
B, handle WODM_GETDEVCAPS message, the API that calls the function waveOutGetDevCaps that WINMM.DLL provides obtains the attribute of the true physical equipment that found, and it is passed to the sound device of this emulation;
C, by the sound in the window control panel and audio frequency apparatus CPL (computer program library) or by the audio mixing device A PI that system provides, the sound device after the emulation is made as first-selection;
D, general sound card drive DLL and start the emulation sound device, and will be the operation of real equipment to the operation map of emulator by the message queue (comprising WODM_OPEN, WODM_CLOSE, WODM_WRITE, message such as WODM_PAUSE) of processing emulator.
As shown in Figure 4, find a real physical equipment, comprise following concrete steps:
(1), the sound device number-n of register system installation;
(2), this numerical value is subtracted 1, realize, with the mark 0-n-1 of the sound device of the current installation of system determining in function, to use since 0 computing system equipment number;
(3), inquire about the attribute of each equipment successively from 0-n-1;
(4), be genuine equipment with correlative value, be defined as real physical equipment.
Described step B. original sound data copy to the shared drive district by this sound device.For WODM_WRITE (audio output device is write message), after general sound card driving DLL gives real equipment with data transfer, copy the copy of a voice data simultaneously, afterwards, it is copied to the shared drive district preserve.
Described step C. reads voice data with obstruction or unblock mode from the shared drive district, and it is carried out format conversion.
Wherein, read voice data,, a mistake is returned in the read operation meeting in shared drive district at once, stop this read operation if the shared drive district does not have voice data in the unblock mode; For reading voice data in the obstruction mode, if the shared drive district does not have voice data, then the read operation meeting in shared drive district is blocked in and calls the place, there are data to return just up to this operation and stop.
Voice data conversion among the described step C can be compressed according to certain coded format voice data.In the present embodiment, present popular Mp3 (MPEG Layer 3) compressed format has been adopted in the voice data conversion, and the ACM (audio coding decoding management holder) that provides by system calls Lame Mp3 Codec (Mp3 codec) with the voice data boil down to Mp3 format audio stream that reads.(wherein MPEG is a Motion Picture Experts Group dynamic image expert group, the live image that promptly a kind of compression ratio is bigger and the compression standard of sound)
Voice data after described step D. storage and/or the transmission conversion.In the present embodiment, can divide into groups according to the packing of complete Frame (frame) form transmitting the MP3 audio stream that comes, send to network by TCP/IP (TCP), RTP (RTP) or HTTP procotols such as (HTML (Hypertext Markup Language)).
Claims (2)
1, a kind of method of passing through the software intercepting sound based on the WINDOWS system is characterized in that may further comprise the steps:
A. drive DLL by a general sound card and realize that sound device of emulation comprises:
1). call the API that WINMM.DLL provides, find a real physical equipment;
2). the attribute of the true physical equipment that acquisition is found, and pass to this emulation sound device;
3). by the sound in the control panel and audio frequency apparatus CPL or by the audio mixing device A PI that system provides, the sound device after the emulation is made as first-selection;
4). starting general sound card and drive DLL emulation sound device, will be the operation to real equipment to the operation map of this emulator;
B. the original sound data are copied to the shared drive district by this sound device;
C. the voice data in the shared drive district is carried out format conversion;
D. store and/or send the voice data after the conversion.
2, a kind of method of passing through the software intercepting sound according to claim 1 based on the WINDOWS system, it is characterized in that: described steps A further may further comprise the steps:
(1), the number n of the sound device of the current installation of recognition system is the integer among the 1-256;
(2), write down this numerical value from 1-256;
(3), inquire about the attribute of each equipment;
(4), find real physical equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021555060A CN1324466C (en) | 2002-12-09 | 2002-12-09 | Softwared sound intercepting method based on Windows system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021555060A CN1324466C (en) | 2002-12-09 | 2002-12-09 | Softwared sound intercepting method based on Windows system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1506818A CN1506818A (en) | 2004-06-23 |
CN1324466C true CN1324466C (en) | 2007-07-04 |
Family
ID=34235931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021555060A Expired - Fee Related CN1324466C (en) | 2002-12-09 | 2002-12-09 | Softwared sound intercepting method based on Windows system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1324466C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102664028A (en) * | 2012-04-26 | 2012-09-12 | 深圳市数动汽车电子科技有限公司 | Method for converting input analog signal to sound card into output digital signal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5940610A (en) * | 1995-10-05 | 1999-08-17 | Brooktree Corporation | Using prioritized interrupt callback routines to process different types of multimedia information |
CN1226712A (en) * | 1998-02-16 | 1999-08-25 | 深圳市华为技术有限公司 | Speech processing method for intellectural network businesses |
US6096085A (en) * | 1998-03-23 | 2000-08-01 | The United States Of America As Represented By The Secretary Of The Navy | Computer-readable software and computer-implemented method for performing an integrated sonar simulation |
US20020129151A1 (en) * | 1999-12-10 | 2002-09-12 | Yuen Thomas C.K. | System and method for enhanced streaming audio |
-
2002
- 2002-12-09 CN CNB021555060A patent/CN1324466C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5940610A (en) * | 1995-10-05 | 1999-08-17 | Brooktree Corporation | Using prioritized interrupt callback routines to process different types of multimedia information |
CN1226712A (en) * | 1998-02-16 | 1999-08-25 | 深圳市华为技术有限公司 | Speech processing method for intellectural network businesses |
US6096085A (en) * | 1998-03-23 | 2000-08-01 | The United States Of America As Represented By The Secretary Of The Navy | Computer-readable software and computer-implemented method for performing an integrated sonar simulation |
US20020129151A1 (en) * | 1999-12-10 | 2002-09-12 | Yuen Thomas C.K. | System and method for enhanced streaming audio |
Also Published As
Publication number | Publication date |
---|---|
CN1506818A (en) | 2004-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1149842C (en) | Method and apparatus for using digital televisions as remote personal computer displays | |
EP2495977A3 (en) | Adaptive weighting of reference pictures in video decoding | |
JP6979075B2 (en) | Methods, devices and systems for encoding and decoding video data | |
CN101505365A (en) | Real-time video monitoring system implementing method based on network television set-top box | |
CN101076100A (en) | Method and apparatus for transmitting decoded data fluid to display device | |
CN1857003A (en) | Method and system for providing video content, concealing related error defence and attempering arithmetic | |
CN1921610A (en) | Client-based video stream interactive processing method and processing system | |
CN1777265A (en) | Image-sound synchronous recording and playing method | |
CN110730364B (en) | Cloud mobile phone data transmission method and device and storage medium | |
CN1324466C (en) | Softwared sound intercepting method based on Windows system | |
CN1863212A (en) | Implementing method of distributed middleware system based on IP data network | |
CN100337190C (en) | Method for displaying and playbacking content of local computer on far-end computer | |
CN1564536A (en) | Network interactive teaching experimental method based on attcking/defending and video pack playing tech | |
CN101075342A (en) | Method and device for cutting fluid-medium video image | |
CN200980135Y (en) | An advertisement playing and monitoring system | |
KR20040031006A (en) | Cache method | |
CN1812472A (en) | Digital camera apparatus and method capable of realizing image display format conversion | |
CN1284064C (en) | Universal FIFO interface testing equipment and system | |
CN1167262C (en) | Decoding device, electronic device, and decoding method | |
CN1406055A (en) | Image-sound type network pick-up camera | |
CN1202666C (en) | Application program and application environment adapting method for digital TV receiving equipment | |
CN1889663A (en) | Method for transcribing opening picture | |
CN1533137A (en) | Access audio frequency output through capturing service | |
US11588870B2 (en) | W3C media extensions for processing DASH and CMAF inband events along with media using process@append and process@play mode | |
CN109495793B (en) | Bullet screen writing method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070704 Termination date: 20201209 |