CN109994132A - A kind of method of real-time recording audio data in MAC operation system - Google Patents

A kind of method of real-time recording audio data in MAC operation system Download PDF

Info

Publication number
CN109994132A
CN109994132A CN201910296909.9A CN201910296909A CN109994132A CN 109994132 A CN109994132 A CN 109994132A CN 201910296909 A CN201910296909 A CN 201910296909A CN 109994132 A CN109994132 A CN 109994132A
Authority
CN
China
Prior art keywords
audio data
real
operation system
time recording
mac operation
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.)
Pending
Application number
CN201910296909.9A
Other languages
Chinese (zh)
Inventor
李乐乐
李嬴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Net Technology Co Ltd
Original Assignee
Shenzhen Net Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Net Technology Co Ltd filed Critical Shenzhen Net Technology Co Ltd
Priority to CN201910296909.9A priority Critical patent/CN109994132A/en
Publication of CN109994132A publication Critical patent/CN109994132A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a kind of method of real-time recording audio data in MAC operation system, step includes: the image module list for obtaining system audio process and loading, and therefrom navigates to the target image module of entitled coreaudiod;The symbol invocation list stored in the form of array of pointers is obtained by the header addresses of the target image module;The direction address of scheduled symbolic pointer in the symbol invocation list is modified, to realize the binding again called to the corresponding symbol of the symbolic pointer, to complete the real-time monitoring changed to audio data and acquisition.The method of real-time recording audio data in MAC operation system of the present invention, can intercept in real time the change of system audio data, and not need to be shown and switched in system audio equipment, very easy to use.

Description

A kind of method of real-time recording audio data in MAC operation system
Technical field
The present invention relates to a kind of a kind of methods of real-time recording audio data in method more particularly to MAC operation system.
Background technique
MAC operation system is and stringenter to system operatio jurisdictions mandate because be the system for closing source completely, therefore needle It is larger to the capture difficulty of system audio data.
Currently, very deficient to the recording technology of system audio data in the market, relatively effective mode is to be by registration The mode of system audio process card module (also referred to as virtual sound card) captures audio.
Such mode can solve the problem of recording system audio data to a certain extent, but equally there is also larger Defect: on the one hand, which realize plug-in unit can not get audio data in real time, there are larger delays;On the other hand, Need user that must specify to virtual sound card equipment in audio frequency apparatus manager, it is very inconvenient to operate.
Summary of the invention
The present invention is directed to the drawbacks of prior art, provides a kind of method of real-time recording audio data in MAC operation system.
The method of real-time recording audio data, step include: in MAC operation system of the present invention
The image module list that system audio process loads is obtained, the target of entitled coreaudiod is therefrom navigated to Image module;
The symbol invocation list stored in the form of array of pointers is obtained by the header addresses of the target image module;
The direction address of scheduled symbolic pointer in the symbol invocation list is modified, it is corresponding to the symbolic pointer to realize Symbol call binding again, thus complete to audio data changes it is real-time monitor and obtain.
In MAC operation system of the present invention in the method for real-time recording audio data, accessed audio is traversed Data flow simultaneously caches, and is then sent by network SOCKET.
In MAC operation system of the present invention in the method for real-time recording audio data, to the audio number of acquisition It is created and is cached according to ID according to stream.
In MAC operation system of the present invention in the method for real-time recording audio data, if the voice data stream obtained For multichannel, the road Ze Jiangge voice data stream caches after carrying out audio mixing.
In MAC operation system of the present invention in the method for real-time recording audio data, at set time intervals will The audio data of caching exports.
In MAC operation system of the present invention in the method for real-time recording audio data, if buffer area does not have audio number According to then exporting content is empty audio data.
In MAC operation system of the present invention in the method for real-time recording audio data, further comprises: will acquire Microphone audio data export after target audio data with the voice data stream audio mixing.
In MAC operation system of the present invention in the method for real-time recording audio data, by the target audio of PCM format Data are converted to AAC format, and calling system api interface is exported.
The method of real-time recording audio data, can intercept system in real time in MAC operation system of the present invention The change of audio data, and do not need to be shown and switched in system audio equipment, it is very easy to use.
Detailed description of the invention
Fig. 1 is the flow diagram of the method for real-time recording audio data in MAC operation system of the present invention.
Specific embodiment
Present invention will be described in further detail below with reference to the accompanying drawings, to enable those skilled in the art referring to specification text Word can be implemented accordingly.
As shown in Figure 1, in MAC operation system of the present invention real-time recording audio data method, can be by MAC Executable code module is injected to realize in the memory of system operation process, which does not need to carry out in system audio equipment Display and switching.For example, by copy system audio plug module to default audio plug catalogue, starting system audio of laying equal stress on into Journey.In system plays audio, it is real that system process calls the code snippet for executing injection to specified memory address entrance Existing operation intercepting, to obtain original PCM audio data.
Specifically, include the following steps:
The image module list that system audio process loads is obtained, the target of entitled coreaudiod is therefrom navigated to Image module.
In this step, the image module list that system audio process loads can be obtained by system API.Then, traversal is every A image module, to obtain the title of each image module;Then, name can be navigated to by the title of image module The image module of referred to as coreaudiod, namely navigate to target image module.
Further, the symbol stored in the form of array of pointers is obtained by the header addresses of the target image module Invocation list.
In this step, the header address information of the target image module can be determined by its call number information.It is obtaining Can further be got after the header addresses of the target image module target image module _ _ DATA data bin data, And should _ _ DATA data bin data in contain all symbol invocation lists of the target image module, and the symbol calls List is stored in the form of array of pointers.
Then, further, by modifying the direction address of scheduled symbolic pointer in the symbol invocation list, with reality The binding again that now the corresponding symbol of the symbolic pointer is called, so that completes to change audio data monitors and obtain in real time It takes.That is, can be realized after the direction address of preset symbolic pointer is modified to the corresponding symbol of the symbolic pointer Number call binding again, to achieve the purpose that interception system audio data.Preset symbolic pointer described here Refer to the module to the call address of system function, system can be entered when playing sound by audio frequency apparatus Gone in coreaudiod process execute undertake in system function corresponding to audio frequency apparatus control function, such as sound broadcasting and It stops operation, and the executions address that these system functions call is exactly current symbolic pointer list acquired in us, is passed through again New binding, can customized acquisition implementation procedure, achieve the purpose that intercepting and capturing.
In MAC operation system of the present invention in the method for real-time recording audio data, accessed audio is traversed Data flow simultaneously caches, and is then sent by network SOCKET, in case down-stream uses.It, can when specifically being cached The voice data stream of acquisition is created according to ID and is cached;Alternatively, if the voice data stream obtained is multichannel, the road Ze Jiangge audio number It is cached after carrying out audio mixing according to stream.Then, the audio data of caching is exported at set time intervals.There is no sound for buffer area Frequency according to when the case where, exportable content is empty audio data.
Further, the method for real-time recording audio data may also include that and will obtain in MAC operation system of the present invention The microphone audio data taken export after target audio data with the voice data stream audio mixing.That is, institute of the present invention Method is stated in addition to it can system audio data be obtained and be exported in real time, it can also be simultaneously to externally input microphone audio Data carry out audio mixing output, that is, the microphone audio data that will acquire and the voice data stream audio mixing as after target audio data It is exported again.In concrete operations, the target audio data of PCM format can be converted to AAC format, and calling system API connects Mouth is exported.
The method of real-time recording audio data, can intercept system in real time in MAC operation system of the present invention The change of audio data, and do not need to be shown and switched in system audio equipment, it is very easy to use.
Although the embodiments of the present invention have been disclosed as above, but its is not only in the description and the implementation listed With it can be fully applied to various fields suitable for the present invention, for those skilled in the art, can be easily Realize other modification, therefore without departing from the general concept defined in the claims and the equivalent scope, the present invention is simultaneously unlimited In specific details and legend shown and described herein.

Claims (8)

1. a kind of method of real-time recording audio data in MAC operation system, which is characterized in that step includes:
The image module list that system audio process loads is obtained, the target image of entitled coreaudiod is therefrom navigated to Module;
The symbol invocation list stored in the form of array of pointers is obtained by the header addresses of the target image module;
The direction address of scheduled symbolic pointer in the symbol invocation list is modified, to realize to the corresponding symbol of the symbolic pointer Number call binding again, thus complete to audio data changes it is real-time monitor and obtain.
2. the method for real-time recording audio data in MAC operation system as described in claim 1, which is characterized in that traversal institute The voice data stream and caching got, is then sent by network SOCKET.
3. the method for real-time recording audio data in MAC operation system as claimed in claim 2, which is characterized in that acquisition The voice data stream according to ID create cache.
4. the method for real-time recording audio data in MAC operation system as claimed in claim 2, which is characterized in that if obtaining Voice data stream be multichannel, the road Ze Jiangge voice data stream carry out audio mixing after cache.
5. the method for real-time recording audio data in MAC operation system as described in claim 3 or 4, which is characterized in that set Fixed time interval exports the audio data of caching.
6. the method for real-time recording audio data in MAC operation system as claimed in claim 5, which is characterized in that if caching Area does not have audio data, then exporting content is empty audio data.
7. the method for real-time recording audio data in MAC operation system as claimed in claim 2, which is characterized in that further It include: the microphone audio data that will acquire with the voice data stream audio mixing is to export after target audio data.
8. the method for real-time recording audio data in MAC operation system as claimed in claim 7, which is characterized in that by PCM lattice The target audio data of formula are converted to AAC format, and calling system api interface is exported.
CN201910296909.9A 2019-04-15 2019-04-15 A kind of method of real-time recording audio data in MAC operation system Pending CN109994132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910296909.9A CN109994132A (en) 2019-04-15 2019-04-15 A kind of method of real-time recording audio data in MAC operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910296909.9A CN109994132A (en) 2019-04-15 2019-04-15 A kind of method of real-time recording audio data in MAC operation system

Publications (1)

Publication Number Publication Date
CN109994132A true CN109994132A (en) 2019-07-09

Family

ID=67133601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910296909.9A Pending CN109994132A (en) 2019-04-15 2019-04-15 A kind of method of real-time recording audio data in MAC operation system

Country Status (1)

Country Link
CN (1) CN109994132A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014017964A2 (en) * 2012-07-27 2014-01-30 Magine Holding AB A system and a method adapted to display epg media content from the world wide web
CN103701854A (en) * 2013-11-29 2014-04-02 深圳清华大学研究院 Network real-time audio transmission method based on application virtualization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014017964A2 (en) * 2012-07-27 2014-01-30 Magine Holding AB A system and a method adapted to display epg media content from the world wide web
CN103701854A (en) * 2013-11-29 2014-04-02 深圳清华大学研究院 Network real-time audio transmission method based on application virtualization

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GAIA: "Windows下Core Audio APIS 音频应用开发(一)", 《CSDN》 *
吾身三醒: "iOS语音开发--Core Audio", 《CSDN》 *

Similar Documents

Publication Publication Date Title
US11670339B2 (en) Video acquisition method and device, terminal and medium
CN101164055B (en) Media timeline sorting
KR101312902B1 (en) Triggerless interactive television
JPH09502821A (en) Object-oriented audio system
JPWO2013157440A1 (en) Reception device, reception method, transmission device, transmission method, and program
US20230300403A1 (en) Video processing method and apparatus, device, and storage medium
WO2022007722A1 (en) Display method and apparatus, and device and storage medium
US9177538B2 (en) Channel-mapped MIDI learn mode
CN101501775A (en) Media timeline processing infrastructure
CN106162357B (en) Obtain the method and device of video content
US20220326820A1 (en) Information display method and apparatus, device and storage medium
CN108011951B (en) Remote assistance method, device and system and electronic equipment
US20080033978A1 (en) Program, data processing method, and system of same
CN108259923B (en) Video live broadcast method, system and equipment
CN105933736A (en) Log processing method and device
CN108628815A (en) The method and device of word in a kind of quick insertion voice bearer
CN108391160A (en) A kind of screenshotss method, system and set-top box
CN103310001B (en) A kind of method and apparatus that list of videos is set
CN109474855A (en) Video editing method, device, computer equipment and readable storage medium storing program for executing
CN109905721A (en) A kind of direct broadcasting room exchange method, system, equipment and computer-readable medium
US9237363B2 (en) Dynamic injection of metadata into flash video
US20060218248A1 (en) Contents distribution system, contents distribution method, and computer-readable storage medium therefor
AU2014368914B2 (en) Multiple views recording
CN109994132A (en) A kind of method of real-time recording audio data in MAC operation system
Peng et al. Digital television application manager

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190709