Advertisement
ASP_Volume3 Sound/MP3 #46739

Full MPEG Player including mp3

Update IIII Here you can make you own player for Multimedia inculding mp3,mpg..etc and Makes full controls Just via windows API.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<P>Hello Members planet source code.</P>
<P>Update IIII NOT III (this code from the winners for this 
month)</P>
<P>Are you search for Player for All Multimedia Files 
including mp3,mpg..etc just via PURE windows API (no any OCXs) .</P>
<P>And also make the following controls just via API:</P>
<p align=center><font face="Comic Sans MS" size=2>1-Open most multimmedia files.</FONT><font 
face="Comic Sans MS" size=2><br>2-Playing it</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>3-Pause it</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>4- Stop it</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>5-Resume it</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>6-Close it</FONT></P>
<p align=center><font color=#ff0000 face="Comic Sans MS" 
size=2>7-Get Current position(current frame)</FONT></P>
<p align=center><font color=#ff0000 face="Comic Sans MS" 
size=2>8-Get current time</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>9-Get Percent of playing file</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>10-make it auto Repeat</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>11-Get Total frames</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>12- Get Total Time</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>13-Get the Status of file if it "playing or stopped or 
paused"</FONT></P>
<P align=center><FONT face="Comic Sans MS" size=2>14-Get actual size 
(new).</FONT></P>
<P align=center><FONT face="Comic Sans MS" size=2>15-Get current size 
(new).</FONT></P>
<p align=center><font face="Comic Sans MS" size=2>16-Resize the movie.</FONT></P>
<p align=center><font color=#ff0000 face="Comic Sans MS" 
size=2>17-Get number frames per second</FONT></P>
<p align=center><font color=#ff0000 face="Comic Sans MS" 
size=2>18-let you know if multimedia at the end 
now</FONT></P>
<p align=center><A 
href="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&amp;txtCodeId=9783">http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=1&amp;txtCodeId=9783</A></P>
<p align=center>(there are Module for Standard use and has 
ready functions)</P>
<p align=center>Written once to use it every time.</P>
<p align=center>Enjoy to Make your own 
Player.</P>
</BODY>
</HTML>

#include <windows.h>
#include <stdlib.h>
#define NUM_MESSAGES 11
CHAR szMessage[NUM_MESSAGES][255] = {"i'm watching you...", // Just some scary messages
									 "did you lock the door",
									 "are you alone",
									 "they're coming...",
									 "leave while you can...",
									 "it's here...",
									 "i know where you are...",
									 "did you check the kids",
									 "don't turn around...",
									 "help me...",
									 "it's only a matter of time..."};
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	srand(GetTickCount());
	while(TRUE) // Main loop; Keeps the program running
	{
		Sleep(45000); // Pause for a few seconds to scare whoever is onleave while you the computer
		INT nRand = (rand() % NUM_MESSAGES); // Pick a random message to display
		for(INT i = 0; i < lstrlen(szMessage[nRand]); i ++)
		{
			// Simulate a person typing
			keybd_event((UCHAR)VkKeyScan(szMessage[nRand][i]), NULL, NULL, NULL);
			Sleep(rand() % 200);
		}
	}
	return 0;
}
원본 댓글 (3)
Wayback Machine에서 복구됨