home *** CD-ROM | disk | FTP | other *** search
-
- Windows Dynamic Linkage Library
-
- For software development you will need:
-
- (1) Microsoft C/C++ Version 7.0
- (2) Microsoft Windows 3.1 Software Development Kit(SDK)
-
- Initialization/Exit Functions:
-
- MOVIE_Initialize
- MOVIE_Exit
-
- Open/Close File Functions:
-
- MOVIE_OpenFile
- MOVIE_CloseFile
-
- Playback Functions:
-
- MOVIE_Play
- MOVIE_Stop
- MOVIE_Pause
-
- Audio Control Functions:
-
- MOVIE_Mute
- MOVIE_SetChannels
-
- Video Control Functions:
-
- MOVIE_SetVideoFrequency
- MOVIE_SetDisplayPosition
-
- Nitofy Function:
-
- MOVIE_MovieNotify
- MOVIE_PTSNotify
- MOVIE_EOFNotify
-
- CD-ROM Functions:
-
- MOVIE_CDROM_Installed
- MOVIE_CDROM_HasDisc
- MOVIE_CDROM_IsDiscChanged
- MOVIE_CDROM_GetTrackNo
- MOVIE_CDROM_SeekTrack
- MOVIE_CDROM_SeekCDI
- MOVIE_CDROM_GetCDITitle
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_Initialize(void);
-
- Description:
-
- Initialize the MPEG-1 playback hardware.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : The MPEG-1 playback hardware is not found
- -1 : Fail to allocate buffer for DMA
- -2 : Cannot allocate memory below 1MB
- -3 : Windows is not in 386 enhanced mode
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_Exit(int bSave);
-
- Description:
-
- Disable the MPEG-1 playback hardware.
-
- Parameters:
-
- int bSave: 0 - Do not save current configuration.
- 1 - Save current configuration.
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_OpenFile(char FAR *filename);
-
- Description:
-
- Open the specified MPEG file.
-
- Parameters:
-
- char FAR *filename: The MPEG file name.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CloseFile(void);
-
- Description:
-
- Close the previous opened MPEG file.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_Play(void);
-
- Description:
-
- Normal motion play.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_Stop(void);
-
- Description:
-
- Stop playing.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_Pause(void);
-
- Description:
-
- Pause playing.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_Mute(int flag);
-
- Description:
-
- Mute audio output.
-
- Parameters:
-
- int flag: 0 - Do not mute audio output
- 1 - Mute audio output
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_SetChannels(int LeftVolume,int RightVolume);
-
- Description:
-
- Set the volume of the audio channels.
-
- Parameters:
-
- int LeftVolume - Volume of the left channel (0~63)
- int RightVolume - Volume of the right channel (0~63)
-
- Note: The maximum volume is 0,the minimum volume is 63.
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_SetVideoFrequency(int VideoFrequency);
-
- Description:
-
- Set the output video frequency.
-
- Parameters:
-
- int VideoFrequency: MOVIE_50HZ - 50 Hz video output
- MOVIE_60HZ - 60 Hz video output
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_SetDisplayPosition(WORD DisplayX,
- WORD DisplayY);
-
- Description:
-
- Set the display position of video output.
-
- Parameters:
-
- int DisplayX - The upper-left position video output (10~255)
- int DisplayY - The upper-top position video output (1~255)
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_MovieNotify(HWND wnd,WORD CommandID);
-
- Description:
-
- Notification when one of the following conditions is occurs:
-
- . End of file
- . Reading error
- . Video decoding error
- . Audio decoding error
-
- Parameters:
-
- HWND wnd - Window to be notified.
- WORD CommandID - the word parameter value of WM_COMMAND message.
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_PTSNotify(HWND wnd,WORD CommandID);
-
- Description:
-
- Send the current PTS (Presentation Time Stamp) to the specified
- window.
- The lParam contain the PTS (The PTS is a counter of 90K Hz).
- This function is enabled when the PTSNotify is set to 1 in the
- MPMOVIE.INI.
-
- [Setting]
- ...
- PTSNotify=1
- ...
-
- Parameters:
-
- HWND wnd - Window to be notified.
- WORD CommandID - the word parameter value.
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_EOFNotify(HWND wnd,WORD message,
- WORD wparam,DWORD lparam);
-
- Description:
-
- Notification when enf of file.
-
- Parameters:
-
- HWND wnd - the Window to be notified.
- WORD message - the message to be sent to the Windows.
- WORD wparam - the WORD parameter to be sent to the Windows.
- DWORD lparam - the DWORD parameter to be sent to the Windows.
-
- Return Value:
-
- None.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_Installed(void);
-
- Description:
-
- Check the CD-ROM drive is installed or not.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : These is no CD-ROM drive in the system.
- 1 : The CD-ROM drive is installed.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_HasDisc(void);
-
- Description:
-
- Check there is disc in the CD-ROM drive or not.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : These is no disc in the CD-ROM drive.
- 1 : These is a disc in the CD-ROM drive.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_IsDiscChanged(void);
-
- Description:
-
- Check the disc is changed or not.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : The disc is not changed.
- 1 : The disc is changed.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_GetTrackNo(BYTE far * StartTrack,
- BYTE far * EndTrack);
-
- Description:
-
- Get the start and end track number of the disc in the CD-ROM
- drive.
-
- Parameters:
-
- BYTE far * StartTrack - the start track number returned.
- BYTE far * EndTrack - the end track number returned.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_SeekTrack(BYTE TrackNo);
-
- Description:
-
- Seek to the begin of specified track number.
-
- Parameters:
-
- BYTE TrackNo - The track number
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_CDROM_SeekCDI(void);
-
- Description:
-
- Seek to the begin the CD-I disc.
-
- Parameters:
-
- None.
-
- Return Value:
-
- 0 : Successed
- Others : Error code.
-
- -------------------------------------------------------------------
-
- Prototype:
-
- void FAR PASCAL MOVIE_CDROM_GetCDITitle(char far *title);
-
- Description:
-
- Get the title name of the CD-I disc.
-
- Parameters:
-
- char far *title - CD-I title name returned.
-
- Return Value:
-
- 0 : Failed
- 1 : Successed
-
- -------------------------------------------------------------------
-
- Prototype:
-
- int FAR PASCAL MOVIE_VGA_Output(int flag);
-
- Description:
-
- Select the MPEG video output or VGA video output.
-
- Parameters:
-
- int flag = 0 : MPEG video output
- 1 : VGA video output
-
- Return Value:
-
- None.
-