Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
KLMp3Music.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 1k
Category:
Game Server Simulator
Development Platform:
C/C++
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KLMp3Music.h
- // Date: 2000.08.08
- // Code: Daniel Wang
- // Desc: Header File
- //---------------------------------------------------------------------------
- #ifndef KLMp3Music_H
- #define KLMp3Music_H
- //---------------------------------------------------------------------------
- #include "KLMusic.h"
- #include "KLCFile.h"
- //---------------------------------------------------------------------------
- class KLMp3Music : public KLMusic
- {
- private:
- KLCFile m_Mp3File;
- protected:
- PBYTE mp3_buffer;
- PBYTE mp3_bufptr;
- int mp3_trigger;
- int mp3_bufbytes;
- int mp3_frmbytes;
- BOOL Mp3Init();
- BOOL Mp3FillBuffer();
- DWORD Mp3Decode(PBYTE lpPcmBuf, DWORD dwBufLen);
- protected:
- virtual BOOL Mp3FileOpen(LPSTR FileName);
- virtual DWORD Mp3FileRead(PBYTE pBuf, DWORD dwLen);
- virtual DWORD Mp3FileSeek(LONG lOffset);
- public:
- virtual BOOL Open(LPSTR FileName);
- virtual void Close();
- virtual void Seek(int nPercent);
- virtual void Rewind();
- protected:
- void InitSoundFormat();
- DWORD ReadWaveData(LPBYTE lpBuf, DWORD dwLen);
- };
- //---------------------------------------------------------------------------
- #endif