The present invention is generally related to audio test systems and methods, and more particularly, to a system and method for creating audio test files.
Personal computers, notebook computers, and server computers typically have audio modules (i.e. audio chipsets) configured in motherboards thereof for handling audio signals such as signal inputs, signal conversions, and signal outputs. As known, an audio module includes a digital/analog converter (DAC) for converting analog signals into digital signals known as A-D conversions or digital signals into analog signals known as D-A conversions.
Generally, it is required and important to test the signal conversion function of an audio module. Such tests typically require a test file (i.e. a monophonic spectrum sweeping wave file) with strict restriction on a wave type, a sampling band width, a sampling frequency, a total number of channels, a frequency range, a wave amplitude, and a time duration of playing the monophonic spectrum sweeping wave file for one time, and so on. Also, the test file has to be easily upgraded as the sampling frequency varies in the art. For example, the popular frequency of motherboard may be currently 44.1 KHZ, 48 KHZ, or 96 KHZ, or even 192 KHZ in future.
What is needed, therefore, is a system and method for creating a monophonic spectrum sweeping wave file having specifications on more aspects or parameters, and more flexible and easily upgradable.
One preferred embodiment provides a system for creating a monophonic spectrum sweeping wave file. The system includes a parameter receiving module, a determining module and a creating module. The parameter receiving module is configured for receiving parameters on a monophonic spectrum sweeping wave file to be created. The parameters basically includes a frequency distribution of the monophonic spectrum sweeping wave file as well as other parameters specifying other aspects of the monophonic spectrum sweeping wave file. The determining module is configured for determining the frequency distribution. The creating module is configured for computing a plurality of separated frequencies according to the frequency distribution, generating corresponding wave files having the plurality of separated frequencies respectively, and creating the monophonic spectrum sweeping wave file by linking the wave files linearly in order.
Another preferred embodiment provides a computer-based method for creating a monophonic spectrum sweeping wave file. The method basically includes the steps of: receiving parameters on a monophonic spectrum sweeping wave file, the parameters comprising a frequency distribution of the monophonic spectrum sweeping wave file; determining the frequency distribution; computing a plurality of separated frequencies according to the parameters; generating corresponding wave files having the plurality of separated frequencies respectively according to the parameters; and creating the monophonic spectrum sweeping wave file by linking the wave files linearly in order.
Other systems, methods, features, and advantages will be or become apparent to one skilled in the art upon examination of the following drawings and detailed description.
The computer may further include a motherboard (not shown) that may have an audio chipset 30 (also known as audio module) configured thereon for handling audio signals inputted in, transmitted in, or outputted from the computer. Generally, there are two basic types of audio signals: analog signals and digital signals. As known, a computer can only process digital signals. Thus, analog signals have to be converted into digital signals before processed by the computer.
For audio signal conversions, a digital analog converter (DAC) 40 is configured in the audio chipset 30. The DAC 40 can either convert analog signals into digital signals (a.k.a A-D conversions), or convert digital signals into analog signals (a.k.a D-A conversion). As such, the DAC 40 may perform the A-D conversions when inputting analog signals into the computer, and possibly perform the D-A conversions when outputting digital signals from the computer.
The CPU 20 is configured for data and signal processing in the computer, and further for executing the system 10 from the hard-disk to create monophonic spectrum sweeping wave files. The CPU 20 may further utilize the monophonic spectrum sweeping wave files created to test the functions of the audio chipset 30, especially the DAC 40.
The parameter receiving module 12 is configured for receiving parameters of a monophonic spectrum sweeping wave file to be created. The parameters may include a frequency distribution of the monophonic spectrum sweeping wave file, parameters for a wave type, a sampling band width, a sampling frequency, a total number of channels, a frequency range, a wave amplitude, and a play time of the monophonic spectrum sweeping wave file. Such parameters may be inputted through an input device such as a keyboard of the computer that executes the system 10.
Specifically among the parameters, the frequency distribution of the monophonic spectrum sweeping wave file has two types, a linear distribution and an exponential distribution. The wave type may be a sine wave, a square wave, a triple wave, a ramp wave, or a pulse wave. The sampling band width specifies a band width of digital audio signals converted from analog audio signals, that can be 8 bits, 16 bits, 20 bits, 24 bits, 32 bits, 64 bits, and even 128 bits. The sampling frequency restricts a frequency of the digital audio signals that can be 11 KHZ, 22 KHZ, 44.1 KHZ, 48 KHZ, or 96 KHZ, or even 192 KHZ. The sampling frequency should be set under the Harry Nyquist theory known in the art. The frequency range specifies the frequency range in which the digital audio signals vary. In the preferred embodiment, setting the range between 4 HZ-40 KHZ is good enough for the purpose of creating a monophonic spectrum sweeping wave file to test the audio chipset 30. The wave amplitude specifies the amplitude range in which the digital audio signals vary, maybe 0 dB-60 dB in the preferred embodiment. The play time parameter specifies a length in time for executing of the monophonic spectrum sweeping wave file to test the audio chipset 30, which depends on the requirements.
The determining module 14 is configured for determining the frequency distribution among the parameters. Specifically, the determining module 14 determines whether the frequency distribution is set as the linear distribution or the exponential distribution.
The creating module 16 is configured for creating the monophonic spectrum sweeping wave file.
Specifically, the creating module 16 computes a plurality of separated frequencies according to the frequency distribution determined by the determining module 14. If the frequency distribution is determined as the linear distribution, the creating module 16 performs the computation by invoking a linear function; or if the frequency distribution is determined as the exponential distribution, the creating module 16 performs the computation by invoking an exponential function.
Furthermore, the creating module 16 generates corresponding wave files having the plurality of separated frequencies according to the parameters by invoking a corresponding audio processing library function for a wave file generation, the library function is known as the waveformat function. Each wave file corresponds to a single frequency of the plurality of separated frequencies.
Moreover, the creating module 16 links the wave files linearly in ascending order to create the monophonic spectrum sweeping wave file under the restriction and specification of the parameters received by the parameter receiving module 12. In an alternative embodiment, the wave files are linked linearly in descending order.
The transmitting module 18 is configured for transmitting the monophonic spectrum sweeping wave file to the DAC 40. The CPU 20 executes the monophonic spectrum sweeping wave file to test the DAC 40.
In step S300, the parameter receiving module 12 receives parameters on a monophonic spectrum sweeping wave file to be created. The parameters may be inputted through an input device such as a keyboard of the computer that executes the system 10. The details for the parameters are described above in paragraphs [0016] and [0017].
In step S302, the determining module 14 determines the frequency distribution. Specifically, the determining module 14 determines whether the frequency distribution is set as the linear distribution or the exponential distribution.
In step S304, the creating module 16 computes the plurality of separated frequencies by invoking the linear function if the frequency distribution is determined to be the linear distribution by the determining module 14 in step S302. Otherwise, if the frequency distribution is determined to be the exponential distribution by the determining module 14 in step S302, the creating module 16 in step S306 computers the plurality of separated frequencies by invoking the exponential function.
In step S308, the creating module 16 generates corresponding wave files, each having the single frequency of the plurality of separated frequencies according to the parameters by invoking the corresponding audio processing library function for the wave file generation, the library function is known as the waveformat function. Each wave file corresponds to one of the separated frequencies.
In step S310, the creating module 16 creates the monophonic spectrum sweeping wave file under the restriction and specification of the parameters received by the parameter receiving module 12 by linking the wave files linearly in ascending order. In an alternative embodiment, the wave files are linked linearly in descending order.
In step S312, the transmitting module 18 transmits the monophonic spectrum sweeping wave file into the DAC 40. The CPU 20 executes the monophonic spectrum sweeping wave file to test the DAC 40.
It should be emphasized that the above-described embodiments of the preferred embodiments, particularly, any “preferred” embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described preferred embodiment(s) without departing substantially from the spirit and principles of the invention. All such modifications and variations are intended to be included herein within the scope of this disclosure and the above-described preferred embodiment(s) and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2005 1 0101804 | Nov 2005 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
4677674 | Snyder | Jun 1987 | A |
5361305 | Easley et al. | Nov 1994 | A |
5644505 | Soutar et al. | Jul 1997 | A |
5915029 | Yazurlo et al. | Jun 1999 | A |
5918223 | Blum et al. | Jun 1999 | A |
6538190 | Yamada et al. | Mar 2003 | B1 |
7095455 | Jordan et al. | Aug 2006 | B2 |
20070019814 | Chen | Jan 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20070121963 A1 | May 2007 | US |