1. Technical Field
The present invention relates to an audio playback technology. More particularly, the present invention relates to an audio playback system and method.
2. Description of Related Art
Handheld electronic devices such as smartphones and tablet PCs become the most important electronic products due to their light weight, powerful data-processing and data-transmission ability and integration of various multimedia technologies. The handheld electronic devices can playback video files or audio files by using modules related to the multimedia technology. Display modules such as screens can be used to display image thereon. Audio playback modules such as amplifiers can be used to output the sound. Therefore, the handheld electronic devices can be used for the purpose of either communication or entertainment.
The conventional handheld electronic devices can display images in different directions according to different usage scenarios, especially when the devices are rotated. Since the entertainment aspect becomes more and more important, the number of the amplifiers is increased to accomplish a better sound effect. However, if the sound field of the amplifiers of a device is generated only according to fixed positions, the best performance may not be accomplished when the device is rotated. The reproduced sound field may become unnatural since the positions of the amplifiers are different after rotation.
Accordingly, what is needed is an audio playback system and method to addresses the above issues.
An aspect of the present invention is to provide an audio playback system used in a handheld electronic device. The audio playback system comprises an audio interface, a control module, an audio processing module and at least two audio playback modules. The audio interface receives a digital audio stream. The control module generates audio channel mapping information according to a rotation angle of the handheld electronic device. The audio processing module processes the digital audio stream to convert the digital audio stream to a plurality of analog audio signals and perform a channel switching process according to the audio channel mapping information. The at least two audio playback modules output the analog audio signals after the channel switching process.
Another aspect of the present invention is to provide an audio playback method used in a handheld electronic device. The audio playback method comprises the steps outlined below. A digital audio stream is received. A rotation angle of the handheld electronic device is detected. Audio channel mapping information is generated according to the rotation angle. The digital audio stream is processed such that the digital audio stream is converted to a plurality of analog audio signals and a channel switching process is performed according to the audio channel mapping information. The analog audio signals is outputted from at least two audio playback modules after the channel switching process.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the invention as claimed.
The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
The detecting element 10 can detect a rotation angle 11 of the handheld electronic device 1. In an embodiment, the detecting element 10 is a G-sensor. Hence, the amount of the rotation angle of the handheld electronic device 1 depends on a direction of gravity. In other words, the rotation angle of the handheld electronic device 1 is related to the gravity direction.
The audio playback system 12 can receive and process a digital audio stream 13 to convert the digital audio stream 13 to an analog signal. The audio playback system 12 further plays back the analog signal. In an embodiment, the digital audio stream 13 is generated from a processing unit 14 such as a central processing unit included in the handheld electronic device 1. In different operation conditions, the user may rotate the handheld electronic device 1 to different directions. A dynamic adjusting mechanism to adjust the sound field of the sound signal generated by the playback system to match the position of the handheld electronic device 1 is thus unavoidable. The audio playback system 12 can use the rotation angle 11 detected by the detecting element 10 to perform dynamic adjustment of the sound field to accomplish the best performance. The detail description of the sound field adjusting mechanism is shown in the following paragraphs.
The audio interface 20 receives the digital audio stream 13. The digital audio stream 13 can be generated by a multimedia playback program according to the multimedia files stored in a storage module (not shown) in the handheld electronic device 1, be generated by the multimedia playback program according to the multimedia files transmitted by a network transmission module (not shown) in the handheld electronic device 1 from the network or according to the voice stream or be generated by a network communication program according to audio stream transmitted by the network transmission module in the handheld electronic device 1 from the network.
The control module 22 generates audio channel mapping information 21 according to the rotation angle 11 detected by the detecting element 10 shown in
When the handheld electronic device 1 turns 90 degrees relative to the position shown in
However, when the handheld electronic device 1 turns 180 degrees relative to the position shown in
The audio processing module 24 comprises a digital signal processing unit 240, a digital to analog converting unit 242 and a front-end analog circuit 244 and receives the digital audio stream 13 from the audio interface 20 to perform processing on the digital audio stream 13. The digital signal processing unit 240 receives the digital audio stream 13 from the audio interface 20 to perform a digital signal processing, such as but not limited to decoding, on the digital audio stream 13 to generate a plurality of digital audio signals 241a and 241b corresponding to different channels (such as different audio playback modules).
The digital to analog converting unit 242 to converts the digital audio signals 241a and 241b to corresponding analog audio signals 243a and 243b. The front-end analog circuit 244 performs an analog signal processing on the analog audio signals 243a and 243b such that the analog audio signals 243a and 243b are outputted by the audio playback module 26a and the audio playback module 26b.
In different embodiments, the audio processing module 24 can perform the channel switching process according to the audio channel mapping information 21 in different processing stages. In an embodiment, the audio channel mapping information 21 is transmitted to the digital signal processing unit 240 though the path A. The digital signal processing unit 240 can perform the channel switching process on the digital audio signals 241a and 241b after the received digital audio stream 13 is decoded. For example, when the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
When the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
When the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
In another embodiment, the audio channel mapping information 21 is transmitted to the front-end analog circuit 244 though the path B. The digital signal processing unit 240 can merely perform encoding process or other digital signal processes such that the digital signals are converted to the analog audio signals 243a and 243b by the digital to analog converting unit 242. Subsequently, the front-end analog circuit 244 performs the channel switching process on the analog audio signals 243a and 243b. In an embodiment, the front-end analog circuit 244 may include a plurality of switches (not shown) to transmit the analog audio signals 243a and 243b to the corresponding audio playback modules 26a and 26b after receiving the analog audio signals 243a and 243b. For example, when the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
When the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
When the rotation angle 11 shows that the handheld electronic device 1 is under the condition shown in
Hence, the handheld electronic device 1 can detect the rotation angle 11 by using the detecting element 10 to obtain its operation condition. The channel switching mechanism of the audio processing module 24 can accomplish the best performance of the sound field of the audio signals generated by the audio playback modules 26a and 26b.
It is noted that in other embodiments, the number of the audio playback modules can be adjusted according to different application scenarios and is not limited by the present embodiment.
When the handheld electronic device 1 is under the condition shown in
When the handheld electronic device 1 is under the condition shown in
When the handheld electronic device 1 is under the condition shown in
When the handheld electronic device 1 is under the condition shown in
The feedback circuit 60 generates a plurality of analog feedback signals 63a and 63b when the audio processing module 24 transmits a test audio signal 61 to the audio playback modules 26a and 26b. The analog to digital converting unit 62 converts the analog feedback signals 63a and 63b to digital feedback signals 65a and 65b. The audio processing module 24 determines an amount of the audio playback modules 26a and 26b according to the digital feedback signals 65a and 65b. The values of the analog feedback signals 63a and 63b are related to resistances of the audio playback modules 26a and 26b. When one of the audio playback modules 26a and 26b does not function normally or is disconnected from the other components of the audio playback system, the analog feedback signal generated correspondingly becomes infinitely large such that the converted digital feedback signal is infinitely large as well. Therefore, the amount of the audio playback modules in the audio playback system that can really work can be determined according to the number and the value of the feedback signals.
In step 701, the audio interface 12 of the audio playback system 12 receives the digital audio stream 13.
In step 702, the detecting element 10 detects the rotation angle 11 of the handheld electronic device 1.
In step 703, the control module 22 generates the audio channel mapping information 21 according to the rotation angle 11.
In step 704, the audio processing module 24 processes the digital audio stream 13 such that the digital audio stream 13 is converted to analog audio signals 243a and 243b and the channel switching process is performed according to the audio channel mapping information 21.
In step 705, the audio playback modules 26a and 26b output the analog audio signals 243a and 243b after the channel switching process.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.