CN114281293A - Method and related device for independently releasing sound of screen-releasing source process - Google Patents
Method and related device for independently releasing sound of screen-releasing source process Download PDFInfo
- Publication number
- CN114281293A CN114281293A CN202111639692.0A CN202111639692A CN114281293A CN 114281293 A CN114281293 A CN 114281293A CN 202111639692 A CN202111639692 A CN 202111639692A CN 114281293 A CN114281293 A CN 114281293A
- Authority
- CN
- China
- Prior art keywords
- target
- audio
- determining
- screen projection
- sound
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 199
- 238000013507 mapping Methods 0.000 claims abstract description 27
- 238000012544 monitoring process Methods 0.000 claims abstract description 26
- 238000012790 confirmation Methods 0.000 claims abstract description 13
- 230000000007 visual effect Effects 0.000 claims description 10
- 238000012800 visualization Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 13
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005266 casting Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Projection Apparatus (AREA)
Abstract
The application discloses a method and a related device for independently releasing screen-releasing source process sound, wherein the method comprises the following steps: determining a running process and acquiring audio corresponding to the process; associating the process with the audio through an audio interface to create a monitoring mapping table; receiving a target process confirmation instruction, and determining a target process and a target audio according to the target process confirmation instruction and the monitoring mapping table; and visually projecting the target process and the target audio by using a callback function of a monitor. The process sound is separately designed by using the monitoring mapping table, each process is associated with an independent sound cache queue, and when a certain process is projected, the audio of the process is projected without being interfered by other processes and systems.
Description
Technical Field
The present application relates to the field of screen projection technologies, and in particular, to a method and a related device for independently projecting a screen projection source process sound.
Background
The sound of a plurality of processes on the current screen projection source is mixed sound output, and the sound of one process cannot be separated according to the process or the application and is projected on the screen projection terminal equipment, so that the mixed sound of the plurality of processes appears on the screen projection terminal, and sound interference appears.
Disclosure of Invention
The application provides a method and a related device for independently throwing screen throwing source process sound.
The first aspect of the present application provides a method for independently releasing screen-released source process sound, including:
determining a running process and acquiring audio corresponding to the process;
associating the process with the audio through an audio interface to create a monitoring mapping table;
receiving a target process confirmation instruction, and determining a target process and a target audio according to the target process confirmation instruction and the monitoring mapping table;
and visually projecting the target process and the target audio by using a callback function of a monitor.
Optionally, before determining the running process, the method further includes:
determining a screen projection process;
the visual screen projection of the target process and the audio by using the callback function of the monitor comprises the following steps:
and calling back the target process and the target audio to the screen projection process by using a call-back function of a monitor, so that the screen projection process performs visual screen projection on the target process and the target audio.
The second aspect of the present application provides a device for independently projecting screen projection source process sound, including:
the device comprises a first determining unit, a second determining unit and a processing unit, wherein the first determining unit is used for determining a running process and acquiring audio corresponding to the process;
a creating unit for creating a monitoring mapping table by associating the process with the audio through an audio interface;
the receiving/confirming unit is used for receiving a confirmed target process instruction and determining a target process and a target audio according to the confirmed target process instruction and the monitoring mapping table;
and the visualization unit is used for visually projecting the target process and the target audio by using a callback function of a monitor.
Optionally, the apparatus further comprises:
the second determination unit is used for determining a screen projection process;
the visualization unit is further configured to call back the target process and the target audio to the screen projection process by using a call-back function of a monitor, so that the screen projection process performs visual screen projection on the target process and the target audio.
From the above techniques: determining a running process and acquiring audio corresponding to the process; associating the process with the audio through an audio interface to create a monitoring mapping table; receiving a target process confirmation instruction, and determining a target process and a target audio according to the target process confirmation instruction and the monitoring mapping table; and visually projecting the target process and the target audio by using a callback function of a monitor. The process sound is separately designed by using the monitoring mapping table, each process is associated with an independent sound cache, and when a certain process is projected, the audio of the process is projected without being interfered by other processes and systems.
Drawings
Fig. 1 is a schematic flow chart illustrating an embodiment of a method for independently delivering a sound based on a screen-projecting source process according to the present application;
FIG. 2 is a schematic diagram of a design structure of a process audio interface in the method for independently launching process sound based on a screen-launching source in the present application;
fig. 3 is a schematic structural diagram of an embodiment of a device capable of independently releasing sound based on a screen-projection source process in the present application.
Detailed Description
The embodiment of the application provides a method and a related device for independently releasing screen-projecting source process sound.
Referring to fig. 1 and fig. 2, an embodiment of a method for independently delivering a screen-projection source process sound in an embodiment of the present application includes:
101. determining a screen projection process;
in this embodiment, before the system for independently launching the process sound, it needs to determine whether the screen launching process in the system is already started; and when the screen projection process is started, the system determines the screen projection process, namely determines the screen projection process.
102. Determining a running process and acquiring audio corresponding to the process;
after determining the screen projection process, the system further determines that the system is currently in an operating state and can perform all processes (such as process 1, process 2, process 3 and the like shown in fig. 2) of screen projection; and after all running processes are acquired, further acquiring audio information corresponding to all the processes.
In this embodiment, the audio information may be video; it may also be a sound; but also video and sound; the specific examples are not particularly limited herein.
103. Associating the process with the audio through the audio interface to create a monitoring mapping table;
as shown in fig. 2, a monitoring mapping table is created in this embodiment, an audio interface of a process is designed first, and then the monitoring mapping table is created by using the audio interface, specifically: for each process, a table of "process, audio buffer, monitor" (i.e., a monitor mapping table) is created for the process, and when the process calls the audio interface, the process ID, audio buffer, monitor are associated with the process.
In this embodiment, the format stored in the monitoring mapping table is: ID (identification) of process, audio buffer and monitor.
104. Receiving a target process confirmation instruction, and determining a target process and a target audio according to the target process confirmation instruction and the monitoring mapping table;
when a user needs to screen a certain process, the user can input information for screen projection of the certain process into the system by using the input equipment, wherein the information comprises a target process confirming instruction; at this time, the system receives a confirmation target process instruction, for example: when the user needs to screen process 1, the system receives an instruction for confirming that process 1 is the target process.
After receiving the command of the target process, the system determines the target process according to the command of the target process and the monitoring mapping table established in step 103, and further determines the audio corresponding to the target process, i.e. the target audio, according to the target process.
105. And visually projecting the target process and the target audio by using a callback function of the monitor.
In this embodiment, the callback function of the monitor is used to perform visual screen projection on the target process and the audio, specifically, the callback function of the monitor is used to call back the target process and the target audio to the screen projection process, so that the screen projection process performs visual screen projection on the target process and the target audio, and more specifically:
after the target process and the target audio are determined, the screen projection process visually displays the target audio of the target process, the process is selected, the process ID is obtained, the FindProcesssAudioPrime is used for obtaining the monitor of the process according to the ID, a callback function is added to the monitor, the monitor can callback sound to the screen projection process, the sound is not interfered by other processes and is sent to a screen projection equipment terminal through encapsulation, and the screen projection equipment can hear the sound of the process.
The invention designs the process sound in a separated mode by using the monitoring mapping table, each process is associated with an independent sound cache, and the audio of the process is projected when a certain process is projected without being interfered by other processes and systems, so that the problem that the screen projection can only project mixed sound and can not project for an independent application process is solved.
Referring to fig. 2, an embodiment of a device for independently projecting screen projection source process sound in the embodiment of the present application includes:
a first determining unit 201, configured to determine a running process and acquire an audio corresponding to the process;
a creating unit 202 for creating a monitoring mapping table by associating a process with audio through an audio interface;
a receiving/confirming unit 203, configured to receive a confirmation target process instruction, and determine a target process and a target audio according to the confirmation target process instruction and the monitoring mapping table;
and the visualization unit 204 is used for visually projecting the target process and the target audio by using the callback function of the monitor.
In this embodiment, the apparatus may further include:
a second determining unit 205, configured to determine a screen projection process;
the visualization unit 204 is further configured to call back the target process and the target audio to the screen projection process by using a call-back function of the monitor, so that the screen projection process performs visual screen projection on the target process and the target audio.
In this embodiment, after the second determining unit 205 determines the screen projection process, the first determining unit 201 determines the running process and obtains the audio corresponding to the process; after determining the screen-casting process and the running process, the creating unit 202 associates the process and the audio through the audio interface to create a monitoring mapping table, and sends the monitoring mapping table to the receiving/confirming unit 203; the receiving/confirming unit 203 receives the confirmed target process instruction, determines a target process and a target audio according to the confirmed target process instruction and the monitoring mapping table, and sends the target process and the target audio to the visualization unit 204; at this time, the visualization unit 204 uses a callback function of the monitor to call back the target process and the target audio to the screen projection process, so that the screen projection process performs visual screen projection on the target process and the target audio.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
Claims (4)
1. A method for independently releasing screen-projected source process sound is characterized by comprising the following steps:
determining a running process and acquiring audio corresponding to the process;
associating the process with the audio through an audio interface to create a monitoring mapping table;
receiving a target process confirmation instruction, and determining a target process and a target audio according to the target process confirmation instruction and the monitoring mapping table;
and visually projecting the target process and the target audio by using a callback function of a monitor.
2. The method of claim 1, wherein prior to determining the running process, the method further comprises:
determining a screen projection process;
the visual screen projection of the target process and the audio by using the callback function of the monitor comprises the following steps: and calling back the target process and the target audio to the screen projection process by using a call-back function of a monitor, so that the screen projection process performs visual screen projection on the target process and the target audio.
3. A device that a source process sound of throwing screen can independently be put, its characterized in that includes:
the device comprises a first determining unit, a second determining unit and a processing unit, wherein the first determining unit is used for determining a running process and acquiring audio corresponding to the process;
a creating unit for creating a monitoring mapping table by associating the process with the audio through an audio interface;
the receiving/confirming unit is used for receiving a confirmed target process instruction and determining a target process and a target audio according to the confirmed target process instruction and the monitoring mapping table;
and the visualization unit is used for visually projecting the target process and the target audio by using a callback function of a monitor.
4. The apparatus of claim 3, further comprising:
the second determination unit is used for determining a screen projection process;
the visualization unit is further configured to call back the target process and the target audio to the screen projection process by using a call-back function of a monitor, so that the screen projection process performs visual screen projection on the target process and the target audio.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111639692.0A CN114281293A (en) | 2021-12-29 | 2021-12-29 | Method and related device for independently releasing sound of screen-releasing source process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111639692.0A CN114281293A (en) | 2021-12-29 | 2021-12-29 | Method and related device for independently releasing sound of screen-releasing source process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114281293A true CN114281293A (en) | 2022-04-05 |
Family
ID=80878213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111639692.0A Pending CN114281293A (en) | 2021-12-29 | 2021-12-29 | Method and related device for independently releasing sound of screen-releasing source process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114281293A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459456A (en) * | 2020-04-07 | 2020-07-28 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN112243142A (en) * | 2020-10-14 | 2021-01-19 | 北京小米移动软件有限公司 | Method, device and storage medium for processing audio data |
CN113360117A (en) * | 2021-06-28 | 2021-09-07 | 北京字节跳动网络技术有限公司 | Control method and device of electronic equipment, terminal and storage medium |
CN113419701A (en) * | 2021-06-30 | 2021-09-21 | 努比亚技术有限公司 | Sound effect setting method and related equipment |
-
2021
- 2021-12-29 CN CN202111639692.0A patent/CN114281293A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111459456A (en) * | 2020-04-07 | 2020-07-28 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
WO2021204045A1 (en) * | 2020-04-07 | 2021-10-14 | 维沃移动通信有限公司 | Audio control method and electronic device |
CN112243142A (en) * | 2020-10-14 | 2021-01-19 | 北京小米移动软件有限公司 | Method, device and storage medium for processing audio data |
CN113360117A (en) * | 2021-06-28 | 2021-09-07 | 北京字节跳动网络技术有限公司 | Control method and device of electronic equipment, terminal and storage medium |
CN113419701A (en) * | 2021-06-30 | 2021-09-21 | 努比亚技术有限公司 | Sound effect setting method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109995877B (en) | Information pushing method and device | |
CN108965932B (en) | Continuous wheat window display method and device | |
CN110007936B (en) | Data processing method and device | |
CN113900754A (en) | Desktop sharing method and device, computer equipment and storage medium | |
CN112583896B (en) | Session management method, session management device, electronic equipment, session management server and storage medium | |
CN112057846B (en) | Interaction method, device, equipment and storage medium for cloud game service scheduling | |
CN111246238A (en) | Live broadcast method, device, storage medium and live broadcast system | |
EP3174244A1 (en) | Video communication ending method and apparatus, computer program and recording medium | |
CN114281293A (en) | Method and related device for independently releasing sound of screen-releasing source process | |
CN110324432B (en) | Data processing method, device and medium applied to terminal and computing equipment | |
CN110865823A (en) | Pre-installed application control method, pre-installed application control device and storage medium | |
CN107396030B (en) | Video call processing method and scheduling control terminal | |
CN112181340B (en) | AR image sharing method and electronic device | |
US10936275B2 (en) | Asynchronous communications in mixed-reality | |
CN108984074B (en) | Sidebar operation method, device and system, terminal equipment and server | |
US8811587B2 (en) | Selectively filtering incoming communications events in a communications device | |
US20210141864A1 (en) | Configuration for providing a service through a mobile language interpretation platform | |
CN112689086A (en) | Information determination method, electronic equipment and computer readable storage medium | |
CN112035246A (en) | Method, device and system for acquiring virtual resources, electronic equipment and storage medium | |
CN106776057B (en) | Event processing method and device | |
CN111290873A (en) | Fault processing method and device | |
CN110493473A (en) | Method, equipment and the computer storage medium of caller identification | |
CN117421136A (en) | Service keep-alive method and device, electronic equipment and storage medium | |
CN113630508B (en) | Video color ring management method, device, equipment and medium | |
CN112506628B (en) | Agent program management method, device, computer equipment and storage medium |
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 |