TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Kevin Darling 76703,4227 (X)
from: Stephen Seneker 75020,3611
date: 1992-08-15 06:15:33
subject: #16215-MM/1 _ss_play

#: 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?

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.