home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextLibrary / Frameworks / NEXTIME.framework / Versions / A / Headers / NTSampleProcessor.h < prev    next >
Encoding:
Text File  |  1995-08-30  |  1.3 KB  |  57 lines

  1. /*
  2.  *  NTSampleProcessor.h
  3.  *     Copyright 1994, NeXT Computer, Inc.
  4.  *    
  5.  *    This is a server only abstract superclass to aid component writers.
  6.  *
  7.  *    27 Apr 1994 pgraff Created.
  8.  */
  9.  
  10. #import "NTSampleProcessorProtocol.h"
  11. #import "NTSampleBuffer.h"
  12. #import <Foundation/NSObject.h>
  13. #import <Foundation/NSDictionary.h>
  14.  
  15. @interface NTSampleProcessor: NSObject <NTSampleProcessor>
  16. {
  17.     NSZone *zone;
  18.     NSDictionary *env;
  19.     NSDictionary *config;
  20.     id <NTMutableSampleBuffer> inputBuffer;
  21.     id nextObject;
  22.     BOOL samplesEnqueued;
  23.     BOOL stopped;
  24. }
  25.  
  26. // The following is the implementation of writeSample in this superclass.
  27. // If it meets your needs, override either of the two below methods to taste.
  28. // Otherwise override writeSample.
  29. //
  30. // - (void)writeSample: (NTSampleBuffer *) sample; 
  31. // {
  32. //     NTSampleBuffer *dst;
  33. //
  34. //     if ((dst = [nextObject inputBuffer]) == nil &&
  35. //         (dst = [self outputBufferForInput: sample]) == nil) {
  36. //        [sample free];
  37. //        return;
  38. //     }
  39. //
  40. //     [self processSamplesFrom: sample to: dst];
  41. //     if (sample != inputBuffer) 
  42. //        [sample free];
  43. //     [nextObject writeSample: dst];
  44. // }
  45.  
  46. - (NTMutableSampleBuffer *) outputBufferForInput: (NTSampleBuffer *) buf;
  47. - (void) processSamplesFrom: (NTSampleBuffer *)src to: (NTMutableSampleBuffer *) dst;
  48.  
  49. @end
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.