home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / sound / editsound.h < prev    next >
Text File  |  1991-08-09  |  1KB  |  44 lines

  1.  
  2. /*
  3.  *    editsound.h
  4.  *    Copyright 1988-89 NeXT, Inc.
  5.  *
  6.  */
  7.  
  8. #import "soundstruct.h"
  9. #import "sounderror.h"
  10.  
  11. int SNDCopySound(SNDSoundStruct **s1, SNDSoundStruct *s2);
  12. int SNDCopySamples(SNDSoundStruct **s1, SNDSoundStruct *s2,
  13.            int startSample, int sampleCount);
  14. /*
  15.  * Copy a segment of the sound s2 (specified by offset samples from the
  16.  * beginning and running for count samples), into a newly allocated
  17.  * SNDSoundStruct; s1 is set to point at the new SNDSoundStruct. 
  18.  * The NSDCopySound function copies the entire sound, and works for
  19.  * any type of sound, including dsp sounds.
  20.  * An error code is returned. s2 is unaffected by this operation.
  21.  */
  22.  
  23. int SNDInsertSamples(SNDSoundStruct *s1, SNDSoundStruct *s2, int startSample);
  24. /*
  25.  * Insert a copy of the sound s2 into the sound s1 at a position specified by 
  26.  * offset. This operation may leave s1 fragmented; s2 is unaffected.
  27.  */
  28.  
  29. int SNDDeleteSamples(SNDSoundStruct *s, int startSample, int sampleCount);
  30. /*
  31.  * Delete the segBST of the sound s specified by startSample samples from 
  32.  * the beginning and running for sampleCount samples. This operation may
  33.  * leave s fragmented. The memory occupied by the segment of sound is freed.
  34.  */
  35.  
  36. int SNDCompactSamples(SNDSoundStruct **s1, SNDSoundStruct *s2);
  37. /*
  38.  * Create a new sound s1 as a compacted version of the the sound s2.
  39.  * Compaction eliminates the fragmentation caused by
  40.  * insertion and deletion. An error code is returned.
  41.  */
  42.  
  43.  
  44.