CN1567172A - Sound effect broadcast method and apparatus thereof - Google Patents

Sound effect broadcast method and apparatus thereof Download PDF

Info

Publication number
CN1567172A
CN1567172A CN 03145904 CN03145904A CN1567172A CN 1567172 A CN1567172 A CN 1567172A CN 03145904 CN03145904 CN 03145904 CN 03145904 A CN03145904 A CN 03145904A CN 1567172 A CN1567172 A CN 1567172A
Authority
CN
China
Prior art keywords
audio
reproduction time
playing device
module
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 03145904
Other languages
Chinese (zh)
Inventor
林光信
叶宝军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CN 03145904 priority Critical patent/CN1567172A/en
Publication of CN1567172A publication Critical patent/CN1567172A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

It is a music play method and its device, which is to monitor the music playtime through the music play device assisting information device. The device comprises process module, file load module and track selecting module. When the user want the information device to play music, the process module lets file load module to get music time from the storing database in the information device and then lets track selecting module to provide unused tracks for music output and judge whether or not the music is over during the music output. When the played time is more than playing time, it shows that the music is over. The process module immediately transmits information that the music is over to the information device and reset the track to unused mode.

Description

Audio player method and device
Technical field
The invention relates to a kind of audio playback process technology, particularly can differentiate the concluding time that audio is play really, normally export the method and the device of broadcast to keep audio about a kind of.
Background technology
When the information equipment that uses Linux as domestic os carries out audio broadcast operation, need to be undertaken by the SDL_mixer function library, though the SDL_mixer function library can allow 8 kinds of audios to play simultaneously, yet under the (SuSE) Linux OS environment, stop to play wherein a kind of audio (being assumed to be audio A)) time, though audio A has stopped playing, but when judging by SDL_mixer function library intrinsic function, but can't determine audio A and stop information that playing, imitate the still lasting output broadcast of A so can judge staccato by accident, can make information equipment still continue to carry out identical playing program, can not make any modification or the change on the executive routine because of audio A stops to play, like this can be when playing program will be carried out the broadcast of audio A, can't obtain the broadcast data of audio A because of playing program, cause program to carry out, thereby cause the audio can't normal play, cause in the audio playing process and produce distortion.
Summary of the invention
For overcoming the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to be to provide a kind of audio player method and device, and it is to be applicable on the information equipment of a loading operation system, in order to the audio reproduction time of monitor message equipment.
Another object of the present invention is to provide a kind of audio player method and device that is applicable to information equipment, its principal feature is to need not to carry out judgment mechanism by the SDL_mixer function library, can differentiate the time state that audio is play, make audio be able to normal output and complete broadcast.
For finishing above-mentioned purpose, audio player method of the present invention may further comprise the steps: (1) makes the user by the contained operation-interface of information equipment, the audio files that input makes information equipment play; (2) make in the contained storage data storehouse of this audio playing device self-information equipment and load audio files, and obtain the audio reproduction time of this audio files; (3) make the audio playing device that at least one idle sound channel is provided, use when carrying out audio output for this audio files; (4) make this audio playing device check whether the relation of (reproduction time) 〉=(audio reproduction time) is set up, set up as this relation, promptly represent the audio reproduction time to finish, directly proceed to step (5), if this relation is false, represent that just the audio reproduction time does not finish as yet, whether the audio playing device still needs the anti-audio reproduction time of must checking to finish; And (5) make this audio playing device send the information notification information equipment that audio reproduction time has finished, and the sound channel that will originally use simultaneously is reduced to idle mode again.
Audio playing device of the present invention is to cooperate running with the information equipment that contains operation-interface, CPU (central processing unit), storage data storehouse and audio output module, reproduction time with the monitoring audio, this audio playing device comprises: (a) processing module, in order to the audio play instruction that transmits according to information equipment, inner each functional module of drive unit is carried out corresponding running according to this instruction; (b) file load module in the contained storage data storehouse of self-information device interior, loads user's desire and makes the audio files that information equipment plays and deposit in it, so as to being got the audio reproduction time of reading this audio files for processing unit; And (c) track selecting module, it provides at least one idle sound channel of using during for its audio output of audio files that processing unit transmits.
Above-mentioned audio player method and device, can carry out providing when audio is play operation a mechanism of monitoring at the audio reproduction time at information equipment, audio player method provided by the invention is to cooperate with information equipment so that the audio reproduction time is monitored by the audio playing device; It is when the user requires the information equipment play sound effect, by loading corresponding audio files in the contained storage data storehouse of audio playing device self-information equipment, and obtain the audio reproduction time of this audio files, provide the idle sound channel that can make audio output use by track selecting module again, this audio playing device is when audio is exported, check the audio reproduction time simultaneously, whether finish so as to differentiating audio, when (reproduction time) 〉=(audio reproduction time), this represents that promptly audio has finished to play, processing module transmits immediately and has finished the information notification information equipment play, and the sound channel of using is reverted back idle mode; From the above, audio player method of the present invention and device are when carrying out the differentiation of audio reproduction time, therefore need not differentiate by the SDL_mixer function library, can avoid the state play because of SDL_mixer function library erroneous judgement audio, cause the thing that audio can't normal play to take place.
Description of drawings
Fig. 1 is a calcspar, shows that audio of the present invention dials the configuration diagram of putting device;
Fig. 2 is a process flow diagram, shows the every program of audio player method of the present invention when carrying out the audio output operation.
Embodiment
Embodiment
In the following embodiments, audio player method of the present invention and device are to be applied on the personal computer that loads (SuSE) Linux OS, in order to the time control function that personal computer is provided an audio play, the audio that personal computer is produced is able to normal play, and can produce complete audio output, yet at first be noted that at this, the present invention does not limit and only can be used on the personal computer, in the broadest sense, the present invention can be applicable to any Linux of use as operating system and have on the information equipment of audio output module, in order to information equipment is provided the monitoring function of an audio reproduction time.
Fig. 1 is a calcspar, shows that audio playing device 40 of the present invention is applied in the inner configuration diagram of personal computer 10 (the following computing machine 10 that slightly is called).As shown in the figure, computing machine 10 comprises that (computing machine 10 comprises many functional modules in fact in addition for operation-interface 20, CPU (central processing unit) 30, audio playing device 40, storage data storehouse 50 and audio output module 60, only list and describe in detail the functional module that the present invention is correlated with at this), wherein, audio playing device 40 of the present invention comprises processing module 41, file load module 42 and track selecting module 43 in addition; The user at first is by operation-interface 20, input requires computing machine 10 to carry out the instruction (computing machine 10 also can carry out the action that audio is play according to all types of audio play instructions of passing on the multimedia software of its operating system environment compatibility) of audio broadcast itself, the audio that computing machine 10 exportable users will be received, the audio play instruction is sent to the CPU (central processing unit) 30 of computing machine 10 immediately with digital signaling, so as to making this CPU (central processing unit) 30 can be according to the data content of this audio play instruction, drive and order the audio playing device 40 that is arranged on computing machine 10 inside, carry out the operation of audio playback process, and carry out corresponding operation procedure by these audio playing device 40 indirect other functional modules relevant that drive with audio broadcast operation.
Audio playing device 40 is after obtaining the audio play instruction that CPU (central processing unit) 30 assigns, require its inner set file load module 42 immediately, be online to connected storage data storehouse 50, this storage data storehouse 50 is to deposit all types of audio files that computing machine 10 usefulness receive for the external world, but file load module 42 automatic-storage data storehouses 50 load the audio files that the user will play, and be temporarily stored in file load module 42, can be from the audio files that is loaded for processing module 41, obtain the audio reproduction time that this audio files provides and give recorded and stored, can whether monitor the end of audio reproduction time so as to making processing module 41, then, processing module 41 drives track selecting module 43 immediately, one output channels that is in idle mode at present is provided, the sound signal that supplies this audio files to provide with the digital signaling transmission, the idle sound channel that can provide via track selecting module 43, and by audio output module 60, convert sound signal to simulating signal and export the computing machine 10 outside users of confession receptions to, if track selecting module 43 can't provide at least one idle sound channel for sound signal output, then processing module 41 can require track selecting module 43 to increase the quantity of idle sound channel voluntarily, and the sound signal that order will be exported all can have the idle sound channel of sufficient amount can be for its use; Monitor in the process whether the audio reproduction time finish in processing module 41, processing module 41 is also constantly inquired about the audio reproduction time, whether finish so as to differentiating audio, during even (time of having play) 〉=(audio reproduction time), processing module 41 just thinks that audio finishes, transmit an information immediately and inform that computing machine 10 set CPU (central processing unit) 30 audio reproduction times finish, simultaneously the output channels state that uses is reduced to idle mode, with when other audio is play operation, can provide enough idle sound channels to use for sound signal; As in monitor procedure, audio playing device 40 is not finished audio as yet and is play operation, and then whether processing module 41 will constantly be finished the audio reproduction time and monitor, and stops just stopping monitoring until the audio reproduction time.
Fig. 2 is a process flow diagram, the every program circuit of display application computing machine 10 of the present invention when carrying out audio reproduction time processing operation.As shown in the figure, the user of computing machine 10 at first imports the audio play instructions by computing machine 10 set operation-interfaces 20, and the sound signal that makes computing machine 10 output users receive then proceeds to step S2.
In step S2, after the audio play instruction is imported computing machines 10 by operation-interface 20, be sent to CPU (central processing unit) 30 with digital signaling immediately, make CPU (central processing unit) 30 drive audio playing device 40 and carry out audio broadcast work flow, audio playing device 40 is after receiving the audio play instruction, make in the file load module 42 automatic-storage data storehouses 50, the audio files that the loading user will play also temporarily is stored in the file load module 42, in program subsequently, in this audio files, to obtain the audio reproduction time of this audio files for processing module 41, reference offset information as whether follow-up audio reproduction time finishes then proceeds to step S3.
In step S3, processing module 41 makes track selecting module 43 differentiate and chooses none and can export extraneous required idle sound channel to for the contained sound signal of audio files that loads, if track selecting module 43 can select idle sound channel for sound signal output, directly advance to put step S4, can't provide any idle sound channel to use as track selecting module 43, then advance to put step S5 for sound signal.
In step S4, processing module 41 is ordered about sound signal immediately, the idle sound channel of using track selecting module 43 to provide inputs to audio output module 60, exports the extraneous user of confession reception to transfer sound signal to a simulating signal by audio output module 60, then proceeds to step S6.
In step S5, after processing module 41 makes track selecting module 43 increase the idle number of channels that can pass through for sound signal, re-execute step S4, make sound signal input to audio output module 60, transfer sound signal to a simulating signal by audio output module 60 by track selecting module 43 newly-increased idle sound channels.
In step S6, make this processing module 41 whether differentiate reproduction time more than or equal to the audio reproduction time, if reproduction time is more than or equal to the audio reproduction time, then processing module 41 will assert that the audio reproduction time stops, then proceed to step S7, as reproduction time is not more than or equal to the audio reproduction time, processing module 41 is with repeated execution of steps S6, and constantly inquiring about, whether reproduction time stops so as to affirmation audio reproduction time.
In step S7, make this processing module 41 by audio output module 60, send a cue that has finished for CPU (central processing unit) 30, inform the information that CPU (central processing unit) 30 audio reproduction times have stopped, then proceed to step S8.
In step S8, make this processing module 41 control tracks select module 43 will previous used sound channel state to restore again and be idle mode, play sound signal that operations produce for all the other audios and be able to by this idle sound channel and export the external world to.
Comprehensively above-mentioned, audio player method of the present invention and device are to make the computing machine that uses (SuSE) Linux OS, need not determine the broadcast state of audio by SDL_mixer storehouse contained in the Linux in the mode of discriminant function, just can solve existing when carrying out the judgement of audio state with function, though there is an audio to stop playing in all audios of playing, but when judging, but judge this audio by accident and do not stop yet and cause the facts that all audios can't normal play to take place by function.Can make the computing machine that uses (SuSE) Linux OS by the present invention, can be according to reproduction time and the mutual relation of audio reproduction time, can learn clearly whether all audios have all stopped playing, if all do not stop, do not carry out any subsequent action, so as to avoiding interference the normal output that other does not stop play sound effect, and the distortion situation can reduce audio output the time, and then improve the output efficiency of audio.

Claims (10)

1. audio playing device, this audio playing device is applicable on the information equipment that is mounted with operating system, it is characterized in that, this device comprises:
Processing module, in order to the audio play instruction of the equipment transmission of receiving information, and inner each functional module of drive unit is carried out corresponding running;
File load module is the storage data storehouse of self-information device interior, behind the audio files that loading will be play, leaves in this document load-on module, is obtained audio for processing unit and plays the required control data of operation; And
Track selecting module in order at least one idle sound channel to be provided, is used when exporting for the sound signal of this audio files.
2. as the audio playing device of claim 1, it is characterized in that this operating system is Linux.
3. as the audio playing device of claim 1, it is characterized in that this control data is meant that audio files plays the required time.
4. as the audio playing device of claim 1, it is characterized in that if this track selecting module is not when having idle sound channel and can provide, needing increases idle number of channels separately, use when guaranteeing to have enough idle sound channels to play for audio.
5. as the audio playing device of claim 1, it is characterized in that this information equipment comprises the audio output module in addition, in order to sound signal is exported in the sound transmission mode.
6. audio player method, this method is the operation that cooperatively interacts by between audio playing device and information equipment, carries out the monitoring task of audio reproduction time, it is characterized in that this method comprises:
(1) makes this information equipment drive the audio playing device, in its contained storage data storehouse, load the audio files that to export, and obtain the audio reproduction time of this audio files;
(2) make the set track selecting module of audio playing device, use when providing at least one idle sound channel to export for the sound signal in this audio files;
(3) make this audio playing device check whether audio finishes between sowing time, if do not finish, checks repeatedly whether audio finishes between sowing time, till the audio reproduction time finishes; Finish as the audio reproduction time, directly proceed to step (4); And
(4) make this audio playing device send the information that audio finishes, and simultaneously the sound channel of using is reduced to idle mode to information equipment.
7. as the audio player method of claim 6, it is characterized in that this information equipment is meant the information equipment that uses (SuSE) Linux OS.
8. as the audio player method of claim 6, it is characterized in that the monitoring task of this audio reproduction time is meant whether the audio reproduction time is stopped differentiating.
9. as the audio player method of claim 6, it is characterized in that this track selecting module need increase number of channels separately if at least one idle sound channel can't be provided.
10. as the audio player method of claim 6, it is characterized in that whether this inspection audio is meant reproduction time greater than the audio reproduction time and equals wherein differentiating of audio reproduction time between sowing time.
CN 03145904 2003-07-10 2003-07-10 Sound effect broadcast method and apparatus thereof Pending CN1567172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03145904 CN1567172A (en) 2003-07-10 2003-07-10 Sound effect broadcast method and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03145904 CN1567172A (en) 2003-07-10 2003-07-10 Sound effect broadcast method and apparatus thereof

Publications (1)

Publication Number Publication Date
CN1567172A true CN1567172A (en) 2005-01-19

Family

ID=34471544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03145904 Pending CN1567172A (en) 2003-07-10 2003-07-10 Sound effect broadcast method and apparatus thereof

Country Status (1)

Country Link
CN (1) CN1567172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035351B (en) * 2006-03-09 2014-08-20 索尼株式会社 Playing state presentation system, device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035351B (en) * 2006-03-09 2014-08-20 索尼株式会社 Playing state presentation system, device and method

Similar Documents

Publication Publication Date Title
CN101164055B (en) Media timeline sorting
DE69811128T3 (en) Control device and method for electronic device and electronic device
CN103793324B (en) The test device and test method and test scene combined method of embedded software
CN100342341C (en) Remote control method of external devices
JP3106495B2 (en) Home bus controller
JP4295775B2 (en) GUI test support system and application program for test support
US20070247430A1 (en) Keyboard and mouse operation data recording/reproducing system and method thereof
CN101526918A (en) Method for testing player and device
CN107423213A (en) A kind of filec descriptor distribution detection method and device
US20030028516A1 (en) Information processing apparatus, information processing method, and storage medium
JP4168310B2 (en) Data signal processing apparatus and method, and recording medium
US20090157921A1 (en) Kvm management system and method
CN1221131C (en) Combined system and automatic copying method
CN1567172A (en) Sound effect broadcast method and apparatus thereof
US20100222905A1 (en) Electronic apparatus with an interactive audio file recording function and method thereof
CN100552657C (en) Audio media stores and playing device
CN102519514B (en) One-click automatic testing realization method of electronic test instrument
US20040258392A1 (en) Information processing apparatus for detecting inter-track boundaries
US20080074543A1 (en) Output processing apparatus and control method of the same
US20090202220A1 (en) System and method for creation of a cue sheet for music and other asset licensing using an edit decision list reverse search
TWI291614B (en) System and method of creating virtual testing environment
JP5396759B2 (en) Information processing apparatus, image processing apparatus, software operation test method, software operation test program, and recording medium recording the program
CN113934619A (en) Sound source testing method, system and storage medium based on Robot Framework testing Framework
CN100456242C (en) Touch click and rapid executing method of computer multimedia playing and computer system thereof
US11520954B2 (en) Simulation management method, simulation system, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication