CN106412767B - Sound mixing method and sound mixing circuit - Google Patents

Sound mixing method and sound mixing circuit Download PDF

Info

Publication number
CN106412767B
CN106412767B CN201611076036.3A CN201611076036A CN106412767B CN 106412767 B CN106412767 B CN 106412767B CN 201611076036 A CN201611076036 A CN 201611076036A CN 106412767 B CN106412767 B CN 106412767B
Authority
CN
China
Prior art keywords
data
pulse code
code modulation
analog signal
digital
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.)
Active
Application number
CN201611076036.3A
Other languages
Chinese (zh)
Other versions
CN106412767A (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611076036.3A priority Critical patent/CN106412767B/en
Publication of CN106412767A publication Critical patent/CN106412767A/en
Application granted granted Critical
Publication of CN106412767B publication Critical patent/CN106412767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Abstract

The invention provides a sound mixing method and a sound mixing circuit, wherein the method comprises the following steps: receiving target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the same transmission channel with the pulse code modulation data; decapsulating the target data to obtain the direct bit stream digital data, and converting the direct bit stream digital data into a first analog signal; converting the pulse code modulation data into a second analog signal; and mixing the first analog signal and the second analog signal. Thus, the direct bit stream digital data is directly converted into the first analog signal, the pulse code modulation data is converted into the second analog signal, and the first analog signal and the second analog signal are mixed, so that the tone quality of the direct bit stream digital format music cannot be reduced.

Description

Sound mixing method and sound mixing circuit
Technical Field
The present invention relates to the field of communications, and in particular, to a sound mixing method and a sound mixing circuit.
Background
Direct bitstream Digital (DSD) format music and Pulse Code Modulation (PCM) format music are significantly different. The PCM is to sample, quantize and encode an analog signal with a certain sampling rate to generate PCM data conforming to PCM interface specifications. DSD is sampled by 1bit stream, and the analog music signal is converted into digital signal by high sampling mode, the DSD data is not in conformity with PCM interface specification, if it is to be transmitted, it must be repackaged according to the requirement of PCM interface and transmitted by PCM interface. The advantage of DSD data is that the sound quality is very good, and in the prior art, when mixing sound, DSD data needs to be converted into PCM data first, and then mixing sound with other PCM data, but when converting DSD data into PCM data, the sound quality is reduced, and the advantage of DSD data itself is weakened. Therefore, the prior art has a problem that the sound quality is degraded when mixing the DSD data and the PCM data.
Disclosure of Invention
Embodiments of the present invention provide a sound mixing method and a sound mixing circuit, so as to solve the problem in the prior art that sound quality is reduced when mixing DSD data and PCM data.
In a first aspect, an embodiment of the present invention provides a sound mixing method, including:
receiving target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the same transmission channel with the pulse code modulation data;
decapsulating the target data to obtain the direct bit stream digital data, and converting the direct bit stream digital data into a first analog signal;
converting the pulse code modulation data into a second analog signal;
and mixing the first analog signal and the second analog signal.
In a second aspect, an embodiment of the present invention further provides a mixing circuit, where the mixing circuit at least includes an application processor unit, a pulse code modulation digital-to-analog converter, a target digital-to-analog converter, and a hardware mixing processing unit, where the application processor unit is connected to the pulse code modulation digital-to-analog converter, the application processor unit is connected to the target digital-to-analog converter, the target digital-to-analog converter is connected to the hardware mixing processing unit, and the pulse code modulation digital-to-analog converter is connected to the hardware mixing processing unit, where:
the application processor unit is used for receiving target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the same transmission channel with the pulse code modulation data;
the target digital-to-analog converter is used for de-encapsulating the target data to obtain the direct bit stream digital data and converting the direct bit stream digital data into a first analog signal;
the pulse code modulation digital-to-analog converter is used for converting the pulse code modulation data into a second analog signal;
the hardware sound mixing processing unit is used for mixing the first analog signal and the second analog signal.
In this way, in the embodiment of the present invention, target data and pulse code modulation data are received, where the target data is data that encapsulates direct bit stream digital data and can be transmitted in the same transmission channel with the pulse code modulation data; decapsulating the target data to obtain the direct bit stream digital data, and converting the direct bit stream digital data into a first analog signal; converting the pulse code modulation data into a second analog signal; and mixing the first analog signal and the second analog signal. Thus, the direct bit stream digital data is directly converted into the first analog signal, the pulse code modulation data is converted into the second analog signal, and the first analog signal and the second analog signal are mixed, so that the tone quality of the direct bit stream digital format music cannot be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a mixing method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of mixing multiple direct bit stream digital data and multiple pulse code modulation data according to a first embodiment of the present invention;
FIG. 3 is a flow chart of another mixing method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of mixing direct bit stream digital data and pulse code modulation data according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of another mixing of direct bit stream digital data and pulse code modulation data according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a mixing circuit according to a third embodiment of the present invention;
fig. 7 is a schematic diagram of another mixing circuit according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First embodiment
Referring to fig. 1, fig. 1 is a flowchart of a mixing method according to an embodiment of the present invention, and as shown in fig. 1, the mixing method includes the following steps:
step 101, receiving target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the same transmission channel with the pulse code modulation data.
In step 101, the direct bit stream digital data is not compliant with the pulse code modulation interface specification, and if it is to be transmitted, it must be repackaged according to the requirements of the pulse code modulation interface and transmitted by the pulse code modulation interface. The direct bitstream digital data encapsulated using the (DOP, DSD Over PCM) protocol may be encapsulated using a pulse code modulation transmission channel, which is referred to as DOP data, so that the DOP data may be transmitted using the pulse code modulation transmission channel, i.e., the direct bitstream digital data encapsulated using the DOP protocol. It should be noted that the direct bit stream digital data cannot be directly transmitted on the pcm transmission channel, and after the DOP protocol is used to encapsulate the direct bit stream digital data, the encapsulated direct bit stream digital data can be transmitted on the pcm transmission channel.
One pulse code modulation transmission channel can only transmit one path of DOP data, and a plurality of pulse code modulation transmission channels are needed when the simultaneous transmission of a plurality of paths of DOP data is required. For example, three pulse code modulation transmission channels are required to transmit three paths of DOP data simultaneously. The DOP data and the pcm data cannot be transmitted on the same pcm transmission channel, but the multiple pcm data may be mixed by software, that is, the multiple pcm data may be mixed into one total pcm data to be transmitted on one pcm transmission channel. Fig. 2 is a schematic diagram of mixing multiple direct bit stream digital data and multiple pulse code modulation data.
Here, a description will be given taking an example in which one channel of direct bit stream digital data and one channel of pulse code modulation data are mixed.
Firstly, the direct bit stream digital data can be encapsulated by using the DOP protocol to form DOP data, the DOP data is transmitted on one pulse code modulation transmission channel, one pulse code modulation data is transmitted on the other pulse code modulation transmission channel, and after the transmission is finished, the DOP data and the pulse code modulation data are input into the application processor unit.
The DOP data has header information, namely the DOP data header has symbolic data, the application processor unit can distinguish the DOP data from the pulse code modulation data through the header information, the data with the header information is the DOP data, and the data without the header information is the pulse code modulation data. After the application processor unit recognizes the DOP data, the DOP data is transmitted to a target digital-to-analog converter, i.e., a DOP digital-to-analog converter, and after the application processor unit recognizes the pulse code modulation data, the pulse code modulation data is transmitted to a pulse code modulation digital-to-analog converter.
Step 102, decapsulating the target data to obtain the direct bitstream digital data, and converting the direct bitstream digital data into a first analog signal.
In step 102, after the application processor unit transmits the DOP data to the target digital-to-analog converter, i.e. the DOP digital-to-analog converter, the DOP digital-to-analog converter decapsulates the target data, i.e. removes the header information of the DOP data, and obtains the direct bitstream digital data. The DOP digital to analog converter then converts the direct bit stream digital data directly to the first analog signal.
It should be noted that, in the present invention, the DOP digital-to-analog converter directly converts the direct bit stream digital data into the first analog signal, and does not need to convert the direct bit stream digital data into the pulse code modulation data first and then convert the pulse code modulation data into the analog signal, i.e. the DOP digital-to-analog converter supports native hardware decoding, and since the direct bit stream digital data does not need to be converted into the pulse code modulation data, the sound quality of the direct bit stream digital format music after audio mixing is not affected. The DOP digital-to-analog converter can be a decoding chip ES9038, and can also be other chips supporting native hardware decoding.
Step 103, converting the pulse code modulation data into a second analog signal.
After the application processor unit has supplied the pulse code modulation data to the pulse code modulation digital-to-analog converter in step 103, the pulse code modulation digital-to-analog converter converts the pulse code modulation data into a second analog signal.
And 104, mixing the first analog signal and the second analog signal.
In step 104, after the DOP dac outputs the first analog signal, the first analog signal may be input to a first preamplifier unit, which is an analog signal power amplifier unit, so as to increase the power of the input analog signal. After the first analog signal passes through the first headphone amplifier unit, the power of the first analog signal is increased to a first preset power, and then the first analog signal whose power is increased to the first preset power is input into the first output impedance unit, which can be used to adjust the driving capability of the direct bit stream digital data path, control the mixing ratio and the path current during mixing, and after passing through the first output impedance unit, the mixing ratio of the first analog signal is determined.
After the pulse code modulation digital-to-analog converter outputs the second analog signal, the second analog signal can also be input into the second ear amplifying unit, so that the power of the second analog signal is increased to a second preset power, then the second analog signal with the power increased to the second preset power can be input into the second output impedance unit, and after passing through the second output impedance unit, the mixing ratio of the second analog signal is determined.
At this time, the power can be increased to a first preset power, the first analog signal and the power with the determined mixing ratio are increased to a second preset power, the second analog signal with the determined mixing ratio is subjected to mixing processing, after mixing is completed, the mixed analog signal can be input to a playing device for playing, and the playing device can be a hardware output device such as an earphone or a sound device.
It should be noted that if there is audio format data other than the direct bit stream digital data and not pulse code modulation samples, mixing can be performed in the above manner.
The sound mixing method of the embodiment of the invention receives target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the same transmission channel with the pulse code modulation data; decapsulating the target data to obtain the direct bit stream digital data, and converting the direct bit stream digital data into a first analog signal; converting the pulse code modulation data into a second analog signal; and mixing the first analog signal and the second analog signal. Thus, the direct bit stream digital data is directly converted into the first analog signal, the pulse code modulation data is converted into the second analog signal, and the first analog signal and the second analog signal are mixed, so that the tone quality of the direct bit stream digital format music cannot be reduced.
Second embodiment
Referring to fig. 3, fig. 3 is a flowchart of another mixing method provided by the embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301, receiving target data and pulse code modulation data, where the target data is data that encapsulates direct bit stream digital data and can be transmitted in the same transmission channel with the pulse code modulation data.
In step 301, the DOP protocol may be used to encapsulate the direct bit stream digital data into DOP data, such that the DOP data may be transmitted over the pulse code modulation transmission channel. And transmitting DOP data on one pulse code modulation transmission channel, transmitting pulse code modulation data on the other pulse code modulation transmission channel, and inputting the DOP data and the pulse code modulation data into the application processor unit after the transmission is finished.
The application processor unit identifies the received data through the header information of the DOP data, the data which is identified as the DOP data if the header information is provided, the data which is not provided with the header information is identified as the pulse code modulation data, the DOP data can be input into the DOP digital-to-analog converter after the DOP data is identified, and the pulse code modulation data can be input into the pulse code modulation digital-to-analog converter after the pulse code modulation data is identified.
Step 302, decapsulating the target data to obtain the direct bitstream digital data, and converting the direct bitstream digital data into a first analog signal.
In step 302, after the application processor unit transmits the DOP data to the target digital-to-analog converter, i.e. the DOP digital-to-analog converter, the DOP digital-to-analog converter decapsulates the target data, i.e. removes the header information of the DOP data, and obtains the direct bitstream digital data. The DOP digital to analog converter then converts the direct bit stream digital data directly to the first analog signal.
Step 303, converting the pulse code modulation data into a second analog signal.
In step 303, after the application processor unit transmits the pulse code modulation data to the pulse code modulation digital-to-analog converter, the pulse code modulation digital-to-analog converter converts the pulse code modulation data into a second analog signal.
Optionally, the pulse code modulation data is pulse code modulation data obtained by mixing multiple paths of pulse code modulation data.
In the first embodiment, it is mentioned that the multiple channels of pulse code modulation data can be mixed by software, that is, when multiple channels of pulse code modulation data exist, the multiple channels of pulse code modulation data may be mixed by software, after the software mixing is completed, one channel of total pulse code modulation data is obtained, and then one pulse code modulation transmission channel is used to transmit the total pulse code modulation data. For example, when there are three paths of pulse code modulation data, the three paths of pulse code modulation data may be subjected to software sound mixing, after the software sound mixing is completed, a path of total pulse code modulation data is obtained, and then a pulse code modulation transmission channel is used to transmit the path of total pulse code modulation data.
Fig. 4 is a schematic diagram of mixing direct-bit-stream digital data and pulse code modulation data.
In fig. 4, there are a direct bit stream digital data channel and a pulse code modulation data channel, and the application processor unit outputs a DOP data to the direct bit stream digital data channel, and the application processor unit outputs a pulse code modulation data to the pulse code modulation data channel.
On the direct bit stream digital data channel, the DOP data firstly enters the DOP digital-to-analog converter, the DOP digital-to-analog converter unpacks the DOP data, namely, the head information of the DOP data is removed to obtain the direct bit stream digital data, and then the DOP digital-to-analog converter directly converts the direct bit stream digital data into a first analog signal. After the first analog signal is output from the DOP digital-to-analog converter, the first analog signal may enter the first ear amplifying unit, and the first ear amplifying unit is an analog signal power amplifying unit, which may increase the power of the input analog signal. After the first analog signal passes through the first headphone amplifier unit, the power of the first analog signal is increased to a first preset power, and then the first analog signal whose power is increased to the first preset power is input into the first output impedance unit, which can be used to adjust the driving capability of the direct bit stream digital data channel, control the mixing ratio and the path current during mixing, and after passing through the first output impedance unit, the mixing ratio of the first analog signal is determined.
On the pulse code modulation data channel, the pulse code modulation data firstly enter a pulse code modulation digital-to-analog converter, and the pulse code modulation digital-to-analog converter can convert the pulse code modulation data into a second analog signal. After the second analog signal is output from the pulse code modulation digital-to-analog converter, the second analog signal can enter a second ear amplifying unit, and the second ear amplifying unit is an analog signal power amplifying unit, so that the power of the input analog signal can be improved. After the second analog signal passes through the second headphone amplifier unit, the power of the second analog signal is increased to a second preset power, and then the second analog signal whose power is increased to the second preset power is input to the second output impedance unit, which can be used to adjust the driving capability of the pulse code modulation data channel, to control the mixing ratio and the path current during mixing, and after passing through the second output impedance unit, the mixing ratio of the second analog signal is determined. And on the pulse code modulation data channel, there is a switch unit, the switch unit is at least a double-pole double-throw switch, when needing the direct bit stream digital data and the pulse code modulation data to mix sound, the pulse code modulation data channel is connected to the direct bit stream digital data channel through the switch unit, so the first analog signal and the second analog signal are merged together, then the merged first analog signal and the second analog signal enter the hardware mixing processing unit, the first analog signal and the second analog signal are mixed sound, after mixing sound, the mixed analog signal is input to the playing device to play. The hardware mixing processing unit includes, but is not limited to, a multi-channel analog signal superposition circuit and a hardware control circuit for preventing the occurrence of clipping distortion after the analog signals are superposed, and the playing device may be a hardware output device such as an earphone or a sound.
There are many cases of mixing the direct bit stream digital data and the pulse code modulation data, for example, a terminal may play two songs with different formats at the same time, one song with the direct bit stream digital format and one song with the pulse code modulation format. Or, when the terminal is used for playing the song, if a short message is received at the moment or a call request is received, a prompt tone is generated, the two are not interfered with each other, namely, the song can still be played without interruption, the prompt tone can be sounded normally, and the song and the prompt tone can be played simultaneously.
It should be noted that, when the mixing of the direct bit stream digital data and the pulse code modulation data is not required, the pulse code modulation data channel may not be connected to the direct bit stream digital data channel, and the signal input to the playing device is only the first analog signal, that is, the playing device only plays the music in the direct bit stream digital format.
In addition, a switch unit may be added to the direct bit stream digital data channel, and when the direct bit stream digital data and the pulse code modulation data are required to be mixed, the direct bit stream digital data channel is connected to the pulse code modulation data channel through the switch unit on the direct bit stream digital data channel, so as to realize the mixing of the first analog signal and the second analog signal. When the mixing of the direct bit stream digital data and the pulse code modulation data is not needed, the direct bit stream digital data channel is not connected to the pulse code modulation data channel, and the signal input to the playing device is only the second analog signal, namely, the playing device only plays music in the pulse code modulation format.
Optionally, the pulse code modulation data includes multiple paths of pulse code modulation data, and the converting the pulse code modulation data into a second analog signal includes:
respectively carrying out digital-to-analog conversion on the multiple paths of pulse code modulation data to obtain a second analog signal of each path of pulse code modulation data;
the mixing the first analog signal and the second analog signal includes:
and mixing the first analog signal and the second analog signal of each path of pulse code modulation data.
When multiple paths of pulse code modulation data exist, software sound mixing is not needed, the multiple paths of pulse code modulation data are transmitted by a plurality of pulse code modulation transmission channels, and after transmission is finished, sound mixing of analog signals is achieved.
It should be noted that, when software audio mixing is not performed, several channels of pcm data are required, and several channels of pcm data are also required. For example, when there are two channels of pulse code modulation data, two pulse code modulation transmission channels are required, and two pulse code modulation data channels are also required.
The following is a description taking the mixing of two-way pulse code modulation data and two-way direct bit stream digital data as an example, and as shown in fig. 5, it is another schematic diagram of mixing the direct bit stream digital data and the pulse code modulation data.
The two paths of pulse code modulation data are transmitted to the application processor unit through two pulse code modulation transmission channels, and the two paths of DOP data are transmitted to the application processor unit through two pulse code modulation transmission channels.
After the application processor unit identifies two paths of pulse code modulation data, a first path of pulse code modulation data is input to a first pulse code modulation data channel, the first path of pulse code modulation data firstly enters a pulse code modulation digital-to-analog converter on the first pulse code modulation data channel to output a first path of second analog signal, and then the first path of second analog signal is subjected to power improvement through an ear amplifier unit and is subjected to output impedance unit to determine the sound mixing proportion.
And inputting the second path of pulse code modulation data to a second pulse code modulation data channel, wherein the second path of pulse code modulation data firstly enters a pulse code modulation digital-to-analog converter on the second pulse code modulation data channel to output a second path of second analog signal, and then the second path of second analog signal is subjected to power improvement through an ear amplifier unit and is subjected to output impedance unit to determine the sound mixing proportion.
After the application processor unit identifies two paths of DOP data, a first path of DOP data is input to a first direct bit stream digital data channel, the first path of DOP data firstly enters a DOP digital-to-analog converter on the first direct bit stream digital data channel to output a first path of first analog signal, and then the first path of first analog signal is subjected to power increase through the ear amplifying unit and is subjected to output impedance unit to determine the sound mixing proportion.
Inputting a second path of DOP data to a second direct bit stream digital data channel, wherein the second path of DOP data firstly enters a DOP digital-to-analog converter on the second direct bit stream digital data channel to output a second path of first analog signal, and then the second path of first analog signal is subjected to power increase through an ear-to-ear amplifier unit and is subjected to output impedance unit to determine the mixing ratio.
When sound mixing is needed, the first pulse code modulation data channel is connected to the first direct bit stream digital data channel through the switch unit on the first pulse code modulation data channel, the second pulse code modulation data channel is connected to the first direct bit stream digital data channel through the switch unit on the second pulse code modulation data channel, the second direct bit stream digital data channel is connected to the first direct bit stream digital data channel through the switch unit on the second direct bit stream digital data channel, so that the first path of second analog signal, the second path of second analog signal, the first path of first analog signal and the second path of first analog signal are converged on the first direct bit stream digital data channel, and then the four paths of analog signals are input to the hardware sound mixing processing unit together for sound mixing processing, and finally, inputting the mixed analog signal into a playing device for playing.
It should be noted that the multiple paths of pulse code modulation data may not only be two paths of pulse code modulation data, but also be three paths of pulse code modulation data or four paths of pulse code modulation data, and the like, and the multiple paths of direct bit stream digital data may not only be two paths of direct bit stream digital data, but also may be three paths of direct bit stream digital data or four paths of direct bit stream digital data, and the like, which is only an example.
Step 304, increasing the power of the first analog signal to a first preset power, increasing the power of the second analog signal to a second preset power, and mixing the first analog signal with the power increased to the first preset power and the second analog signal with the power increased to the second preset power.
In step 304, after the DOP dac outputs the first analog signal, the first analog signal may be input to the am unit, and after the first analog signal passes through the am unit, the power of the first analog signal is increased to a first predetermined power, and after the pcm dac outputs the second analog signal, the second analog signal may be input to the am unit, so that the power of the second analog signal is increased to a second predetermined power, and the first analog signal whose power is increased to the first predetermined power and the second analog signal whose power is increased to the second predetermined power may be mixed.
It should be noted that if there is audio format data other than the direct bit stream digital data and not pulse code modulation samples, mixing can be performed in the above manner.
According to the sound mixing method provided by the embodiment of the invention, the DOP digital-to-analog converter unpacks the DOP data, removes the head information of the DOP data, obtains the direct bit stream digital data, then the DOP digital-to-analog converter directly converts the direct bit stream digital data into the first analog signal, the pulse code modulation digital-to-analog converter converts the pulse code modulation data into the second analog signal, and then the first analog signal and the second analog signal are mixed, so that the sound quality of the direct bit stream digital format music cannot be reduced.
Third embodiment
As shown in fig. 6, this embodiment provides a mixing circuit, the mixing circuit at least includes an application processor unit 601, a pulse code modulation digital-to-analog converter 602, a target digital-to-analog converter 603 and a hardware mixing processing unit 604, the application processor unit 601 is connected to the pulse code modulation digital-to-analog converter 602, the application processor unit 601 is connected to the target digital-to-analog converter 603, the target digital-to-analog converter 603 is connected to the hardware mixing processing unit 604, and the pulse code modulation digital-to-analog converter 602 is connected to the hardware mixing processing unit 604, wherein:
the application processor unit 601 is configured to receive target data and pulse code modulation data, where the target data is data that encapsulates direct bit stream digital data and can be transmitted in the same transmission channel with the pulse code modulation data.
In fig. 6, the mixer circuit has two data channels, one is a pcm data channel, and the other is a direct bitstream digital data channel, and there is a pcm digital-to-analog converter 602 in the pcm data channel, and there is a target digital-to-analog converter 603 in the direct bitstream digital data channel, where the target digital-to-analog converter 603 is a DOP digital-to-analog converter.
First, the DOP protocol may be used to encapsulate the direct bit stream digital data to form DOP data, transmit the DOP data on one pcm transmission channel, transmit the pulse code modulation data on the other pcm transmission channel, and after the transmission is completed, input the DOP data and the pulse code modulation data into the application processor unit 601. The application processor unit 601 recognizes the data of the two formats, and after recognizing the DOP data, transmits the DOP data to the direct bit stream digital data channel, and after recognizing the pcm data, transmits the pcm data to the pcm data channel.
The target digital-to-analog converter 603 is configured to decapsulate the target data to obtain the direct bit stream digital data, and convert the direct bit stream digital data into a first analog signal.
After the DOP data is transmitted to the direct bitstream digital data channel, the DOP data will first enter the target digital-to-analog converter 603 on the direct bitstream digital data channel, i.e. the DOP digital-to-analog converter, and the DOP digital-to-analog converter will decapsulate the target data, i.e. decapsulate the DOP data, remove the header information of the DOP data, and obtain the direct bitstream digital data. The DOP digital to analog converter then converts the direct bit stream digital data directly to the first analog signal.
The pulse code modulation digital-to-analog converter 602 is configured to convert the pulse code modulation data into a second analog signal.
After the pulse code modulation data is transmitted to the pulse code modulation data channel, the pulse code modulation data will first enter the pulse code modulation digital-to-analog converter 602 on the pulse code modulation data channel, and the pulse code modulation digital-to-analog converter 602 will convert the input pulse code modulation data into the second analog signal.
Optionally, the pulse code modulation data is pulse code modulation data obtained by mixing multiple paths of pulse code modulation data.
The multiple paths of pulse code modulation data can realize software sound mixing, namely when the multiple paths of pulse code modulation data exist, the multiple paths of pulse code modulation data can be subjected to software sound mixing firstly, after the software sound mixing is finished, one path of total pulse code modulation data is obtained, and then one pulse code modulation transmission channel is used for transmitting the total pulse code modulation data. After the transmission is completed, the total pulse code modulation data is input to the application processor unit 601, because the original multiple paths of pulse code modulation data are already mixed into one path of total pulse code modulation data by software, at this time, only one pulse code modulation data channel is needed, and only one pulse code modulation digital-to-analog converter 602 is needed on the pulse code modulation data channel, after the application processor unit 601 transmits the total pulse code modulation data to the pulse code modulation data channel, the total pulse code modulation data enters the pulse code modulation digital-to-analog converter 602 on the pulse code modulation data channel first, and then the pulse code modulation digital-to-analog converter 602 converts the total pulse code modulation data into a second analog signal. And the application processor unit 601 will transmit the received DOP data to the direct bitstream digital data channel, and then the DOP data will enter the DOP digital-to-analog converter on the direct bitstream digital data channel first, and the DOP digital-to-analog converter will decapsulate the input DOP data, remove the header information of the DOP data, and obtain the direct bitstream digital data. The DOP digital to analog converter then converts the direct bit stream digital data directly to the first analog signal. Finally, the second analog signal corresponding to the total pulse code modulation data and the first analog signal corresponding to the direct bit stream digital data realize sound mixing.
Optionally, the pulse code modulation data includes multiple paths of pulse code modulation data, and the pulse code modulation digital-to-analog converter 602 is configured to perform digital-to-analog conversion on the multiple paths of pulse code modulation data respectively to obtain a second analog signal of each path of pulse code modulation data;
the hardware mixing processing unit 604 is configured to mix the first analog signal and the second analog signal of each channel of pulse code modulation data.
When multiple paths of pulse code modulation data exist, software sound mixing is not needed, the multiple paths of pulse code modulation data are transmitted by a plurality of pulse code modulation transmission channels, and after transmission is finished, sound mixing of analog signals is achieved.
For example, if there are three paths of pulse code modulation data, three paths of pulse code modulation data may be transmitted using three pulse code modulation transmission channels, after the transmission is completed, the three paths of pulse code modulation data may reach the application processor unit 601, then the application processor unit 601 may respectively transmit the three paths of pulse code modulation data to three pulse code modulation data channels, each pulse code modulation data channel has a pulse code modulation digital-to-analog converter 602, on each pulse code modulation data channel, the pulse code modulation data may first enter the pulse code modulation digital-to-analog converter 602, the pulse code modulation digital-to-analog converter 602 may convert the input pulse code modulation data into a second analog signal, and the pulse code modulation digital-to-analog converter 602 on each pulse code modulation data channel may output a second analog signal, so that there are a total of three second analog signals.
And the application processor unit 601 will transmit the received DOP data to the direct bitstream digital data channel, then the DOP data will first enter the DOP digital-to-analog converter on the direct bitstream digital data channel, the DOP digital-to-analog converter will decapsulate the input DOP data, remove the header information of the DOP data to obtain the direct bitstream digital data, and then the DOP digital-to-analog converter will directly convert the direct bitstream digital data into the first analog signal. And finally, mixing three second analog signals corresponding to the three paths of pulse code modulation data with the first analog signal corresponding to the direct bit stream digital data.
It should be noted that the multiple pulse code modulation data may be not only three-way pulse code modulation data, but also two-way pulse code modulation data or four-way pulse code modulation data, and the like, and the above manner is merely an example.
The hardware mixing processing unit 604 is configured to mix the first analog signal and the second analog signal.
After the target dac 603 outputs the first analog signal, that is, after the DOP dac outputs the first analog signal, and the pcm dac 602 outputs the second analog signal, the first analog signal and the second analog signal are input to the hardware mixing processing unit 604, and the hardware mixing processing unit 604 performs mixing processing on the first analog signal and the second analog signal.
Optionally, the audio mixing circuit further includes a first audio playing unit 605 and a second audio playing unit 606, where the first audio playing unit 605 is connected to the target digital-to-analog converter 603, the second audio playing unit 606 is connected to the pulse code modulation digital-to-analog converter 602, the first audio playing unit 605 is connected to the hardware audio mixing processing unit 604, and the second audio playing unit 606 is connected to the hardware audio mixing processing unit 604, where:
the first ear amplifying unit 605 is configured to increase the power of the first analog signal to a first preset power;
the second preamplifier unit 606 is configured to increase the power of the second analog signal to a second preset power;
the hardware mixing processing unit 604 is configured to mix a first analog signal with a power increased to the first preset power with a second analog signal with a power increased to the second preset power.
The audio mixing circuit can also comprise an ear playing unit, wherein the ear playing unit is an analog signal power amplifying unit and can improve the power of an input analog signal.
As shown in fig. 7, in another mixing circuit provided in this embodiment, the mixing circuit shown in fig. 7 has two data channels in common, one is a pulse code modulation data channel, and the other is a direct bit stream digital data channel, on the pulse code modulation data channel, there are a pulse code modulation digital-to-analog converter 602 and a second headphone amplifier unit 606, on the direct bit stream digital data channel, there are a target digital-to-analog converter 603 and a first headphone amplifier unit 605, and the target digital-to-analog converter 603 is a DOP digital-to-analog converter.
On the direct bit stream digital data channel, after the target digital-to-analog converter 603 outputs the first analog signal, that is, after the DOP digital-to-analog converter outputs the first analog signal, the first analog signal may be input into the first ear-to-ear amplifying unit 605, and after the first analog signal passes through the first ear-to-ear amplifying unit 605, the power of the first analog signal is increased to the first preset power, and on the pcm data channel, after the pcm digital-to-analog converter 602 outputs the second analog signal, the second analog signal may also be input into the second ear-to-ear amplifying unit 606, so that the power of the second analog signal is increased to the second preset power, and finally, the hardware mixing processing unit 604 may mix the first analog signal whose power is increased to the first preset power with the second analog signal whose power is increased to the second preset power.
It should be noted that if there is audio format data other than the direct bit stream digital data and not pulse code modulation samples, mixing can be performed in the above manner.
In this embodiment, on the audio mixing circuit, the DOP digital-to-analog converter decapsulates the DOP data, removes the header information of the DOP data to obtain direct bit stream digital data, and then the DOP digital-to-analog converter directly converts the direct bit stream digital data into a first analog signal, and the pulse code modulation digital-to-analog converter converts the pulse code modulation data into a second analog signal, and then mixes the first analog signal with the second analog signal, so that the sound quality of the direct bit stream digital format music is not reduced.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
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 embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. 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 of the present invention.
In addition, functional units in the embodiments of the present invention 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 functions, if implemented in the form of software functional units 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 invention may be embodied in the form of 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 invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A mixing circuit, characterized in that, the mixing circuit at least includes an application processor unit, a pulse code modulation digital-to-analog converter, a target digital-to-analog converter and a hardware mixing processing unit, the application processor unit is connected with the pulse code modulation digital-to-analog converter, the application processor unit is connected with the target digital-to-analog converter, the target digital-to-analog converter is connected with the hardware mixing processing unit, the pulse code modulation digital-to-analog converter is connected with the hardware mixing processing unit, wherein:
the application processor unit is used for receiving target data and pulse code modulation data, wherein the target data is data which encapsulates direct bit stream digital data and can be transmitted by using the direct bit stream digital data and the pulse code modulation data together in the same transmission channel, the target data comprises DOP data, and the DOP data has header information; the application processing unit distinguishes DOP data and pulse code modulation data through the header information, the data with the header information is DOP data, and the data without the header information is pulse code modulation data; after identifying the DOP data, the application processing unit transmits the DOP data to the target digital-to-analog converter; after the application processing unit identifies the pulse code modulation data, the pulse code modulation data are transmitted to the pulse code modulation digital-to-analog converter;
the target digital-to-analog converter is used for de-encapsulating the target data to obtain the direct bit stream digital data and converting the direct bit stream digital data into a first analog signal;
the pulse code modulation digital-to-analog converter is used for converting the pulse code modulation data into a second analog signal;
the hardware sound mixing processing unit is used for mixing the first analog signal and the second analog signal;
the sound mixing circuit further comprises a first output impedance unit and a second output impedance unit;
the first output impedance unit is used for determining the mixing proportion of the first analog signal as a first proportion;
the second output impedance unit is used for determining the mixing proportion of the second analog signal to be a second proportion;
the hardware sound mixing processing unit is specifically configured to mix a first analog signal with a sound mixing ratio of the first ratio and a second analog signal with a sound mixing ratio of the second ratio.
2. The mixing circuit according to claim 1, wherein the pulse code modulation data is pulse code modulation data obtained by mixing a plurality of paths of pulse code modulation data.
3. The mixing circuit according to claim 1, wherein the pcm data comprises multiple channels of pcm data, and the pcm digital-to-analog converter is configured to perform digital-to-analog conversion on the multiple channels of pcm data, respectively, to obtain a second analog signal of each channel of pcm data;
the hardware sound mixing processing unit is used for mixing the first analog signal and the second analog signal of each path of pulse code modulation data.
4. The mixing circuit according to any of claims 1-3, further comprising a first headphone unit and a second headphone unit, the first headphone unit being connected to the target digital-to-analog converter, the second headphone unit being connected to the pulse code modulation digital-to-analog converter, the first headphone unit being connected to the hardware mixing processing unit, the second headphone unit being connected to the hardware mixing processing unit, wherein:
the first ear amplifying unit is used for increasing the power of the first analog signal to a first preset power;
the second ear amplifying unit is used for increasing the power of the second analog signal to a second preset power;
the hardware sound mixing processing unit is used for mixing a first analog signal with power increased to the first preset power and a second analog signal with power increased to the second preset power.
CN201611076036.3A 2016-11-29 2016-11-29 Sound mixing method and sound mixing circuit Active CN106412767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611076036.3A CN106412767B (en) 2016-11-29 2016-11-29 Sound mixing method and sound mixing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076036.3A CN106412767B (en) 2016-11-29 2016-11-29 Sound mixing method and sound mixing circuit

Publications (2)

Publication Number Publication Date
CN106412767A CN106412767A (en) 2017-02-15
CN106412767B true CN106412767B (en) 2020-03-31

Family

ID=58083942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076036.3A Active CN106412767B (en) 2016-11-29 2016-11-29 Sound mixing method and sound mixing circuit

Country Status (1)

Country Link
CN (1) CN106412767B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107204191A (en) * 2017-05-17 2017-09-26 维沃移动通信有限公司 A kind of sound mixing method, device and mobile terminal
WO2019136675A1 (en) * 2018-01-11 2019-07-18 华为技术有限公司 Terminal device, dsd audio playback circuit and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166317A (en) * 2006-10-17 2008-04-23 智多微电子(上海)有限公司 A method and corresponding device for providing mobile equipment with sound mixing function
CN101778185A (en) * 2009-01-13 2010-07-14 联芯科技有限公司 On-line recording method and device of mobile terminal
CN105913860A (en) * 2015-12-18 2016-08-31 乐视致新电子科技(天津)有限公司 Method and apparatus for playing high-fidelity (HIFI) sound through multiple players
CN106205625A (en) * 2016-07-26 2016-12-07 维沃移动通信有限公司 A kind of audio mixing player method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040213350A1 (en) * 2003-04-24 2004-10-28 Frith Peter J. Interface format for PCM and DSD devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166317A (en) * 2006-10-17 2008-04-23 智多微电子(上海)有限公司 A method and corresponding device for providing mobile equipment with sound mixing function
CN101778185A (en) * 2009-01-13 2010-07-14 联芯科技有限公司 On-line recording method and device of mobile terminal
CN105913860A (en) * 2015-12-18 2016-08-31 乐视致新电子科技(天津)有限公司 Method and apparatus for playing high-fidelity (HIFI) sound through multiple players
CN106205625A (en) * 2016-07-26 2016-12-07 维沃移动通信有限公司 A kind of audio mixing player method and mobile terminal

Also Published As

Publication number Publication date
CN106412767A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US11109138B2 (en) Data transmission method and system, and bluetooth headphone
CN102301336B (en) Dynamically provisioning a device with audio processing capability
CN107749299B (en) Multi-audio output method and device
DE69916104D1 (en) WIRELESS DIGITAL SPEAKER SYSTEM
US20090196438A1 (en) Multimedia processor chip and method for processing audio signals
US20230069653A1 (en) Audio Transmission Method and Electronic Device
CN106412767B (en) Sound mixing method and sound mixing circuit
US6642876B2 (en) Method and system of operating a codec in an operational mode
CN105024764A (en) Audio-format-based file transmission method and system
CN108989918B (en) Audio processing device and audio playing system
CN115617303A (en) Audio input and output system, method and electronic equipment
CN109587600B (en) Multi-channel audio multiplexing device and electronic equipment
CN112216290A (en) Audio data transmission method and device and playing equipment
US7236599B1 (en) Generating separate analog audio programs from a digital link
KR100551381B1 (en) Wireless digital receiver for the head-phone output of the optical disk player
KR100342505B1 (en) Apparatus and method for simultaneously transmitting and recording voice signals of mobile station in mobile telecommunication system
US20220124201A1 (en) Multipoint control method, apparatus and program
KR100783395B1 (en) Apparatus for wirless speaker of digital broadcasting receiver
US20040049304A1 (en) Method and apparatus for digital signal communication between equalizer and surround sound systems
KR100551379B1 (en) Digital receiver of the optical disk player
JP2001186093A (en) Information transmission method and information transmitter
CN105069935A (en) Doorbell button tone processing method and apparatus, and doorbell
KR100551378B1 (en) Digital receiver for a head-phone output of the optical disk player
US20180367927A1 (en) System and method for a redundant real-time wireless receiver network
KR20040060422A (en) A Multi-channel Wireless Audio Transmission Equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant