#: 16216 S12/OS9/68000 (OSK)
15-Aug-92 06:15:33
Sb: #16215-MM/1 _ss_play
Fm: Stephen Seneker 75020,3611
To: Kevin Darling 76703,4227 (X)
Kevin,
I believed so on the memory.... Now for the $20,000 question... what about
recording more auido than available memory in video memory. I'm sure it can be
done...
I was under the impression that the windowing system had calls for doing audio
I/O? Or at least something to that extent was in the tech. manual.
What follows is a shorten version of the test program:
#include #include
main() {
char *sdata; /* sound data path */
int spath; /* file */
int path=1; /* STDOUT */
int length; /* length of sound data/file */
int freq; /* ????? do what with ????? */
spath=open("bass2.iff",0x01);
length=_gs_size(spath);
sdata = (char *) _srqmem(length);
read(spath,sdata,length);
close(spath);
_ss_play(path,sdata,length,freq/*???*/,SND_NOSIG,NULL);
getchar();
_srtmem(length,sdata);
}
I just typed it in from memory less the checks of returned values, like
_srqmem(). The first try use malloc(), but no luck. I tried setting freq to
different values. I got varied results like crashing, killing further audio
play request, locking up the window... I'm using wind38... (whats in the
works?) have 3megs... Need any other information?
|