If you want to be a CD player, that's the trick. This is a way to control the pop-up and shutdown of the CD-ROM drive door, first you need to add MMSystem in the Uses section, then add two TButton buttons, write the following statement in the button event, remember that when the call is complete must show or Judge Returnstring, Otherwise the program will make an error:
procedure TForm1.Button1Click(Sender: TObject);var returnstring:pchar;begin//弹出ret
See the perfect mm in Windows version ask such a DOS command, found no, so I extracted the following code compiled a console program
Unit Unit1;InterfaceUses MMSystem, Dialogs;Type Tdevicename = (Master, microphone, waveout, Synth);Procedure Setvolumemute (dn:tdevicename; Value:boolean);ImplementationProcedure Setvolumemute (dn:tdevicename; Value:boolean);VarHmix:hmixer;Mxlc:mixerlinecontrols;Mxcd:tmixercontroldetails;vol:tmixercontroldetails_unsigned
This article describes the method of Delphi implementation of millisecond-level countdown with examples. In general, you can get the system's high-performance frequency counter in a millisecond of the number of vibrations, if the clock vibration times more than 10 milliseconds to refresh the display of edit3, showing from the beginning of the count to the actual elapsed time , the specific implementation code is as follows:
Unit Unit1;
Interface uses Windows, Messages, Sysutils, Classes,
. But be aware that the name
It is best to take "w". " WW "and so on, so that the first letter as far as possible, so as to avoid the main program icon order upside down.
Added: 1. Resource types In addition to the above types, you can also font files, string files, and so on.
2. Resource files can also be used under the console, not only in the standard graphical interface.
Let's try this out:
Create a new project, delete the unique form, and then modify the project file. Add a sentence
{$appty
identificationAnimate1.active: = True;End;A little summary in practice: Not all AVI resources can be played with tanimate components, to be tested when the program is programmed. If you encounter an AVI resource that cannot be played with the Tanimate component, you can detach it from the resource file and play it using the appropriate playback components such as Tmediaplayer. Remove the detached temporary files after use. Refer to the following "7. "Description.5. accessing JPEG in a resource
.active: = True;End;A little summary in practice: Not all AVI resources can be played with tanimate components, to be tested when the program is programmed. If you encounter an AVI resource that cannot be played with the Tanimate component, you can detach it from the resource file and play it using the appropriate playback components such as Tmediaplayer. Remove the detached temporary files after use. Refer to the following "7. "Description.5. accessing JPEG in a resource fileAdd the JPEG unit t
timer function similar to the GetTickCount () function, returns the number of milliseconds that have elapsed since Windows was started. In its multimedia Windows system, Microsoft provides an API for the precise timer at the bottom layer. The multimedia timer can be used to accurately read the current time of the system, in addition, you can call an event, function, or process within a very precise interval. The difference is that before calling the DWORD timeGetTime (void) function, you must a
compression ratio, which effectively overcomes the contradiction between our speed in image transmission.
Please note that interested readers can slightly modify the sample program in this article to apply it to the Internet environment.
Ii. Audio Recording and playback Problems
This part of development is relatively simple. First, the APIs for this function have been provided since Windows 3.1 (winmm. Lib + mmsystem. h). Second, we can find the read
Setting the output volume)
Setting the volume of the wave file output device is quite simple, but it must be performed using Windows API. The waveoutgetvolume and waveoutsetvolume functions are used to obtain the volume and set the volume respectively.
The volume is stored in integer format. The upper byte (hight word) sets the right audio volume, and the lower byte (low word) sets the left audio volume. If the device does not have the ability to independently set the Left and Right audio chan
), based on 2. I only know dozens of X. Therefore, the PC manufacturer does not choose to bind windows at that time, either DoS or OS/2 at that time.
2. Rapid Development-Windows 3. x
Windows 3.0 appeared around 1990. Version 3.0 is an innovation in the history of windows. By choosing the real mode, standard mode, and 386 enhancement mode, it supports a variety of PC compatible processors from 8088 KB of memory to 486 MB of memory, and adds the object link and embedding capabilities, greatly imp
vast majority of codec, so the intermediate format is generally selected as a linear PCM format. For example, you can first convert the original data to the intermediate PCM format supported by truespeech codec, and then convert it to the final compression format through truespeech codec.
Program Design and Implementation
The API function for ACM is defined in the header file msacm. h, in addition to adding reference to this header file in the project, ACM programming must also contain the he
. Dialog Box 1 is displayed. You only need to edit joystdlg. cpp to implement this program. The following describes all the source code of joystdlg. cpp.
// Jaystdlg. cpp: implementation file
# Include "stdafx. H"
# Include "joystick. H"
# Include "joystdlg. H"
# Include "mmsystem. H"
# Ifdef _ debug
# UNDEF this_file
Static char based_code this_file [] = _ file __;
# Endif
//////////////////////////////////////// /////////////////////////////////////
, you can call an event, function, or process within a very precise interval. The difference is that before calling the DWORD timegettime (void) function, you must add winmm. lib and mmsystem. H to the project. Otherwise, the DWORD timegettime (void) function is prompted during compilation. Since this function is scheduled to be controlled through queries, a scheduled cycle should be established to control scheduled events. For example, timer5 and tim
(hdcdest, newtransparent );Rgbbk = setbkcolor (hdcdest, rgbtransparent );// Actual BLT is a simple source copy; transparency is automatic.Bitblt (hdcdest, X, Y, dx, Dy, hdcsrc, x0, y0, srccopy );Setbkcolor (hdcdest, rgbbk );Setbkmode (hdcdest, oldmode );}
This makes things easier. Unfortunately, few device drives currently support transparent block transfer-the block transfer feature is not available for those installed in windows3.1. This should change in the near future.
And currently, wi
From http://net.eagle.blog.163.com/blog/static/124195920069148310829/
ACM (audio compression manager) Technical ManualL what is ACM?
ACM is the abbreviation of "audio compression manager". It is translated as the sound compression manager and compiled by Microsoft.
The interface function library used to call the codec function. It should have been declared in the mmsystem. Pas unit, but Borland
Delphi omitted it. Of course, there has been its pas file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.