This application claims the priority benefit of China application serial no. 202311440130.2, filed on Nov. 1, 2023. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
This disclosure relates to a multimedia playing technology, and particularly to a display device and an audio playing method.
After a general audiovisual player device is connected to a display, when the audiovisual player device does not detect an audio device, the audiovisual player device automatically plays audio. If the user connects the audio device later, the audio device is not able to perform audio playing. In this regard, the audio device can only be used to play audio after reconnecting the audiovisual player device.
This disclosure provides a display device and an audio playing method, which can effectively play audio.
A display device of this disclosure includes a processor, a first communication interface, and a second communication interface. The first communication interface is electrically connected to the processor and a player device. The second communication interface is electrically connected to the processor. In response to the processor receiving an audio detection command from the player device through the first communication interface, the processor determines whether a connection port of the second communication interface has a preset voltage. In response to the processor determining that the connection port of the second communication interface does not have the preset voltage, the processor responds to the audio detection command to occupy an audio system logical location. In response to the processor determining that the connection port of the second communication interface has the preset voltage, the processor ignores the audio detection command.
An audio playing method of this disclosure includes: in response to a display device receiving an audio detection command from a player device through a first communication interface, determining whether a connection port of a second communication interface has a preset voltage by the display device; in response to the display device determining that the connection port of the second communication interface does not have the preset voltage, responding to the audio detection command by the display device to occupy an audio system logical location; and in response to the display device determining that the connection port of the second communication interface has the preset voltage, ignoring the audio detection command by the display device.
Based on the above, the display device and the audio playing method of this disclosure can automatically determine whether to occupy the audio system logical position in advance to effectively prevent the player device from occupying the audio system logical position and causing the subsequently installed speaker device to be unable to effectively playing audio.
In order to make the above-mentioned features and advantages of this disclosure more obvious and easier to understand, embodiments are given below and described in detail with reference to the accompanying drawings.
In order to make the content of this disclosure easier to understand, the following embodiments are given as examples according to which this disclosure may be implemented. In addition, wherever possible, elements/components/steps with the same reference numerals in the drawings and embodiments represent the same or similar parts.
In this embodiment, the display device 110 may be a projector, but this disclosure is not limited thereto. In an embodiment, the display device 110 may also be a display. The player device 120 may be an audiovisual player with an audio playing function and may have an audio playing unit. In this embodiment, the processor 111 may include a system on a chip (SOC) or may include, for example, a central processing unit (CPU), other programmable general-purpose or specific-purpose microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), programmable logic devices (PLD), other similar processing apparatuses, or a combination of these apparatuses. The first communication interface 112 and the second communication interface 113 may respectively be a high definition multimedia interface (HDMI), but this disclosure is not limited thereto.
If not, in step S230, in response to the display device 110 determining that the connection port of the second communication interface 113 does not have the preset voltage, the display device 110 responds to the audio detection command to occupy an audio system logical location. In this way, the player device 120 does not play audio and may output an audio signal to the display device 110. Moreover, in an embodiment, if the display device 110 also includes a speaker device, in response to the processor 111 occupying the audio system logical location, the player device 120 plays audio through the speaker device. The speaker device is electrically connected to the processor 111.
It is noteworthy that after the processor 111 occupies the audio system logical location, when the second communication interface 113 is subsequently electrically connected to the audio device 130, the processor 111 transfers the audio system logical location to the audio device 130, so that the player device 120 may play audio through the audio device 130. In other words, when the multimedia system 100 is not yet connected to the audio device 130, the display device 110 may first occupy the audio system logical location. After the multimedia system 100 is connected to the audio device 130, the audio system logical location is then automatically handed over to the audio device 130. In this way, the multimedia system 100 can effectively prevent the player device 120 from occupying the audio system logical location and causing the subsequently connected audio device 130 to be unable to play audio.
In addition, if yes, in step S240, in response to the display device 110 determining that the connection port of the second communication interface 113 has the preset voltage, the display device 110 ignores the audio detection command. In this regard, since the connection port of the second communication interface 113 has the preset voltage, it means that the second communication interface 113 is electrically connected to the audio device 130, and the audio device 130 responds to the audio detection command to occupy the audio system logical location, so that the player device 120 may play audio through the audio device 130.
In summary, the display device and the audio playing method of this disclosure can automatically occupy the audio system logical position in advance before the audio device is connected to effectively prevent the player device from occupying the audio system logical position, and the audio playing unit of the display device may play audio first. In this way, when the user subsequently connects the audio device to the system, the display device may hand over the audio system logical location to the audio device, and the audio may be normally played through the audio device. From another perspective, when installing an audiovisual playing system, the user may install audio devices in any order and may play audio normally using all the audio devices. The display device of this disclosure can have a high device compatibility.
Although the disclosure has been disclosed in the above embodiments, the embodiments are not intended to limit the disclosure. Persons skilled in the art may make some changes and modifications without departing from the spirit and scope of the disclosure. Therefore, the protection scope of the disclosure shall be defined by the appended claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202311440130.2 | Nov 2023 | CN | national |