2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
23 typedef struct tagSSCaps {
25 unsigned bits_per_sample;
29 typedef struct tagSSoundBuffer {
32 LPDIRECTSOUNDBUFFER obj;
33 LPDIRECTSOUNDBUFFER auxobj;
34 LPDIRECTSOUNDBUFFER auxobj2;
38 unsigned short channels;
39 unsigned short bits_per_sample;
40 unsigned short looping;
41 int loop_start, loop_end, loop_length;
44 typedef int SSChannel;
47 void SSGetCaps(SSCaps *caps);
48 BOOL SSInit(HWND hWnd, int channels, unsigned flags);
50 void SSSetVolume(DWORD vol);
52 BOOL SSInitBuffer(SSoundBuffer *sample);
53 void SSDestroyBuffer(SSoundBuffer *sample);
54 SSChannel SSInitChannel(SSoundBuffer *sample);
55 BOOL SSChannelPlaying(SSChannel channel);
56 BOOL SSStopChannel(SSChannel channel);
57 BOOL SSSetChannelPan(SSChannel channel, unsigned short pan);
58 BOOL SSSetChannelVolume(SSChannel channel, unsigned short vol);