Pocket-G's Dynamic Sound Mixer Library
This is a dynamic link library (DLL) version of Pocket-G's multi-channel dynamic sound mixing engine, included with one channel of music playback. PgSnd.dll was developed for Pocket-G use since Windows CE doesn't support such a feature. Most mordern gaming applications use synthetic audio (where sound seeds are dynamically manipulated and mixed together randomly). So with this library, pgSnd.dll, you will be able efficiently create the desired sounds for your gaming applications.
This document covers the following topics:
- About pgSnd.dll
- Why use pgSnd.dll?
- pgSnd.dll preferences
- User Licensee Agreement and how to register?
- Example application with the source code.
- Download the full manual by click here (pgsndmanual.zip)
About pgSnd.dll
- pgSnd.dll is a multi-channel run-time wave mixing engine, in the form of the Dynamic Linking Library (DLL), MOD music player is included. It provides APIs suitable for dynamic sound generation. With this library, you can easly produce your desired high quality game products.
Why use pgSnd.dll?
- The pgSnd.dll performs multi-channel sound mixing functions. Because, most of Windows CE hardware do not support this feature.
- The pgSnd.dll can play audio sources from up to 32 channels at the same time and uses low processor resources.
- It works for most Windows CE devices, including PPC, PsPC, HPC and HPC Pro.
- The mixer supports PCM 8-bit Wave format, both in stereo and mono format. In stereo mode, you are able to control the volume of the left and right speakers individually. You can either load the wave data from an external file or from the internal resource file.
- The supported music format is Module Tracker (MOD), having 4 - 32 channels. Because, this kind of music format is rather small, only software can be used to play it back with no addition hardware is required.
pgSnd.dll short preferences
APIs provided by pgSnd.dll
BOOL pg_WaveInit(HWND hWndApp, int nMixChannels, int nPlaybackRate, int nMixbufferSize);
void pg_WaveClose(void);
void pg_WaveLoadRes(HINSTANCE hModule, int nResID);
void pg_WaveLoadFile(TCHAR *szFileName);
void pg_WavePlay(int nChannel, BOOL bLoop);
void pg_WaveStop(int nChannel);
void pg_WaveActivate(BOOL bActv);
void pg_WaveSetMainVolume(int nVol);
void pg_WaveSetChannelVolume(int nChannel, int nVolL, int nVolR);
BOOL pg_LoadMusic(TCHAR* szFileName);
BOOL pg_PlayMusic(void);
BOOL pg_StopMusic(void);
void pg_SetMusicVolume(int);
Download the full manual by click here (pgsndmanual.zip)
Uses license agreement and how to register?
There are three license types available for using this library;
1. Free license. This license is free but the library will be limited to 4 mixing channels. The music player is not included. The using limitation is only for freeware products, you cann't put this library to any commercial software. You can get this library from the link below;
download: pgsnddemo.zip
Inside the package included;-
- Demo version of pgsnd library (DLL, LIB, and C Header files)
- Sample source code
- The full manual (HTML format)
2. Development license. This license is free but the library will be limited to 8 mixing channels. The using limitation is described in our Development License Agreement. To get this library, please e-mail your request to . Please identify yourself and your company. We will send the license and/or the library to you via e-mail.
3. Commercial license. This license is per product license. You need to register one license per application software product. The first license cost is US$99.95. The next license can be discounted according to the size of your order, from 30%-50% off. If you have any question, please fell free to e-mail us at .
Example application with source code
We offer the WaveMixer and ModPlayer demo on our software page which is free to download. The source code version is sample.zip.
|