CN117742645A - Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing - Google Patents

Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing Download PDF

Info

Publication number
CN117742645A
CN117742645A CN202311651619.4A CN202311651619A CN117742645A CN 117742645 A CN117742645 A CN 117742645A CN 202311651619 A CN202311651619 A CN 202311651619A CN 117742645 A CN117742645 A CN 117742645A
Authority
CN
China
Prior art keywords
mixing
loudspeaker
cross
channel
vertical screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311651619.4A
Other languages
Chinese (zh)
Inventor
郑伟绩
江应顺
刘保良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Fourier Semiconductor Co ltd
Original Assignee
Shanghai Fourier Semiconductor 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 Shanghai Fourier Semiconductor Co ltd filed Critical Shanghai Fourier Semiconductor Co ltd
Priority to CN202311651619.4A priority Critical patent/CN117742645A/en
Publication of CN117742645A publication Critical patent/CN117742645A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application provides a method and a device for realizing horizontal and vertical screen rotation of four speakers by cross mixing, which are particularly implemented by synchronizing a mixing processing process of the speakers and a channel switching process of the speakers.

Description

Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing
Technical Field
The embodiments of the application belong to the field of medical appliances, and particularly relate to a method and a device for realizing transverse and vertical screen rotation of four horns by cross mixing.
Background
Four horns are distributed at four corners of a traditional tablet personal computer, for the tablet personal computer, the whole audio stream only has two channels, namely stereo, the position for really realizing conversion from two channels to four channels is in the power amplifier chips, the principle is that stereo is transmitted to each power amplifier chip, and then left channel and right channel selection is carried out on each power amplifier chip according to rotation angle information.
Conventionally, stereo sound sources are directly input to a power method device, and then after a power amplifier receives a rotation instruction, the power amplifier performs selection of a left channel and a right channel according to a rotation strategy defined in advance.
The audio stream flowing in the whole tablet personal computer is stereo, when the audio stream flows through the power amplifier, the power amplifier at the left side of the tablet personal computer selects a left channel, the power amplifier at the right side of the tablet personal computer selects a right channel, but the operation of directly switching channels can bring noise problem in the music playing process, so that a signal fade-out-channel switching-signal fade-in process is generally carried out in the power amplifier, but the cost of the power amplifier is considered, a signal fade-out and fade-in operation logic unit is not needed, but the signal is directly mute-channel switching-signal on-tone, if the signal is not detected by 0, the detection unit is optimized, only the selection of the channel is reserved on the power amplifier, but the fade or the detection by 0 is also indispensable, and the noise problem is not necessarily caused.
In order to solve the above problem, in the prior art, an integrated software algorithm of an electronic device is used to solve the noise problem through the algorithm, so that signal fade-in and fade-out processing or over-0 detection is realized on the algorithm, and channel selection is realized on a chip of a power amplifier, so that the noise problem can be well solved, but two problems are faced, and one problem is that the signal fade-in and fade-out processing can cause a problem of negligence in hearing.
Disclosure of Invention
In order to solve or alleviate the problems existing in the prior art, the present application provides a method for implementing four-horn horizontal-vertical screen rotation by cross mixing, where the method is applied to an electronic device with four horns, and the method includes:
judging whether the rotation of the electronic equipment is horizontal and vertical screen rotation or not;
if yes, cross mixing processing is carried out on the audio acquired by the left channel and the right channel of each loudspeaker;
after the mixing processing is carried out for a preset time, driving each loudspeaker to switch between a left channel and a right channel;
after the switching completion instruction of the left channel and the right channel of each loudspeaker is obtained, the cross mixing processing of each loudspeaker is stopped.
As a preferred embodiment of the present application, the cross-mixing processing of the audio acquired by the left channel and the right channel of each loudspeaker includes:
uniformly mixing the audio acquired by the left channel and the right channel of each loudspeaker to obtain mixed audio;
and (3) equally dividing the mixed audio into two parts, and respectively distributing the two parts to the left channel and the right channel of the corresponding loudspeaker.
As a preferred embodiment of the present application, the controller for driving each speaker performs switching between a left channel and a right channel, including:
after cross mixing processing is carried out on each loudspeaker through the intermediate file node, an instruction is sent to the loudspeaker at the same time so as to drive the loudspeaker to switch between a left channel and a right channel.
As a preferred embodiment of the present application, the preset time of the mixing process may be adjusted according to requirements.
As a preferred embodiment of the present application, the method further comprises:
and determining whether to start mixing processing and switching between a left channel and a right channel of each loudspeaker according to whether the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds preset time.
As an embodiment of the present application, the determining whether to start the mixing process and the switching between the left channel and the right channel of each speaker according to whether the rotation time of the adjacent two transverse and vertical screens of the sub-device exceeds the preset time includes:
determining whether the interval time between two adjacent transverse and vertical screen rotations of the electronic equipment exceeds a preset time;
if so, if the electronic equipment is in the process of cross mixing, maintaining the cross mixing of the electronic equipment and switching the left channel and the right channel of each loudspeaker;
if not, restarting the cross-mixing process of the electronic equipment and switching the left channel and the right channel of each loudspeaker if the electronic equipment is not in the cross-mixing process at the last time.
As a preferred embodiment of the present application, the method further comprises:
if the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds the preset time and the electronic equipment is still in cross mixing processing last time, after the switching of the left channel and the right channel of each loudspeaker is finished last time and when the switching of the left channel and the right channel is needed to be carried out again, a stop instruction is not sent to stop the cross mixing processing of each loudspeaker.
As a preferred embodiment of the present application, the method further comprises:
judging the time interval between the time point of switching the left channel and the right channel of each loudspeaker and the time point of switching the left channel and the right channel again;
and if the time interval exceeds the preset time, sending a stop instruction to stop the cross mixing process of each loudspeaker.
As a preferred embodiment of the present application, the time point when the left channel and the right channel are switched again is a time point when the electronic device is determined to perform the landscape-portrait screen rotation.
Compared with the prior art, the method for realizing the four-horn horizontal and vertical screen rotation by utilizing the cross mixing provided by the embodiment of the application is specifically implemented by synchronizing the mixing processing process of the horns and the channel switching process of the horns, and because the signals of the left channel and the right channel of each horn are identical in the cross mixing stage, noise cannot be generated when the left channel and the right channel of each horn are switched in the cross mixing stage.
In a second aspect, an embodiment of the present application further provides a device for implementing four-horn horizontal and vertical screen rotation by using cross mixing, where the device includes:
the judging module is used for judging whether the rotation of the electronic equipment is horizontal and vertical screen rotation or not;
the audio mixing module is used for carrying out cross audio mixing processing on the audio acquired by the left channel and the right channel of each loudspeaker if the audio acquired by the left channel and the right channel of each loudspeaker is the same;
the driving module is used for driving each loudspeaker to switch between a left channel and a right channel after the preset time of the sound mixing process;
and the stopping module is used for stopping the cross sound mixing processing of each loudspeaker after the left channel and the right channel of each loudspeaker are switched to complete instructions.
Compared with the prior art, the embodiment of the application also provides a device for realizing the transverse and vertical screen rotation of the four horns by utilizing cross mixing, which has the same beneficial effects as the first aspect and is not repeated here.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. Some specific embodiments of the present application will be described in detail hereinafter by way of example and not by way of limitation with reference to the accompanying drawings. The same reference numbers in the drawings denote the same or similar parts or portions, and it will be understood by those skilled in the art that the drawings are not necessarily drawn to scale, in which:
fig. 1 is a flow chart of a method for realizing horizontal and vertical screen rotation of four speakers by cross mixing according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a device for realizing horizontal and vertical screen rotation of four speakers by cross mixing according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
As shown in fig. 1, an embodiment of the present application provides a method for implementing four-horn horizontal-vertical screen rotation by cross-mixing, where the method is applied to an electronic device with four horns, and the method includes:
step S01, judging whether the rotation of the electronic equipment is horizontal and vertical screen rotation or not;
it should be noted that the embodiment of the present application is applied to an electronic device having four speakers, and the electronic device may be a mobile electronic device, such as a mobile phone and a tablet computer.
An angle sensor is arranged in the electronic equipment, the angle sensor can detect the rotation angle of the electronic equipment, the angle sensor only detects the angle of the electronic equipment on a horizontal screen or a vertical screen, and if the electronic equipment is not on the horizontal screen or the vertical screen, the angle sensor cannot detect that the electronic equipment is in the process of switching the horizontal screen and the vertical screen.
Therefore, the embodiment of the application is mainly aimed at an application scene of channel switching when the electronic equipment is switched between the horizontal screen and the vertical screen.
Step S02, if yes, cross-mixing the audio acquired by the left channel and the right channel of each loudspeaker;
in this embodiment of the present application, if it is determined that the electronic device is switched from a horizontal screen to a vertical screen, or from a vertical screen to a horizontal screen, after audio frequencies of a left channel and a right channel of each loudspeaker are obtained in real time and uniformly mixed, the audio frequencies are equally divided into two parts and then distributed to the left channel and the right channel of each loudspeaker.
In the embodiment of the application, the left channel and right channel mixing processing is implemented on software of the electronic device.
Step S03, after the preset time of the sound mixing process, driving each loudspeaker to switch between a left channel and a right channel;
it should be noted that, because the mixing processing of the left channel and the right channel is implemented on the software of the electronic device, after the software performs the mixing processing of the left channel and the right channel for a preset time, the channel switching instruction is sent to the driver of the loudspeaker.
The controller for driving each loudspeaker performs switching between a left channel and a right channel, and the controller comprises:
after cross mixing processing is carried out on each loudspeaker through the intermediate file node, an instruction is sent to a driver of the loudspeaker to drive the loudspeaker to switch between a left channel and a right channel.
In this embodiment of the present application, in this embodiment, a cross-mixing algorithm is introduced into software of an electronic device, that is, mixing is performed on a left channel and a right channel in the same proportion, then after mixing is maintained for a period of time, an intermediate file node is added into the software, so that the intermediate file node is introduced, because cross-mixing processing and a left channel and a right channel of a loudspeaker operate in different right spaces, a driver in a power amplifier can be notified to operate the power amplifier to perform channel switching through the intermediate file node, so in this embodiment of the present application, mixing processing and channel switching operation are implemented in the same electronic device, and the problem of noise can be solved.
In this embodiment, when the electronic device rotates, the angle sensor transmits a rotation event sent by the electronic device to the software, and then the software performs two things, namely, signal fade-in, cross-mixing and signal fade-out operations on the audio data, and performs operations on the intermediate file node in the cross-mixing stage so as to switch between a left channel and a right channel of the power amplifier operated by a driver program that sends an instruction to the power amplifier.
It should be noted that, the preset time of the mixing process can be adjusted according to the requirements, and in specific applications, the preset time of the mixing process can be adjusted according to specific situations.
Step S04, after the left channel and right channel switching completion instruction of each loudspeaker is obtained, the cross mixing processing of each loudspeaker is stopped.
It should be noted that, the above process can only ensure that the cross mixing of the left channel and the right channel and the channel switching are synchronously started, and cannot ensure that the process of the channel switching on the chip of the power amplifier must fall within the cross mixing period.
In the embodiment of the application, in order to prevent a user from frequently switching a screen horizontally and vertically when using an electronic device, a left channel and a right channel are frequently switched or the left channel and the right channel are switched in error.
The method further comprises the steps of: and determining whether to start mixing processing and switching between a left channel and a right channel of each loudspeaker according to whether the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds preset time.
The method specifically comprises the following steps:
determining whether the interval time between two adjacent transverse and vertical screen rotations of the electronic equipment exceeds a preset time;
if so, if the electronic equipment is in the process of cross mixing, maintaining the cross mixing of the electronic equipment and switching the left channel and the right channel of each loudspeaker;
if not, restarting the cross-mixing process of the electronic equipment and switching the left channel and the right channel of each loudspeaker if the electronic equipment is not in the cross-mixing process at the last time.
It should be noted that in this embodiment of the present application, it is required to first determine whether the interval time between two adjacent horizontal and vertical screen rotations of the electronic device exceeds a preset time, if the interval time does not exceed the preset time, it is indicated that the horizontal and vertical screen switches of the electronic device are frequent, and if the electronic device is in the process of cross mixing, the cross mixing process of the electronic device is kept last, and only the left channel and the right channel of each loudspeaker are switched. Therefore, the time waste of starting and stopping the cross mixing can be reduced, the time is saved, and the efficiency and the user experience are improved.
In this embodiment of the present application, firstly, the angle sensor in the electronic device belongs to the hardware chip, which is required to calculate the angle after the electronic device rotates, which belongs to the response time Tf, then, the angle information is transmitted to the cross-mixing algorithm, which also needs to be transmitted to the time Tt, if the last cross-mixing time Tm is not completed, that is Tm > tf+tt, the channel switching of the new rotation angle needs to be immediately executed to match the current latest selection of the user, so that the current cross-channel switching needs to be maintained, but the current channel switching needs to be terminated, the new channel switching is started, and since the whole process is always maintained in the cross-mixing stage, multiple channel switching does not generate noise.
The method further comprises the steps of:
if the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds the preset time and the electronic equipment is still in cross mixing processing last time, after the switching of the left channel and the right channel of each loudspeaker is finished last time and when the switching of the left channel and the right channel is needed to be carried out again, a stop instruction is not sent to stop the cross mixing processing of each loudspeaker.
It should be noted that, in this embodiment of the present application, because the channel switching time must be within the mixing time period, if the last time the left channel and the right channel of each loudspeaker are switched, and when the left channel and the right channel are switched again, a stop instruction is not sent to stop the cross mixing process of each loudspeaker, so that after the stop instruction is sent, the cross mixing is finished, but the channel switching is already cut off, so that noise occurs, and bad user experience is brought.
The method further comprises the steps of:
judging the time interval between the time point of switching the left channel and the right channel of each loudspeaker and the time point of switching the left channel and the right channel again;
and if the time interval exceeds the preset time, sending a stop instruction to stop the cross mixing process of each loudspeaker.
The time point when the left channel and the right channel are switched again is the time point when the electronic equipment is determined to rotate the horizontal screen and the vertical screen.
In this embodiment of the present application, because the time point when the electronic device rotates the horizontal and vertical screen and the time point when the cross mixing algorithm receives the rotation signal of the secondary electronic have a time difference, if the time interval between the time point when the switching between the left channel and the right channel of each loudspeaker is completed and the time point when the switching between the left channel and the right channel needs to be performed again is longer, a mixing stop instruction needs to be sent to the cross mixing algorithm. If the time interval between the time point of switching the left channel and the right channel of each loudspeaker and the time point of switching the left channel and the right channel again is shorter, the instruction of stopping mixing is not required to be sent to the cross mixing algorithm, so that the time waste of starting and stopping the cross mixing can be reduced, the time is saved, and the efficiency and the user experience are improved.
In a second aspect, an embodiment of the present application further provides a device for implementing four-horn horizontal and vertical screen rotation by using cross mixing, where the device includes:
a judging module 21, configured to judge whether the rotation of the electronic device is a horizontal-vertical screen rotation;
the mixing module 22 is configured to cross-mix audio acquired by the left channel and the right channel of each loudspeaker, if yes;
the driving module 23 is used for driving each loudspeaker to switch between a left channel and a right channel after the preset time of the sound mixing process;
and the stopping module 24 is configured to stop the cross-mixing process of each loudspeaker after obtaining the instruction of switching between the left channel and the right channel of each loudspeaker.
Compared with the prior art, the embodiment of the application also provides a device for realizing the transverse and vertical screen rotation of the four horns by utilizing cross mixing, which has the same beneficial effects as the first aspect and is not repeated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for realizing four-horn horizontal and vertical screen rotation by cross-mixing, which is characterized in that the method is applied to electronic equipment with four horns, and comprises the following steps:
judging whether the rotation of the electronic equipment is horizontal and vertical screen rotation or not;
if yes, cross mixing processing is carried out on the audio acquired by the left channel and the right channel of each loudspeaker;
after the mixing processing is carried out for a preset time, driving each loudspeaker to switch between a left channel and a right channel;
after the switching completion instruction of the left channel and the right channel of each loudspeaker is obtained, the cross mixing processing of each loudspeaker is stopped.
2. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 1, wherein the cross-mixing process of audio acquired by the left channel and the right channel of each horn comprises:
uniformly mixing the audio acquired by the left channel and the right channel of each loudspeaker to obtain mixed audio;
and (3) equally dividing the mixed audio into two parts, and respectively distributing the two parts to the left channel and the right channel of the corresponding loudspeaker.
3. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 1, wherein the controller for driving each horn performs left channel and right channel switching, comprising:
after cross mixing processing is carried out on each loudspeaker through the intermediate file node, an instruction is sent to the loudspeaker at the same time so as to drive the loudspeaker to switch between a left channel and a right channel.
4. The method for realizing the four-horn horizontal and vertical screen rotation by using cross-mixing as claimed in claim 1, wherein the preset time for the mixing process can be adjusted according to requirements.
5. The method for realizing the four-horn horizontal and vertical screen rotation by using cross-mixing according to claim 1, wherein the method further comprises:
and determining whether to start mixing processing and switching between a left channel and a right channel of each loudspeaker according to whether the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds preset time.
6. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 5, wherein determining whether to start mixing and switching between left and right channels of each horn according to whether the two adjacent horizontal and vertical screen rotation times of the sub-equipment exceed a preset time comprises:
determining whether the interval time between two adjacent transverse and vertical screen rotations of the electronic equipment exceeds a preset time;
if so, if the electronic equipment is in the process of cross mixing, maintaining the cross mixing of the electronic equipment and switching the left channel and the right channel of each loudspeaker;
if not, restarting the cross-mixing process of the electronic equipment and switching the left channel and the right channel of each loudspeaker if the electronic equipment is not in the cross-mixing process at the last time.
7. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 6, wherein the method further comprises:
if the interval time between two adjacent horizontal and vertical screen rotations of the electronic equipment exceeds the preset time and the electronic equipment is still in cross mixing processing last time, after the switching of the left channel and the right channel of each loudspeaker is finished last time and when the switching of the left channel and the right channel is needed to be carried out again, a stop instruction is not sent to stop the cross mixing processing of each loudspeaker.
8. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 7, wherein the method further comprises:
judging the time interval between the time point of switching the left channel and the right channel of each loudspeaker and the time point of switching the left channel and the right channel again;
and if the time interval exceeds the preset time, sending a stop instruction to stop the cross mixing process of each loudspeaker.
9. The method for realizing four-horn horizontal and vertical screen rotation by cross-mixing according to claim 8, wherein the time point when the left channel and the right channel are switched again is the time point when the electronic device is determined to perform horizontal and vertical screen rotation.
10. Utilize cross mixing to realize four loudspeaker horizontal and vertical screen rotary device, its characterized in that, the device includes:
the judging module is used for judging whether the rotation of the electronic equipment is horizontal and vertical screen rotation or not;
the audio mixing module is used for carrying out cross audio mixing processing on the audio acquired by the left channel and the right channel of each loudspeaker if the audio acquired by the left channel and the right channel of each loudspeaker is the same;
the driving module is used for driving each loudspeaker to switch between a left channel and a right channel after the preset time of the sound mixing process;
and the stopping module is used for stopping the cross sound mixing processing of each loudspeaker after the left channel and the right channel of each loudspeaker are switched to complete instructions.
CN202311651619.4A 2023-12-04 2023-12-04 Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing Pending CN117742645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311651619.4A CN117742645A (en) 2023-12-04 2023-12-04 Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311651619.4A CN117742645A (en) 2023-12-04 2023-12-04 Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing

Publications (1)

Publication Number Publication Date
CN117742645A true CN117742645A (en) 2024-03-22

Family

ID=90278590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311651619.4A Pending CN117742645A (en) 2023-12-04 2023-12-04 Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing

Country Status (1)

Country Link
CN (1) CN117742645A (en)

Similar Documents

Publication Publication Date Title
US9832524B2 (en) Configuring television speakers
US8311249B2 (en) Information processing apparatus, method and program
CN101006750B (en) Method for expanding an audio mix to fill all available output channels
CN105679345B (en) Audio processing method and electronic equipment
CA2917376C (en) Audio processor for orientation-dependent processing
CN111629304A (en) Loudspeaker control method and device and electronic equipment
CN105353868A (en) Information processing method and electronic device
CN111988653A (en) Interaction method, device, equipment and storage medium for multi-video screen projection information
EP3657821B1 (en) Method and device for playing back audio, and terminal
CN117742645A (en) Method and device for realizing horizontal and vertical screen rotation of four speakers by cross mixing
CN107682588B (en) Analog audio/video signal input/output switching system, method and signal measuring instrument
CN113905321A (en) Object-based audio channel metadata and generation method, device and storage medium
CN113892080A (en) Device aggregation representing multiple endpoints as one endpoint
CN103945305A (en) Information processing method and electronic equipment
JP2011045026A (en) Master apparatus switching method
CN104750453A (en) Information processing method and electronic equipment
US20120201404A1 (en) Image information processing apparatus and control method therefor
JP3881851B2 (en) Device capable of external selection of function, computer and program for external selection of function, and function selection method
JP2017130807A (en) Controller and program
JP2023008023A (en) Information processing device, vehicle, and information processing method
JP2007102772A (en) Home network system and transmission method of sound information using the same
CN117087688A (en) Information prompting method, device, equipment and computer readable storage medium
CN114900775A (en) Audio playing optimization method and device, electronic equipment and readable storage medium
WO2007138778A1 (en) Audio device
JP2010157985A (en) Sound effect device and operating method thereof

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