1461135241-101e6cba-1be5-4fe9-b12f-f920b2076c87

1. A timing control method of a hardware-simulating program, a plurality of simulating elements being defined in the hardware-simulating program, and the timing control method comprising steps of:
a) executing the simulating elements in a first stage;
b) suspending execution of any of the simulating elements that has been executed to a certain degree in the first stage;
c) resuming execution of all the simulating elements suspended in the first stage to start a second stage when a first specified time point based on an external time coordinate is due;
d) suspending execution of any of the simulating elements that has been executed to a further degree in the second stage; and
e) resuming execution of all the simulating elements suspended in the second stage to start a third stage when a second specified time point based on the external time coordinate is due;
wherein the first specified time point is adjustable to change a simulating speed of the hardware-simulating program in the first stage, and the second specified time point is adjustable to change a simulating speed of the hardware-simulating program in the second stage, independently from the first stage, so that the hardware-simulating program is executable by different simulating speeds at different stages.
2. The timing control method according to claim 1 wherein the external time coordinate is a system clock.
3. The timing control method according to claim 1 wherein the simulating speed of the hardware-simulating program is decreased by putting off the first specified time point in the external time coordinate, and increased by advancing the first specified time point in the external time coordinate.
4. The timing control method according to claim 1 wherein in the step b), it is determined that the simulating element has executed to the certain degree when an accumulated number of executed machine cycles of the simulating element reaches or exceeds a first threshold.
5. The timing control method according to claim 1 wherein the steps b) and c) are enabled by one of the simulating elements.
6. The timing control method according to claim 1 wherein in the step a), the simulating elements are executed in mixed program sections according to a predetermined sequence.
7. The timing control method according to claim 6 wherein the step a) further comprises sub-steps of:
attaching time tags to simulation data associated with a specified simulating element;
storing the simulation data into a queue; and
reading out the simulation data from the queue according to the time tags when it is the turn of the specified simulating element to operate.
8. The timing control method according to claim 6 wherein the simulating elements are executed by the same microcontroller.
9. The timing control method according to claim 1 wherein the simulating elements are executed by respective microcontrollers.
10. A timing control method of a hardware-simulating program, a plurality of simulating elements being defined in the hardware-simulating program, and the timing control method comprising steps of:
a) executing the simulating elements in a first stage;
b) suspending execution of any of the simulating elements that has been executed to a certain degree in the first stage; and
c) resuming execution of all the simulating elements suspended in the first stage to start a second stage when a first specified time point based on an external time coordinate is due;
wherein the first specified time point is adjustable to change a simulating speed of the hardware-simulating program in the first stage, and the simulating speed of the hardware-simulating program is decreased by putting off the first specified time point in the external time coordinate, and increased by advancing the first specified time point in the external time coordinate.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. A method for adjusting an output level of audio data to be reproduced, comprising:
searching a recording medium for an audio file requested to be played, said recording medium storing a plurality of audio files;
temporarily storing audio data to be reproduced of the searched audio file and detecting an output level of the temporarily stored audio data; and
adjusting a gain of an audio output amplifier on the basis of the detected output level to output said adjusted audio data to be reproduced, wherein the temporarily stored audio data includes scale factors of sub-bands of audio frames of the audio file, the scale factors used to obtain the output level of the temporarily stored audio data as an indication of an average volume of the audio file, the gain of the audio amplifier adjusted to cause the average volume to correspond to a volume level set by a user.
2. The method of claim 1, wherein the recording medium is adapted to store audio files of various types.
3. The method of claim 2, wherein the audio data to be reproduced is data into which the searched audio file is converted by an audio codec corresponding thereto, and wherein the recording medium is adapted to store at least one of an MP3 audio file, MPEG2 audio file and AC3 audio file.
4. The method of claim 1, wherein the detected output level is a peak level or average level of the temporarily stored audio data.
5. The method of claim 4, wherein said detected output level is determined by sampling a reduced subset of the temporarily stored audio data.
6. The method of claim 1, wherein the temporarily storing comprises:
reading the searched audio file from the recording medium and converting it into the audio data to be reproduced;
temporarily storing audio data of an amount corresponding to a predetermined period of time or a predetermined capacity, among the converted audio data, under the condition that the converted audio data is not amplified and outputted; and
detecting the output level of the temporarily stored audio data.
7. The method of claim 6, wherein the adjusting comprises:
comparing the detected output level with a predetermined reference level;
increasing the gain of the audio output amplifier when the detected output level is determined to be lower than the reference level as a result of the comparison and reducing the gain when the detected output level is determined to be higher than the reference level; and
amplifying the audio data to be reproduced, at the adjusted gain, to output the adjusted audio data at the reference level, wherein the predetermined reference level corresponds to the volume level set by the user.
8. The method of claim 1, wherein the adjusting comprises:
comparing the detected output level with a predetermined reference level;
increasing the gain of said audio output amplifier when the detected output level is determined to be lower than the reference level as a result of the comparison and reducing the gain when the detected output level is determined to be higher than the reference level; and
amplifying the audio data to be reproduced, at the adjusted gain, to output the adjusted audio data at the reference level, wherein the predetermined reference level corresponds to the volume level set by the user.
9. The method of claim 1, wherein the detecting and adjusting are performed on an audio file basis.
10. The method of claim 1, wherein the output level is detected based on a peak level or average level obtained for said temporarily stored audio data, the peak level or average level obtained by accumulatively adding only sampled ones of the scale factors corresponding to respective ones of the sub-bands.
11. A machine-readable storage medium containing instructions for adjusting an output level of audio data to be reproduced, said instructions, when executed in a digital audio system, causing the system to:
search a recording medium for an audio file requested to be played, the recording medium storing audio files of various types;
temporarily store audio data to be reproduced of the searched audio file and detect an output level of the temporarily stored audio data; and
adjust a gain of an audio output amplifier on the basis of the detected output level to output the audio data to be reproduced at a prescribed level, wherein the temporarily stored audio data includes scale factors of sub-bands of audio frames of the audio file, the scale factors used to obtain the output level of the temporarily stored audio data as an indication of an average volume of the audio file, the gain of the audio amplifier adjusted to cause the average volume to correspond to a volume level set by a user.
12. The article of claim 11, wherein the recording medium is adapted to store at least one of an MP3 audio file, MPEG2 audio file and AC3 audio file, and wherein the audio data to be reproduced is data into which the searched audio file is converted by an audio codec corresponding thereto.
13. The article of claim 11, wherein the detected output level is a peak level or average level of the temporarily stored audio data.
14. The article of claim 13, wherein the peak level or the average level is determined by sampling a reduced subset of the temporarily stored audio data.
15. The article of claim 11, wherein the storage medium contains instructions for causing the system to:
read the searched audio file from the recording medium and convert it into the audio data to be reproduced;
temporarily store audio data of an amount corresponding to a predetermined period of time or a predetermined capacity, among the converted audio data, under the condition that the converted audio data is not amplified and outputted; and
detect the output level of the temporarily stored audio data.
16. The article of claim 11, wherein the storage medium contains instructions for causing the system to:
compare the detected output level with a predetermined reference level;
increase the gain of the audio output amplifier when the detected output level is determined to be lower than the reference level as a result of the comparison and reduce the gain when the detected output level is determined to be higher than the reference level;
first amplify the audio data to be reproduced, at the adjusted gain, to output it at the reference level; and
second amplify the first amplified audio data to be reproduced according to a user selected output level of the audio file to be played, wherein the predetermined reference level corresponds to the volume level set by the user.
17. The article of claim 11, wherein the output level is detected based on a peak level or average level obtained for said temporarily stored audio data, the peak level or average level obtained by accumulatively adding only sampled ones of the scale factors corresponding to respective ones of the sub-bands.
18. A digital audio system, comprising:
a reading device configured to read an audio file requested to be played from a recording medium, the recording medium storing audio files of various types;
a converter configured to convert the read audio file into audio data to be reproduced;
a storage device configured to temporarily store the audio data to be reproduced;
a detector configured to detect an output level of the temporarily stored audio data;
an audio amplifier configured to amplify and output the audio data to be reproduced; and
a controller configured to control the reading device to search the recording medium for the audio file requested to be played and read the searched audio file from said recording medium, coupled to said storage device and detector, and for adjusting a gain of the audio amplifier on the basis of the detected output level,
wherein the temporarily stored audio data includes scale factors of sub-bands of audio frames of the audio file, the scale factors used to obtain the output level, and
wherein the detector is adapted to detect a peak level or average level of said temporarily stored audio data, wherein the peak level or average level of the sub-bands, which are used to determine the peak level or the average level of the audio file, is obtained by accumulatively adding only sampled ones of the scale factors.
19. The system of claim 18, wherein the digital audio system is one of a portable terminal, a portable computer, and a personal computer having a playback function for the audio files, wherein the recording medium is adapted to store at least one of an MP3 audio file, MPEG2 audio file and AC3 audio file.
20. The system of claim 18, wherein the storage device is adapted to temporarily store audio data of an amount corresponding to a predetermined period of time or a predetermined capacity, among the converted audio data, under the condition that the converted audio data is not amplified and outputted by the audio amplifier.
21. The system of claim 18, wherein the detector is adapted to detect the output level of the temporarily stored audio data by sampling a reduced subset of the temporarily stored audio data.
22. The system of claim 18, wherein the controller is adapted to increase the gain of the audio amplifier means when the detected output level is lower than a predetermined reference level and reduce the gain when the detected output level is higher than the reference level to output the audio data to be reproduced, at the reference level.
23. The system of claim 18, wherein the controller is adapted to, on an audio file basis, control the storage device to temporarily store the audio data to be reproduced, control the detector to detect the output level of the temporarily stored audio data, and adjust the gain of the audio amplifier responsive to detected output level and a selected output level of the audio file requested to be played.