The method for recording and device of audio dataTechnical field
The present invention relates to computer realms, in particular to the method for recording and device of a kind of audio data.
Background technology
The method that game live streaming at present and recording application obtain game sound is all (to apply journey by the api that system providesSequence interface) obtain microphone sound.Although can also get the sound of game in this way, also it is mingled with ambient sound simultaneously.WhenWhen ambient sound interference is larger, the sound of game can not heard;When having ambient sound, the experience of game sound is also very poor.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of method for recording of audio data and devices, at least to solve through microphone pairThe technical issues of being affected by ambient sound when sound is recorded.
One side according to the ... of the embodiment of the present invention provides a kind of method for recording of audio data, including:It is answered in recordingWith middle reception record command, wherein the record command is used to indicate the audio data exported to intended application and records;RootIn target process whether it is embedded in first function according to record command detection, wherein the first function is used to indicate theThe entry address of two functions, the second function are at least used to indicate the recording intended application and are exported by the target processTo the audio data of audio output interface;In the case where detecting the first function, the second function is obtainedThe audio data for being output to the audio output interface is recorded to execute the second function in the entry address.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of record device of audio data, including:It receives singleMember, for receiving record command in recording application, wherein the record command is used to indicate the audio exported to intended applicationData are recorded;Detection unit, for whether being embedded in first function in target process according to record command detection,Wherein, the first function is used to indicate the entry address of second function, and the second function is at least used to indicate described in recordingIntended application is output to the audio data of audio output interface by the target process;Acquiring unit, for detectingIn the case of the first function, the entry address of the second function is obtained, to execute the second function, is recordedIt is output to the audio data of the audio output interface.
In embodiments of the present invention, record command is received using in recording application, wherein the record command is for referring toShow that the audio data exported to intended application is recorded;Whether it is embedded in target process according to record command detectionFirst function, wherein the first function is used to indicate the entry address of second function, and the second function is at least used to indicateRecord the audio data that the intended application is output to audio output interface by the target process;It is described detectingIn the case of first function, the entry address of the second function is obtained, to execute the second function, recording is output toThe audio data of the audio output interface indicates second function according to entry address by first function, and executes secondFunction has reached the audio for directly acquiring intended application output to be recorded to being output to audio output interface audio dataThe purpose of data is recorded the pure technique effect using interior sound to realize, and then is solved through microphone to soundThe technical issues of being affected by ambient sound when sound is recorded.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hairBright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the hardware environment figure of the method for recording of audio data according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the method for recording of optional audio data according to the ... of the embodiment of the present invention;
Fig. 3 is the configuration interface according to the ... of the embodiment of the present invention for recording application;
Fig. 4 is a kind of schematic diagram of the record device of optional audio data according to the ... of the embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present inventionAttached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is onlyThe embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill peopleThe every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protectsIt encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this wayData can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein orSequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that coverIt includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusiveThose of clearly list step or unit, but may include not listing clearly or for these processes, method, productOr the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method that can be executed by the application device embodiment is provided,It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructionsIt is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from hereinSequence execute shown or described step.
According to embodiments of the present invention, a kind of method for recording of audio data is provided.
Optionally, in the present embodiment, the method for recording of above-mentioned audio data can be applied to terminal as shown in Figure 1102 and the hardware environment that is constituted of server 104 in.As shown in Figure 1, terminal 102 is connected by network and server 104It connects, above-mentioned network includes but not limited to:Mobile communications network, wide area network, Metropolitan Area Network (MAN) or LAN, terminal 102 can be mobile phonesTerminal can also be PC terminals, notebook terminal or tablet computer terminal.
Fig. 2 is a kind of flow chart of the method for recording of optional audio data according to the ... of the embodiment of the present invention, below in conjunction withThe method for recording that Fig. 2 is provided for the embodiments of the invention audio data does specific introduction, as shown in Fig. 2, the audio dataMethod for recording mainly includes the following steps S202 to step S206:
Step S202 receives record command in recording application, wherein record command, which is used to indicate, exports intended applicationAudio data recorded.
In embodiments of the present invention, it records application and is used for recording audio data, record application and may be, but is not limited to installOn mobile phone terminal, the terminal devices such as PC terminals, notebook terminal or tablet computer terminal, its place can be obtained by recording applicationTerminal device on the audio data that plays and recorded, the file recorded can be used for storing into storage medium,It uploads on network or for being broadcast live online.When operation record in application, can by be used to indicate start record byButton sends record command to application is recorded, and recording is applied after receiving record command, according to the record command to transportingThe audio data of capable intended application output is recorded.In a kind of optional embodiment, above-mentioned be used to indicate starts to recordThe button of system may be displayed on the display interface of the intended application to be recorded, and user can be started pair by clicking onThe recording of intended application.In a kind of optional embodiment, user can be when being recorded by recording application, Ke YitongIt crosses recording application and opens intended application, so that the audio data for recording application for intended application output is recorded.Such as:Operation has a music player and a Games Software simultaneously in PC terminals, wherein music player is individually opened, tripPlay software is to record application by first opening, then open by recording application, then records using defeated just for the Games SoftwareThe audio data gone out is recorded, without the audio file of recording music player output.
Whether step S204 is embedded in first function, wherein first function according to record command detection in target processIt is used to indicate the entry address of second function, second function is at least used to indicate recording intended application and is output to by target processThe audio data of audio output interface.
Target process is the system process of terminal device where recording application, and when terminal device is opened, target process isIt operates in the system of terminal device, the sound output of all applications of the target process for being run on management terminal device, instituteSome is applied when exporting sound, is all that the audio data that will be exported by target process is output to audio output interface.It is connecingAfter receiving record command, whether detection has been embedded with first function in target process, wherein first function is used to indicateGo out the entry address of second function, and second function is for recording the audio data that intended application is exported by target process.
Step S206 obtains the entry address of second function in the case where detecting first function, to execute the second letterNumber records the audio data for being output to audio output interface.
After first function is embedded into target process, first function can be executed, therefore, when being detected in target processTo first function, show that first function is performed in target process, i.e., first function has indicated second functionEntry address, intended application is output to the audio data of audio output interface by target process originally and can be obtained by second functionIt takes, at this point, by executing second function, you can recorded to the audio data for being output to audio interface with realizing.
In embodiments of the present invention, using record apply in receive record command, wherein record command is used to indicate pairThe audio data of intended application output is recorded;The first letter whether is embedded in target process according to record command detectionNumber, wherein first function is used to indicate the entry address of second function, and it is logical that second function is at least used to indicate recording intended applicationCross the audio data that target process is output to audio output interface;In the case where detecting first function, second function is obtainedEntry address record the audio data for being output to audio output interface to execute second function, pass through first function instruction theTwo functions execute second function according to entry address, to be recorded to being output to audio output interface audio data, reachThe purpose for directly acquiring the audio data of intended application output records the pure technology effect using interior sound to realizeFruit, and then solve the technical issues of being affected by ambient sound when being recorded to sound by microphone.
Optionally, after whether being embedded in first function in target process according to record command detection, further include:In the case of first function is not detected, the embedded dynamic link library in target process, wherein dynamic link library includes firstFunction;First function is executed to indicate the entry address of second function.
Target process is system process, when operation for the first time is recorded in application, since the terminal where recording application is setIt is standby to restart when target process being caused to be restarted, it is not embedded with first function in target process, therefore, it is impossible to be examined in target processFirst function is measured, also intended application, which passes through target, can not be indicated to the entry address of second function by first functionThe audio data that process is output to audio output interface also can not just be got by second function.At this point it is possible to target processMiddle embedded dynamic link library includes first function in the dynamic link library, after by first function embedded target process itAfterwards, first function is executed, so that first function indicates the entry address of second function, to enable second function to getTarget process is output to the audio data of audio output interface.
Optionally, execute first function includes to indicate the entry address of second function:It is searched in target process predeterminedThe entry address of interface function, wherein predetermined interface function is used to indicate is output to audio output interface by audio data;It executesThe entry address of predetermined interface function is replaced with the entry address of second function by first function.
First function is executed to indicate that following embodiment may be used according to entry address for second function, you can in meshThe entry address of predetermined interface function is found in mark process, wherein predetermined interface function, which is used to indicate, exports intended applicationAudio data be output to audio output interface, predetermined interface letter is called in the entry address that target process passes through predetermined interface functionNumber, audio data is output to audio output interface by the predetermined interface function.When finding entering for predetermined interface functionAfter port address, by execution first function, the entry address of predetermined interface function is substituted for the entry address of second function,In this way, when audio data is output to predetermined interface function by target process, i.e., call the by the entry address of second functionTwo functions to make second function obtain the audio data to be exported, and then realize the recording to audio data.
Optionally, second function is executed, the audio data that recording is output to audio output interface includes:Audio data is writeEnter into the memory of target process, with recording audio data, wherein recording application has the access rights for accessing memory.
As a kind of optionally embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second functionAfter the audio data of frequency output interface, the audio data got is written in target process in memory, optionally, this is interiorIt can be shared drive to deposit.Recording application has the access rights for accessing the memory, is written according to by audio data in second functionTo after in above-mentioned memory, the memory can be accessed by recording application, and read audio data from the memory, to completion pairThe recording of audio data.Optionally, the audio data read can also be encoded by recording application, obtain audio file,And then save obtained audio file, or it is transmitted.
Optionally, in the memory that audio data is written to target process during, further include:Audio data is defeatedGo out to audio output interface.
As an alternative embodiment, audio data to be written to the memory of target process by execution second functionIn process in, audio data can also be output to audio output interface, optionally, the embodiment of the present invention is not made to by soundFrequency is output to the restriction of the execution sequence of audio output interface according to write-in memory and by audio data, you can with first by audio numberAccording to write-in memory, can also audio data be first output to audio interface, can be carried out at the same time with the two.It is write by audio dataDuring the memory for entering target process, audio data can also be output to audio output interface, ensured to ensure thatIn the case that audio data is normally exported by audio interface, the recording of the audio data exported to intended application is realized.
Optionally, during recording is output to the audio data of audio output interface, further include:Pause is received to recordInstruction;Audio data is written in the memory of target process by response pause record command, stopping.
During recording audio, the instruction that pause is recorded can be sent to application is recorded by control button, recordedIt applies after receiving the instruction that pause is recorded, which is responded, stop the recording to audio data.Optionally,As the response for recording pause, it can stop executing second function, to stop the audio data for getting second functionIt is written in the memory of target process, and stops reading audio data from the memory of upper target process.
Optionally, before receiving record command in recording application, including:Obtain configuration information, wherein configuration information is usedThe audio data exported to intended application in recording application is allowed to record in instruction.
As a kind of optional embodiment of the embodiment of the present invention, the configuration information for recording application can be obtained, andWhen configuration information instruction allows to record the audio data of intended application output, the audio data of target user's output is recordedSystem.As shown in figure 3, configuration information is arranged in interface that can be shown in Fig. 3, wherein when the option of " recording sound in game "When selected, will record application configuration is that the audio data that can be exported to intended application is recorded, wherein by configuration informationIt is positioned to allow for recording the audio data that intended application exports and may need the permission for having certain, such as:It is necessary to have system permission (Root) in android system, can just set configuration information to " recording sound in game ".
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series ofCombination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence becauseAccording to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also knowIt knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the inventionIt is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementationThe method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very muchIn the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existingThe part that technology contributes can be expressed in the form of software products, which is stored in a storageIn medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculateMachine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of audio data for implementing the method for recording of above-mentioned audio data is additionally providedRecord device, the device of the audio data is mainly used for executing the audio data that the above of the embodiment of the present invention is providedMethod for recording, the record device for being provided for the embodiments of the invention audio data below do specific introduction:
Fig. 4 is the schematic diagram of the record device of audio data according to the ... of the embodiment of the present invention, as shown in figure 4, the audio numberAccording to record device include mainly:
First receiving unit 410, for record apply in receive record command, wherein record command is used to indicate pairThe audio data of intended application output is recorded.
In embodiments of the present invention, it records application and is used for recording audio data, record application and may be, but is not limited to installOn mobile phone terminal, the terminal devices such as PC terminals, notebook terminal or tablet computer terminal, its place can be obtained by recording applicationTerminal device on the audio data that plays and recorded, the file recorded can be used for storing into storage medium,It uploads on network or for being broadcast live online.When operation record in application, can by be used to indicate start record byButton sends record command to application is recorded, and recording is applied after receiving record command, according to the record command to transportingThe audio data of capable intended application output is recorded.In a kind of optional embodiment, above-mentioned be used to indicate starts to recordThe button of system may be displayed on the display interface of the intended application to be recorded, and user can be started pair by clicking onThe recording of intended application.In a kind of optional embodiment, user can be when being recorded by recording application, Ke YitongIt crosses recording application and opens intended application, so that the audio data for recording application for intended application output is recorded.Such as:Operation has a music player and a Games Software simultaneously in PC terminals, wherein music player is individually opened, tripPlay software is to record application by first opening, then open by recording application, then records using defeated just for the Games SoftwareThe audio data gone out is recorded, without the audio file of recording music player output.
Detection unit 420, for whether being embedded in first function in target process according to record command detection, whereinFirst function is used to indicate the entry address of second function, second function be at least used to indicate record intended application by target intoJourney is output to the audio data of audio output interface.
Target process is the system process of terminal device where recording application, and when terminal device is opened, target process isIt operates in the system of terminal device, the sound output of all applications of the target process for being run on management terminal device, instituteSome is applied when exporting sound, is all that the audio data that will be exported by target process is output to audio output interface.It is connecingAfter receiving record command, whether detection has been embedded with first function in target process, wherein first function is used to indicateGo out the entry address of second function, and second function is for recording the audio data that intended application is exported by target process.
First execution unit 430, the entry address in the case where detecting first function, obtaining second function,To execute second function, the audio data for being output to audio output interface is recorded.
After first function is embedded into target process, first function can be executed, therefore, when being detected in target processTo first function, show that first function is performed in target process, i.e., first function has indicated second functionEntry address, intended application is output to the audio data of audio output interface by target process originally and can be obtained by second functionIt takes, at this point, by executing second function, you can recorded to the audio data for being output to audio interface with realizing.
In embodiments of the present invention, using record apply in receive record command, wherein record command is used to indicate pairThe audio data of intended application output is recorded;The first letter whether is embedded in target process according to record command detectionNumber, wherein first function is used to indicate the entry address of second function, and it is logical that second function is at least used to indicate recording intended applicationCross the audio data that target process is output to audio output interface;In the case where detecting first function, second function is obtainedEntry address record the audio data for being output to audio output interface to execute second function, pass through first function instruction theTwo functions execute second function according to entry address, to be recorded to being output to audio output interface audio data, reachThe purpose for directly acquiring the audio data of intended application output records the pure technology effect using interior sound to realizeFruit, and then solve the technical issues of being affected by ambient sound when being recorded to sound by microphone.
Optionally, device further includes:Embedded unit, for whether being embedded in target process according to record command detectionAfter first function, in the case where first function is not detected, the embedded dynamic link library in target process, wherein dynamicState chained library includes first function;Second execution unit, for executing first function to indicate the entry address of second function.
Target process is system process, when operation for the first time is recorded in application, since the terminal where recording application is setIt is standby to restart when target process being caused to be restarted, it is not embedded with first function in target process, therefore, it is impossible to be examined in target processFirst function is measured, also intended application, which passes through target, can not be indicated to the entry address of second function by first functionThe audio data that process is output to audio output interface also can not just be got by second function.At this point it is possible to target processMiddle embedded dynamic link library includes first function in the dynamic link library, after by first function embedded target process itAfterwards, first function is executed, so that first function indicates the entry address of second function, to enable second function to getTarget process is output to the audio data of audio output interface.
Optionally, the second execution unit includes:Searching module, for searching entering for predetermined interface function in target processPort address, wherein predetermined interface function is used to indicate is output to audio output interface by audio data;Execution module, for holdingThe entry address of predetermined interface function, is replaced with the entry address of second function by row first function.
First function is executed to indicate that following embodiment may be used according to entry address for second function, you can in meshThe entry address of predetermined interface function is found in mark process, wherein predetermined interface function, which is used to indicate, exports intended applicationAudio data be output to audio output interface, predetermined interface letter is called in the entry address that target process passes through predetermined interface functionNumber, audio data is output to audio output interface by the predetermined interface function.When finding entering for predetermined interface functionAfter port address, by execution first function, the entry address of predetermined interface function is substituted for the entry address of second function,In this way, when audio data is output to predetermined interface function by target process, i.e., call the by the entry address of second functionTwo functions to make second function obtain the audio data to be exported, and then realize the recording to audio data.
Optionally, the first execution unit includes:Writing module, the memory for audio data to be written to target processIn, with recording audio data, wherein recording application has the access rights for accessing memory.
As a kind of optionally embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second functionAfter the audio data of frequency output interface, the audio data got is written in target process in memory, optionally, this is interiorIt can be shared drive to deposit.Recording application has the access rights for accessing the memory, is written according to by audio data in second functionTo after in above-mentioned memory, the memory can be accessed by recording application, and read audio data from the memory, to completion pairThe recording of audio data.Optionally, the audio data read can also be encoded by recording application, obtain audio file,And then save obtained audio file, or it is transmitted.
Optionally, the first execution unit further includes:Output module, for being written in target process by audio dataDuring depositing, audio data is output to audio output interface.
As an alternative embodiment, audio data to be written to the memory of target process by execution second functionIn process in, audio data can also be output to audio output interface, optionally, the embodiment of the present invention is not made to by soundFrequency is output to the restriction of the execution sequence of audio output interface according to write-in memory and by audio data, you can with first by audio numberAccording to write-in memory, can also audio data be first output to audio interface, can be carried out at the same time with the two.It is write by audio dataDuring the memory for entering target process, audio data can also be output to audio output interface, ensured to ensure thatIn the case that audio data is normally exported by audio interface, the recording of the audio data exported to intended application is realized.
Optionally, device further includes:Second receiving unit, for recording the audio data for being output to audio output interfaceDuring, receive pause record command;Stop unit, for responding pause record command, audio data is written to by stoppingIn the memory of target process.
During recording audio, the instruction that pause is recorded can be sent to application is recorded by control button, recordedIt applies after receiving the instruction that pause is recorded, which is responded, stop the recording to audio data.Optionally,As the response for recording pause, it can stop executing second function, to stop the audio data for getting second functionIt is written in the memory of target process, and stops reading audio data from the memory of upper target process.
Optionally, device includes:Acquiring unit, for before receiving record command in recording application, obtaining and matching confidenceBreath, wherein configuration information, which is used to indicate, allows the audio data exported to intended application in recording application to record.
As a kind of optional embodiment of the embodiment of the present invention, the configuration information for recording application can be obtained, andWhen configuration information instruction allows to record the audio data of intended application output, the audio data of target user's output is recordedSystem.As shown in figure 3, configuration information is arranged in interface that can be shown in Fig. 3, wherein when the option of " recording sound in game "When selected, will record application configuration is that the audio data that can be exported to intended application is recorded, wherein by configuration informationIt is positioned to allow for recording the audio data that intended application exports and may need the permission for having certain, such as:It is necessary to have system permission (Root) in android system, can just set configuration information to " recording sound in game ".
Embodiment 3
According to embodiments of the present invention, a kind of terminal for implementing the method for recording of above-mentioned audio data is additionally provided, such asShown in Fig. 5, the terminal mainly include processor 501, display 502 and memory 503, wherein:
Memory 503 is mainly used for the audio data that storage is recorded.
Display 502 is mainly used for the recording interface that application is recorded in display.
Processor 501 is mainly used for executing following operation:
Record command is received in recording application, wherein record command is used to indicate the audio number exported to intended applicationAccording to being recorded;Whether first function is embedded in target process, wherein first function is for referring to according to record command detectionShow the entry address of second function, second function, which is at least used to indicate, to be recorded intended application by target process to be output to audio defeatedThe audio data of outgoing interface;In the case where detecting first function, the entry address of second function is obtained, to execute the second letterNumber records the audio data for being output to audio output interface.
Processor 501 is additionally operable in the case where first function is not detected, the embedded dynamic link library in target process,Wherein, dynamic link library includes first function;First function is executed to indicate the entry address of second function.
Processor 501 is additionally operable to search the entry address of predetermined interface function in target process, wherein predetermined interface letterNumber is used to indicate is output to audio output interface by audio data;First function is executed, by the entrance of predetermined interface functionLocation replaces with the entry address of second function.
Processor 501 is additionally operable to audio data being written in the memory of target process, with recording audio data, whereinRecording application has the access rights for accessing memory.
Processor 501 is additionally operable to audio data being output to audio output interface.
Processor 501 is additionally operable to receive pause record command;Audio data is written to by response pause record command, stoppingIn the memory of target process.
Processor 501 is additionally operable to obtain configuration information, wherein configuration information is used to indicate permission in recording application to meshThe audio data of mark application output is recorded.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium canThe program code of the method for recording of the audio data of the embodiment of the present invention for storage.
Optionally, in the present embodiment, above-mentioned storage medium can be located at mobile communications network, wide area network, Metropolitan Area Network (MAN) orAt least one of multiple network equipments in the network of LAN network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 receives record command, wherein record command is used to indicate the audio exported to intended application in recording applicationData are recorded;
Whether S2 is embedded in first function, wherein first function is for referring to according to record command detection in target processShow the entry address of second function, second function, which is at least used to indicate, to be recorded intended application by target process to be output to audio defeatedThe audio data of outgoing interface;
S3 obtains the entry address of second function in the case where detecting first function, to execute second function, recordSystem is output to the audio data of audio output interface.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM,Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc orThe various media that can store program code such as CD.
Optionally, in the present embodiment, processor is not detecting according to stored program code execution in storage mediumIn the case of first function, the embedded dynamic link library in target process, wherein dynamic link library includes first function;First function is executed to indicate the entry address of second function.
Optionally, in the present embodiment, processor according to stored program code in storage medium execute target intoThe entry address of predetermined interface function is searched in journey, wherein predetermined interface function is used to indicate is output to audio by audio dataOutput interface;First function is executed, the entry address of predetermined interface function is replaced with to the entry address of second function.
Optionally, in the present embodiment, processor is executed according to stored program code in storage medium by audio numberAccording to being written in the memory of target process, with recording audio data, wherein recording application has the access rights for accessing memory.
Optionally, in the present embodiment, processor is executed according to stored program code in storage medium by audio numberAccording to being output to audio output interface.
Optionally, in the present embodiment, processor executes according to stored program code in storage medium and receives pauseRecord command;Audio data is written in the memory of target process by response pause record command, stopping.
Optionally, in the present embodiment, processor executes according to stored program code in storage medium and obtains configurationInformation, wherein configuration information, which is used to indicate, allows the audio data exported to intended application in recording application to record.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent productSale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the inventionSubstantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art schemeThe form of part product embodies, which is stored in a storage medium, including some instructions are used so that onePlatform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present inventionState all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodimentThe part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others sideFormula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only oneKind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine orIt is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual itBetween coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or moduleIt connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, you can be located at a place, or may be distributed over multipleIn network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can alsoIt is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated listThe form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the artFor member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answeredIt is considered as protection scope of the present invention.