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
UiSoundSetting.cpp
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++
- /*****************************************************************************************
- // 界面声音
- // Copyright : Kingsoft 2003
- // Author : Wooy(Wu yue)
- // CreateTime: 2003-5-15
- *****************************************************************************************/
- #include "KWin32.h"
- #include "KIniFile.h"
- #include "UiSoundSetting.h"
- #include "../../core/src/coreshell.h"
- extern iCoreShell* g_pCoreShell;
- #define SETTING_FILE "\Settings\SoundList.txt"
- static char s_SoundFileName[UI_SOUND_COUNT][80] =
- {
- "",
- "",
- "",
- "",
- "",
- "",
- };
- //载入设定
- bool UiSoundLoadSetting()
- {
- KIniFile Setting;
- if (!Setting.Load(SETTING_FILE))
- return false;
- char szSection[8];
- for (int i = 0; i < (int)UI_SOUND_COUNT; i++)
- {
- itoa(i, szSection, 10);
- Setting.GetString("Ui", szSection, "", s_SoundFileName[i], sizeof(s_SoundFileName[i]));
- }
- return true;
- }
- //播放指定的声音
- void UiSoundPlay(UI_SOUND_INDEX eIndex)
- {
- if (g_pCoreShell)
- g_pCoreShell->OperationRequest(GOI_PLAY_SOUND, (unsigned int)(&s_SoundFileName[eIndex]), 0);
- }
- //播放指定的声音
- void UiSoundPlay(char* SoundFileName)
- {
- if (g_pCoreShell)
- g_pCoreShell->OperationRequest(GOI_PLAY_SOUND, (unsigned int)(SoundFileName), 0);
- }