1. Field of the Invention
The present invention relates to a sound reproducing method and a sound source circuit for reproducing sound according to audio data subjected to effect processing, and an electronic circuit and an electronic device employing such a sound source circuit.
2. Description of the Related Art
There is an increased demand for sound quality due to improvement of functions of cellular phones. Accordingly, portable terminals such as cellular phones are sometimes provided with stereo speakers. However, stereo speakers included in a small casing such as portable terminals have difficulty in reproducing high-quality stereo sound.
On the other hand, as an audio signal processing technique for reproducing a three-dimensional sound field using the user's left and right ears, Patent document 1 discloses a synthesizing technique for reproducing a sound field using a pair of speakers and only two signal channels. Such a sound field provides sound effects to the user as if a sound source was located at a predetermined position in a sphere defined with the user's head as the center of the sphere.
Also, Patent document 1 discloses that such sound processing is effectively performed for sounds of which examples include: a sound emitted from a spatial position close to the user's head; a sound moving toward or away from the user over time; a human voice whispered close to the user's ear; etc.
PCT Japanese Translation Patent Publication No. 2001-511995
Some portable terminals such as cellular phones mount a sound source circuit that comprises a sound source LSI (Large Scale Integration) for producing a melody which is a notification of a call. Let us consider an arrangement in which such a sound source circuit handles MIDI (trademark) data (Musical Interments Digital Interface). With such an arrangement, the timing of reproducing a sound is determined by a time management command defined in this data. Accordingly, it is difficult for software such as a sequencer executed on the sound source circuit to estimate the time lag from a point in time when the data has been written to memory in the sound source circuit up to a point in time when the sound is reproduced. Let us consider an arrangement employing a combination of such a sound source circuit and an engine for adjusting the position of a virtual sound source in a sound field. In some cases, such an arrangement leads to a situation in which the point in time when the sound is reproduced by the aforementioned sound source circuit does not synchronously match the position of a virtual sound source adjusted by the aforementioned engine. This leads to a problem of a virtual sound image being provided at an undesired position.
The present invention has been made in view of such a situation. Accordingly, it is a general purpose of the present invention to provide a sound reproducing method and a sound source circuit having a function of suppressing a problem in which the point in time when the sound is reproduced does not synchronously match effect processing such as adjustment of the position of a virtual sound source in a sound field, and an electronic circuit and electronic device employing such a sound source circuit.
A sound reproducing method is provided. In one embodiment of the present invention, the sound reproducing method comprises: analyzing a timing of reproducing a sound according to audio data; adding information that indicates the sound reproducing timing to the audio data; and performing effect processing for the audio data, according to which a sound is to be reproduced, according to the sound reproducing timing acquired with reference to the information.
With such an embodiment, effect processing is performed with reference to the information that indicates the sound reproducing timing. This suppresses a situation in which the effect processing does not synchronously match the sound reproduction.
Another sound reproducing method is provided. In one embodiment of the present invention, The sound reproducing method comprises: analyzing a change in a virtual sound source located in a sound field reproduced according to audio data; adding the information that indicates the change in the virtual sound source to the audio data; and adjusting the position of the virtual sound source located in the sound field reproduced according to the audio data, according to which a sound is to be reproduced, according to the change in the virtual sound source acquired with reference to the information. The “change in a virtual sound source” may include the switching of the virtual sound source, or the change due to movement of the virtual sound source.
Such an arrangement adjusts the position of a virtual sound source located in a reproduced sound field with reference to the information that indicates the change in the virtual sound source. This suppresses a situation in which the position adjustment does not synchronously match the sound reproduction.
A sound source circuit is provided. In one embodiment of the present invention, the sound source circuit comprises: a storage unit which stores information that indicates a sound reproducing timing and audio data; and a control unit which reproduces a sound according to the processed audio data in cooperation with an effect processing unit which performs effect processing for the audio data stored in that storage unit. With such an aspect, upon detection of the information, that control unit notifies that effect processing unit that the information has been detected.
With such an embodiment, the effect processing unit is notified of the information that indicates the sound reproducing timing. This suppresses a situation in which the position adjustment does not synchronously match the sound reproduction.
Another sound source circuit is provided. In one embodiment of the present invention, the sound source circuit comprises: a storage unit which stores information that indicates a change in a virtual sound source located in a reproduced sound field and audio data; and a control unit which reproduces a sound according to the audio data subjected to position adjustment in cooperation with a position adjustment unit which performs position adjustment processing for the audio data stored in that storage unit so as to adjust the position of the virtual sound source located in the reproduced sound field. With such an arrangement, upon detection of the information, that control unit notifies that position adjustment unit that the information has been detected.
With such an embodiment, the position adjustment unit is notified of the information that indicates a change in a virtual sound source located in a reproduced sound field. This suppresses a situation in which the position adjustment does not synchronously match the sound reproduction.
Also, the control unit may transmit an interrupt signal that corresponds to the information to that position adjustment unit via a dedicated signal line. Such an arrangement suppresses a situation in which the position adjustment does not synchronously match the sound reproduction without affecting the exchange of audio data between the control unit and the position adjustment unit.
Also, an arrangement may be made in which, in a case of setting multiple virtual sound sources in the reproduced sound field, upon detection of at least one information set that indicates a change in any one of the virtual sound sources, an interrupt signal that corresponds to the information is transmitted to that position adjustment unit via a dedicated signal line assigned to the corresponding virtual sound source. Let us consider a case in which multiple virtual sound sources are located in a sound field, which change independently of one another. Even in such a case, such an arrangement suppresses erroneous operation due to frequent interrupt signals.
Also, the control unit may embed the information at vacant portion in the audio data which is to be transmitted to that position adjustment unit. Such an arrangement suppresses a situation in which the position adjustment does not synchronously match the sound reproduction without involving any dedicated signal line.
An electronic circuit is provided. In one embodiment of the present invention, the electronic circuit comprises: the aforementioned sound source circuit; and an effect processing unit which performs effect processing for the audio data. Such an arrangement provides an electronic circuit having a function of suppressing a situation in which the effect processing does not synchronously match the sound reproduction.
Another electronic circuit is provided. In one embodiment of the present invention, the electronic circuit comprises: the aforementioned sound source circuit; and a position adjustment unit which performs position adjust processing for the audio data so as to adjust the position of the virtual sound source located in the sound field reproduced according to the audio data. Such an arrangement provides an electronic circuit having a function of suppressing a situation in which the position adjustment processing for a virtual sound source located in a reproduced sound field does not synchronously match the sound reproduction.
An electronic device is provided. In one embodiment of the present invention, the electronic device comprises: speakers; and the aforementioned electronic circuit for reproducing a sound via that speakers. Such an arrangement provides an electronic device having a function of suppressing a situation in which the effect processing does not synchronously match the sound reproduction.
Note that any combination of the aforementioned components or any manifestation of the present invention realized by replacement of a device, a method, a system, a computer program, a recording medium that stores the computer program, and so forth, is effective as an embodiment of the present invention.
Moreover, this summary of the invention does not necessarily describe all necessary features so that the invention may also be a sub-combination of these described features.
Embodiments will now be described, by way of example only, with reference to the accompanying drawings which are meant to be exemplary, not limiting, and wherein like elements are numbered alike in several Figures, in which:
The invention will now be described based on preferred embodiments which do not intend to limit the scope of the present invention but exemplify the invention. All of the features and the combinations thereof described in the embodiment are not necessarily essential to the invention.
First, schematic description will be made regarding an embodiment 1. A CPU such as an application processor provided externally to the sound source circuit 100 writes audio data to a FIFO (First-In First-Out) memory 20 included in the sound source circuit 100 via a CPU interface (which will be referred to as “CPU I/F” hereafter). The aforementioned audio data may be described in a MIDI format, ADPCM (Adaptive Differential Pulse Code Modulation) format, or the like.
The aforementioned CPU analyzes a command with respect to the time management included in the audio data, thereby determining the timing for switching the position of a virtual sound source from the perspective of user's sensation, which is located in the three-dimensional space in a sound field created at the time of reproducing the audio data. Subsequently, the CPU inserts a Callback message, which is data for indicating the switching timing, at a predetermined position in the audio data such as a portion at which the virtual sound source is to be switched from the perspective of the user's sensation. Then, the audio data is written to the FIFO memory 20.
The FIFO memory 20 is memory that outputs the input data in order of input. The sound source sequencer 34 is provided in a form of software, which provides functions of processing, reproduction, etc., for MIDI data. The sound source sequencer 34 may be executed by the aforementioned CPU. The sound source sequencer 34 reproduces the MIDI data output from the FIFO memory 20, and instructs unshown speakers to reproduce a sound. Furthermore, upon detection of a Callback message at the time of processing data stored within the FIFO memory 20, the sound source sequencer 34 generates an interrupt signal MIDIINT. The interrupt signal MIDIINT is output to an application processor 200 shown in
In
On the other hand,
Description will be made below regarding the embodiment 1 in detail.
The 3D positioning unit 210 analyzes a command included in the audio data with respect to the time management, and determines the timing at which the position of a virtual sound source, which is provided according to the audio data from the perspective of the user's sensation, is to be switched in the three-dimensional space at the time of reproducing the audio data. Furthermore, the 3D positioning unit 210 inserts a Callback message, which is data for indicating the switching timing for switching the virtual sound source, at a predetermined position in the audio data such as a portion at which the audio data component for reproducing an airplane sound is switched to the audio data component for reproducing a vehicle sound. Then, the audio data is written to the FIFO memory 20.
The control unit 30 performs various kinds of effect processing for the audio data read out from the FIFO memory 20. Also, the control unit 30 reproduces a sound according to the audio data thus read out. The control unit 30 performs sequence processing for the audio data, and transmits the audio data to the application processor 200 via an audio interface (which will be referred to as “audio I/F” hereafter) 40 in the form of digital data.
The 3D positioning unit 210 is a block provided by a combination of the aforementioned application processor 200 and the firmware 220 for 3D positioning. The control unit 30 or the 3D positioning unit 210 may be provided in the form of a single chip. The 3D positioning unit 210 performs three-dimensional positioning processing for the audio data received from the control unit 30 via the audio I/F 40, and returns the audio data to the control unit 30.
In
The control unit 30 includes a virtual stereo unit 32. The virtual stereo unit 32 adds a phase component, which is inverted to the signal of the left channel, to the signal of the right channel, for example. Furthermore, the virtual stereo unit 32 performs similar processing for the signal of the left channel. Such an arrangement provides a rich sound field from the perspective of the user's sensation. With such an arrangement, when the sound output from the right speaker is cancelled out by the sound output from the left speaker, the user detects the sound output from the right speaker mainly by the right ear. The same can be said of a case in which the sound output from the left speaker is cancelled out by the sound output from the right speaker. Such an arrangement enables the sound to be separated into the sound of the right channel and the sound of the left channel, thereby enriching the sound field.
The virtual stereo unit 32 performs the aforementioned virtual stereo processing for the audio data subjected to the 3D positioning processing by the 3D positioning unit 210. Let us consider an arrangement including a pair of speakers 62 and 64, and an unshown headphone, as a user interface. With such an arrangement, the virtual stereo unit 32 performs the aforementioned processing for the audio data to be provided to the speakers 62 and 64 and the audio data to be provided to the headphone.
On the other hand, upon the control unit 30 detecting the aforementioned Callback message in the data read out from the FIFO memory 20, an interrupt signal MIDINT is output to the application processor 200. In
Two digital/analog converters (each of which will be referred to as “DAC” hereafter) 52 and 54 convert audio digital signals of the left and right channels, which have been output from the control unit 30, into respective analog signals. The analog signals thus converted are output to the speakers 62 and 64. Let us consider an arrangement in which an unshown headphone or the like is connected to a device such as a portable terminal or the like. With such an arrangement, the analog signals are also output to the headphone. The pair of the speakers 62 and 64 output audio signals of the left and right channels.
On the other hand,
First, the application processor 200 sets a Callback message in MIDI data (S10). Furthermore, after the setting of the Callback message, a post-processing selection value is set in the form of a post-processing selection message. The term “post-processing selection value” as used here represents a value which indicates how the MIDI data is output from the sound source circuit 100.
With such an arrangement which makes such settings, the Callback message and the post-processing detection value are consecutively set in the FIFO memory 20 included in the sound source circuit 100 (S30). Subsequently, the sound source sequencer 34 reads out the data stored in the FIFO memory 20, and detects the Callback message (S32). Upon detection of the Callback message, the sound source sequencer 34 sets an interrupt signal MIDINT, which is output to the application processor 200, to the low level.
After detection of the Callback message, the sound source sequencer 34 detects the post-processing selection message (S34). The post-processing selection message is an instruction to output the MIDI data, which is to be targeted for 3D positioning processing, to the application processor 200 via a serial I/F that connects between the sound source sequencer 34 and the application processor 200.
Upon detection of the Callback message from the interrupt signal MIDIINT, which indicates the timing of the 3D positioning processing, the application processor 200 acquires a Callback status (S12). Upon the interrupt signal MIDINT being set to the low level, the 3D positioning unit 210 executes an interrupt routine. In the interrupt routine, mask settings are made so as to prevent the MIDI data from being output from the sound source circuit 100 to the application processor 200 (S14). Then, the 3D positioning unit 210 makes settings so as to clear the interrupt received from the sound source circuit 100 (S16). Subsequently, the 3D positioning unit 210 starts the 3D positioning processing (S18).
The sound source sequencer 34 clears the Callback message that corresponds to the interrupt signal MIDIINT according to the interrupt clear settings made by the application processor 200 (S36). The 3D positioning unit 210 clears the mask set in the aforementioned interrupt routine (S20). Upon clearing the mask, the sound source sequencer 34 can transmit the MIDI data to the application processor 200 via the serial I/F. Accordingly, in this stage, the sound source sequencer 34 starts to transmit the MIDI data (S38). With such an arrangement, the time lag from the detection of the post-processing selection message in the previous step up to the transmission of the MIDI data in this step can be set to around 4 msec.
The 3D positioning unit 210 performs the 3D positioning processing for the MIDI data transmitted via the serial I/F (S22). In this stage, the sound source sequencer 34 can reproduce a sound according to the MIDI data thus subjected to the effect processing.
Description has been made regarding a procedure in which a Callback message that indicates the timing of reproducing a sound is loaded in the FIFO memory 20, and an interrupt signal is generated and is transmitted to the application processor 200. However, the present invention is not restricted to such an arrangement employing MIDI data. Also, such a procedure may be applied to an arrangement employing ADPCM data or the like.
With the embodiment 1 as described above, a Callback message is used as a synchronizing signal for providing the operation synchronously with the 3D positioning unit. Such an arrangement suppresses a situation in which the timing of producing a sound does not synchronously match the 3D positioning processing at the time that the sound source sequencer reproduces a sound, thereby avoiding a situation in which a sound image is located at an undesired position.
The sound source circuit 100 according to the embodiment 2 has basically the same configuration as that according to the embodiment 1. Description will be made below regarding the difference therebetween. A CPU provided externally to the sound source circuit 100 writes audio data to the FIFO memory 20 included in the sound source circuit 100 via a CPU I/F 10. The aforementioned CPU analyzes a command with respect to the time management included in the audio data, and determines the switching timing of switching the position of each of multiple virtual sound sources located in the three-dimensional space of the sound field reproduced according to the audio data from the perspective of the user's sensation. Then, the aforementioned CPU inserts each Callback message BOX such as a Callback message 1, a Callback message 2, etc., at the switching portions in the audio data, each of which indicates the switching timing of switching the corresponding virtual sound source in the three-dimensional space from the perspective of the user's sensation. Then, the audio data is written to the FIFO memory 20.
At the time of performing processing for the data stored in the FIFO memory 20, upon detection of any one of the Callback messages, the sound source circuit 34 generates an interrupt signal 3DINT that corresponds to the Callback message thus detected. Here, the Callback message 1 corresponds to an interrupt signal 3DINT1. The Callback message 2 corresponds to an interrupt signal 3DINIT2. With the embodiment 2, a dedicated 3DINT line is provided for each Callback message between the sound source circuit 100 and the application processor 200 for executing the 3D positioning processing. With such an arrangement, the sound source sequencer 34 transmits the interrupt signal 3DININT1 or the interrupt signal 3DNINT2 to the application processor 200 via the 3DINT line that corresponds to the Callback message thus detected.
Detailed description will be made below regarding the embodiment 2.
The 3D positioning unit 210 analyzes a command with respect to time management included in the audio data, and determines the switching timing for switching the position of each of multiple virtual sound sources in the three-dimensional space of the sound field reproduced according to the audio data. Then, in order to indicate the timing for switching the position of each of these virtual sound sources in the three-dimensional space, the 3D positioning unit 210 inserts data, i.e., a Callback message, at the corresponding position in the audio data, which indicates the switching timing for switching the position of each of the virtual sound sources located in the three-dimensional space. Subsequently, the 3D positioning unit 210 writes the audio data to the FIFO memory 20.
The control unit 30 is connected to the application processor 200 via multiple interrupt signal lines. While
In
With the embodiment 2 as described above, multiple Callback messages are prepared, and the application processor 200 includes a dedicated signal line for transmitting an interruption signal for each of the multiple Callback messages. Such an arrangement enables the application processor 200 to locate multiple virtual sound sources at the multiple positions in the sound field while suppressing frequent interrupt signals via a particular signal line. That is to say, with such an arrangement, multiple Callback messages are provided, and multiple signal lines are provided corresponding to the multiple Callback messages. Such an arrangement enables the application processor 200 to store the information received in parallel while preventing the received data from dropping out, thereby ensuring that the 3D positioning unit 210 performs the corresponding processing.
An embodiment 3 offers a technique that provides the synchronicity between the sound source circuit 100 and the application processor 200 by embedding the timing information in a vacant channel in the audio data without involving any dedicated signal line for transmitting the Callback message from the sound source circuit 100 to the application processor 200, unlike the embodiment 1and the embodiment 2. The sound source circuit 100 and the application processor 200 according to the embodiment 3 have basically the same configurations as those described in the embodiment 1 with reference to
With an arrangement shown in
With an arrangement employing the DACs 52 and 54 for 16-bit data, it is sufficient for such an arrangement to transmit a total of 32 bits of data, which consists of the left and right channel data sets, for each cycle of the signal LRCLK. Accordingly, there are vacant channels as shown in
With the embodiment 3 as described above, a message for providing the synchronous operation is embedded at a vacant channel in the audio data which is to be transmitted from the sound source circuit 100 to the application processor 200. Such an arrangement provides the synchronicity between the timing of reproducing a sound according to the audio data and the 3D positioning processing for the audio data without involving any signal line for transmitting a signal created in interrupt processing, i.e., with a simple configuration.
The above-described embodiments have been described for exemplary purposes only, and are by no means intended to be interpreted restrictively. Rather, it can be readily conceived by those skilled in this art that various modifications may be made by making various combinations of the aforementioned components or processes, which are also encompassed in the technical scope of the present invention.
As shown in
Description has been made in the aforementioned embodiments regarding an arrangement in which the control unit 30 provides the 3D positioning function and the virtual stereo function. The present invention is not restricted to such an arrangement. Also, an arrangement may be made in which the control unit 30 provides effect functions such as a reverberation function, a chorus function, etc. Specifically, the interrupt processing described in the embodiments 1 and 2 or the timing information embedding technique for embedding the timing information at a vacant channel described in the embodiment 3 may be applied to such effect functions. Such an arrangement provides the synchronicity between the timing of reproducing a sound according to the audio data and the processing timing of each kind of the effect functions.
While the preferred embodiments of the present invention have been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2004-307352 | Oct 2004 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP05/16906 | 9/14/2005 | WO | 00 | 7/23/2007 |