2 static char RCSId[] = "$Id: heap.c,v 1.3 1993/07/04 04:04:21 root Exp root $";
3 static char Copyright[] = "Copyright Robert J. Amstadt, 1993";
8 #include "prototypes.h"
12 printf("OpenSound()\n");
18 printf("CloseSound()\n");
21 int SetVoiceQueueSize(int nVoice
, int nBytes
)
23 printf("SetVoiceQueueSize (%d,%d)\n",nVoice
,nBytes
);
27 int SetVoiceNote(int nVoice
, int nValue
, int nLength
, int nCdots
)
29 printf("SetVoiceNote (%d,%d,%d,%d)\n",nVoice
,nValue
,nLength
,nCdots
);
33 int SetVoiceAccent(int nVoice
, int nTempo
, int nVolume
, int nMode
, int nPitch
)
35 printf("SetVoiceAccent(%d,%d,%d,%d,%d)\n", nVoice
, nTempo
,
36 nVolume
, nMode
, nPitch
);
40 int SetVoiceEnvelope(int nVoice
, int nShape
, int nRepeat
)
42 printf("SetVoiceEnvelope(%d,%d,%d)\n",nVoice
,nShape
,nRepeat
);
46 int SetSoundNoise(int nSource
, int nDuration
)
48 printf("SetSoundNoise(%d,%d)\n",nSource
,nDuration
);
52 int SetVoiceSound(int nVoice
, long lFrequency
, int nDuration
)
54 printf("SetVoiceSound(%d, %d, %d)\n",nVoice
,lFrequency
, nDuration
);
68 int WaitSoundState(int x
)
70 fprintf(stderr
, "WaitSoundState(%d)\n", x
);
73 int SyncAllVoices(void)
75 fprintf(stderr
, "SyncAllVoices()\n");
78 int CountVoiceNotes(int x
)
80 fprintf(stderr
, "CountVoiceNotes(%d)\n", x
);
83 LPINT
GetThresholdEvent(void)
85 fprintf(stderr
, "GetThresholdEvent()\n");
88 int GetThresholdStatus(void)
90 fprintf(stderr
, "GetThresholdStatus()\n");
93 int SetVoiceThreshold(int a
, int b
)
95 fprintf(stderr
, "SetVoiceThreshold(%d,%d)\n", a
, b
);
100 fprintf(stderr
, "BEEP!\n");
104 11 pascal WAITSOUNDSTATE(word) WaitSoundState(1)
105 12 pascal SYNCALLVOICES() SyncAllVoices()
106 13 pascal COUNTVOICENOTES(word) CountVoiceNotes(1)
107 14 pascal GETTHRESHOLDEVENT() GetThresholdEvent()
108 15 pascal GETTHRESHOLDSTATUS() GetThresholdStatus()
109 16 pascal SETVOICETHRESHOLD(word word) SetVoiceThreshold(1 2)