download DSPSerialPortDevice.h
Language: ObjectiveC
Copyright: (c) 1988-1992, NeXT Computer, Inc. (c) 1999-2001, The MusicKit Project. (c) 1994 CCRMA, Stanford University. (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT
LOC: 83
Project Info
The MusicKit(musickit)
Server: SourceForge
Type: cvs
...sicKit\Frameworks\MusicKit\
   _ArielQP.h
   _DSPMK.h
   _error.h
   _midi.h
   _MKAppProxy.h
   _MKAppProxy.m
   _MKNameTable.h
   _MKNameTable.m
   _MKParameter.h
   _MTCHelper.h
   _MTCHelper.m
   _musickit.h
   _noteRecorder.h
   _OrchloopbeginUG.h
   _OrchloopbeginUG.m
   _ParName.h
   _ParName.m
   _scorefile.h
   _ScorefileVar.h
   _ScorefileVar.m
   _SharedSynthInfo.h
   _SharedSynthInfo.m
   _synthElementMethods.m
   _time.h
   ArielQP.h
   ArielQP.m
   classFuncs.h
   ConductorPrivate.h
   dsp_types.h
   DSPSerialPortDevice.h
   dspwrap.h
   EnvelopePrivate.h
   equalTempered.m
   errors.h
   fastFFT.c
   fastFFT.h
   GNUmakefile.postamble
   GNUmakefile.preamble.in
   InstrumentPrivate.h
   keynums.h
   libMusicKit.def
   Localized.strings
   make.sh
   Makefile.postamble
   Makefile.preamble
   midi_spec.h
   midifile.h
   midifile.m
   MidiPrivate.h
   midiTranslation.h
   MKConductor.h
   MKConductor.m
   MKConductorDelegate.h
   MKDeviceStatus.h
   MKEnvelope.h
   MKEnvelope.m
   MKFilePerformer.h
   MKFilePerformer.m
   MKFileWriter.h
   MKFileWriter.m
   MKInstrument.h
   MKInstrument.m
   MKMidi.h
   MKMidi.m
   MKMixerInstrument.h
   MKMixerInstrument.m
   MKMTCPerformer.h
   MKMTCPerformer.m
   MKNote.h
   MKNoteFilter.h
   MKNoteFilter.m
   MKNoteReceiver.h
   MKNoteReceiver.m
   MKNoteSender.h
   MKNoteSender.m
   MKOrchestra.h
   MKPart.m
   MKPartials.h
   MKPartials.m
   ...tialsWaveshapingTable.m
   MKPartPerformer.h
   MKPartPerformer.m
   MKPartRecorder.h
   MKPartRecorder.m
   MKPatch.h
   MKPatch.m
   MKPatchConnection.h
   MKPatchConnection.m
   MKPatchEntry.h
   MKPatchEntry.m
   MKPatchTemplate.h
   MKPatchTemplate.m
   MKPerformer.h
   MKPerformer.m
   MKPerformerDelegate.h
   MKPlugin.h
   MKSamplerInstrument.h
   MKSamplerInstrument.m
   MKSamples.h
   MKScore.h
   MKScore.m
   MKScorefileObject.h
   MKScorefilePerformer.h
   MKScorefilePerformer.m
   MKScorefileWriter.m
   MKScorePerformer.h
   MKScorePerformer.m
   MKScoreRecorder.h
   MKScoreRecorder.m
   MKSynthData.h
   MKSynthData.m
   MKSynthInstrument.h
   MKSynthPatch.h
   MKTimbre.h
   MKTimbre.m
   MKTuningSystem.h
   MKTuningSystem.m
   MKUnitGenerator.h
   MKUnitGenerator.m
   MKWaveTable.h
   MKWaveTable.m
   mtcMidi.m
   mtcMidiPrivate.m
   MusicKit-Info.plist
   MusicKit.h
   MusicKitConfig.h.in
   names.h
   noDVal.h
   noteDispatcherMethods.m
   NotePrivate.h
   noteRecorderCFuncs.m
   noteRecorderMethods.m
   orch.h
   OrchestraPrivate.h
   OrchloopbeginUG.h
   OrchloopbeginUG.m
   orchloopbeginUGInclude.m
   params.h
   parNames.m
   partialsDBInclude.m
   PartialsPrivate.h
   PartPerformerPrivate.h
   PartPrivate.h
   PartRecorderPrivate.h
   PatchTemplatePrivate.h
   PB.project
   PerformerPrivate.h
   pitches.h
   platform.make
   ...efilePerformerPrivate.h
   ScorePerformerPrivate.h
   ScorePrivate.h
   ScoreRecorderPrivate.h
   SynthDataPrivate.h
   synthElementCFuncs.m
   synthElementMethods.m
   SynthInstrumentPrivate.h
   SynthPatchList.h
   SynthPatchList.m
   SynthPatchPrivate.h
   timetagInclude.m
   timeunits.h
   tokenNames.m
   tokens.h
   trigonometry.c
   trigonometry.h
   TuningSystemPrivate.h
   UnitGeneratorPrivate.h
   win32-def.top
   writeBinary.m
   writeMidi.m
   writeScore.m

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
/*
  $Id: DSPSerialPortDevice.h,v 1.8 2005/05/22 07:34:06 leighsmith Exp $
  Defined In: The MusicKit

  Description:
    Serial port delegate of MKOrchestra. See the discussion below. With the demise
    of the NeXT hardware, this class becomes an example of DSP operation. In theory it still works.
    
  Original Author: David A. Jaffe

  Copyright (c) 1988-1992, NeXT Computer, Inc.
  Portions Copyright (c) 1994 NeXT Computer, Inc. and reproduced under license from NeXT
  Portions Copyright (c) 1994 CCRMA, Stanford University.
  Portions Copyright (c) 1999-2001, The MusicKit Project.
*/
/*
  $Log: DSPSerialPortDevice.h,v $
  Revision 1.8  2005/05/22 07:34:06  leighsmith
  Corrected and updated headerdoc

  Revision 1.7  2005/05/14 03:27:26  leighsmith
  Clean up of parameter names to correct doxygen warnings

  Revision 1.6  2005/05/09 15:52:49  leighsmith
  Converted headerdoc comments to doxygen comments

  Revision 1.5  2001/09/07 00:11:46  leighsmith
  Correctly added headerdoc comments

  Revision 1.4  2001/09/06 21:27:47  leighsmith
  Merged RTF Reference documentation into headerdoc comments and prepended MK to any older class names

  Revision 1.3  2001/03/12 01:56:54  leigh
  Typed orch to avoid warnings

  Revision 1.2  1999/07/29 01:25:42  leigh
  Added Win32 compatibility, CVS logs, SBs changes

*/
/*!
  @class DSPSerialPortDevice
  @brief

The DSPSerialPortDevice class corresponds to a device that plugs into the DSP
serial port.  Instantiating an instance of the DSPSerialPortDevice class itself
provides you with a serial port protocol that is used by many devices such as
the Ariel Digital Microphone and the Metaresearch Digital Ears.  For other
devices that don't follow that protocol, or for access to "customization"
commands, you may instantiate an instance of a subclass of DSPSerialPortDevice. 
The Music Kit provides a number of such subclasses:

SSAD64x	Singular Solutions AD64x ADC & DAT interface.
StealthDAI2400	Stealth DAI2400 DAT interface.
ArielProPort	Ariel ProPort interface.

These class descriptions appear at the end of this document.  The file
DSPSerialPortDevice.h contains the interface declarations for these classes.  It
also contains defines for "classes" that are fully represented by the
DSPSerialPortDevice class itself:

ArielDigitalMic 	Ariel Digital Microphone 
MRDigitalEars	Metaresearch Digital Ears 

To use a DSPSerialPortDevice or subclass instance, you simply send the orchestra
instance the message <b>setSerialPortDevice:</b><i></i> with an argument of your
DSPSerialPortDevice instance.  In order to access the device for sound output,
you must also send to the orchestra the message <b>setSerialSoundOut:YES</b>.  
Similarly, to access the device for sound input, you must send the orchestra
<b>setSerialSoundIn:YES</b>.  To find out if you can use a particular sampling
rates, you send the message <b>supportsSamplingRate:</b> to the
DSPSerialPortDevice or subclass instance.  To find the default sampling rate,
send it the message <b>defaultSamplingRate</b>.

To implement a new DSPSerialPortDevice subclass for a new device, you override a
number of methods. The most important is <b>setUpSerialPort:</b>.  Other
methods you might want to override include <b>hardwareSupportedSamplingRates:</b>, <b>inputSampleSkip </b>and <b>outputSampleSkip</b>. 

The DSPSerialPortDevice class also supports "half sampling rates".  For
example, if the hardware supports 44100, 48000 and 32000, then the Music Kit
software will also allow the device to be used at 22050, 42000 and 16000.  
These half sampling rates are entirely automatic - the designer of a subclass
need not think about this at all.  He need only implement <b>hardwareSupportedSamplingRates:</b>.  

If you have several Orchestra instances (for example, if you have a cube with an
Ariel QuintProcessor) and each has its own serial port, each can have its own
instance of DSPSerialPortDevice or one of its subclasses.
*/
#ifndef __MK_DSPSerialPortDevice_H___
#define __MK_DSPSerialPortDevice_H___
#import <Foundation/NSObject.h>

@interface DSPSerialPortDevice:NSObject 
{
    BOOL sendsSettings;
}

#define ArielDigitalMic DSPSerialPortDevice /* Generic version works fine */
#define MRDigitalEars DSPSerialPortDevice   /* Generic version works fine */


/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  A
  subclass may override this method to provide appropriate values. 
  The default version of this method uses these settings: scr = 0x302,
  sccr = 0x18, cra = 0x4100 and crb = 0xa00.   If sendsSettings is NO,
  does not set scr or sccr.  See the DSP56001 manual for details.  A
  subclass may also override this method and invoke the orchestra
  method <b>sendSCIByte:</b> to send a command to the device hardware.
  
*/
-setUpSerialPort:orchestra;

-init;

/*!
  @param  yesOrNo is a BOOL.
  @return Returns an id.
  @brief Set whether settings, such as the sampling rate are sent by the
  object (via the SCI port) to the device.

  It is up to the subclass
  implementation of setUpSerialPort: to support this flag.   The
  default value is YES.
*/
-setSendsSettings:(BOOL)yesOrNo;

/*!
  @return Returns a BOOL.
  @brief Returns value of sendsSettings instance variable.

  
*/
-(BOOL)sendsSettings;

/*!
  @param  rate is a double.
  @return Returns a BOOL.
  @brief This method returns YES if the device supports the specified
  sampling rate or if that sampling rate is obtainable as half of one
  of the sampling rates the device supports.

  This method is
  implemented as: 	
  	
  <tt>
  return ([self hardwareSupportsSamplingRate:rate] ||	
  [self hardwareSupportsSamplingRate:rate*2])
  </tt>
  
  Subclass should not override this method, but should implement <b>hardwareSupportedSamplingRates: </b>instead.
*/
-(BOOL)supportsSamplingRate:(double)rate;

/*!
  @param  rate is a double.
  @return Returns a BOOL.
  @brief This returns YES if rate is a sampling rate actually supported by
  the device.

  Does not return YES for half sampling rates.  A
  subclass should not override this method.
*/
-(BOOL)hardwareSupportsSamplingRate:(double)rate;

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief This method mallocs and returns in <i>*rates</i> an array of
  sampling rates supported by the hardware.

  In addition, it returns
  the length of the array.  A subclass may override this
  method.
*/
-(int)hardwareSupportedSamplingRates:(double **) rates;

/*!
  @param  rate is a double.
  @return Returns a BOOL.
  @brief This returns YES if rate is available only as half of one of the
  sampling rates supported by the hardware.

  Implemented
  as:
  <tt>
  return ([self supportsSamplingRate:rate] &amp;&amp;
  ![self hardwareSupportsSamplingRate:rate]);
  </tt>
  
  Subclass should not override this method, but should implement <b>hardwareSupportedSamplingRates:</b> instead.
*/
-(BOOL)supportsHalfSamplingRate:(double)rate;

/*!
  @return Returns a double.
  @brief This method returns a default sampling rate for this device.

  For
  Music Kit synthesis, this should be the lowest sampling rate (within
  reason) so that naive users have the least trouble with running out
  of DSP resources.  Half of a hardware-supported sampling rate may be
  returned.   Default version returns 22050.  A subclass may override
  this method.
*/
-(double)defaultSamplingRate;

/*!
  @return Returns an int.
  @brief Returns samples skipped for sound input (i.e.

  sound entering the DSP
  via the serial port.)  Default is no skipping and this method
  returns 0.  A subclass may override this method.
*/
-(int)inputSampleSkip;

/*!
  @return Returns an int.
  @brief Returns samples skipped for sound output (i.e.

  sound exiting the DSP
  via the serial port.)  Default is no skipping and this method
  returns 0.  A subclass may override this method.
*/
-(int)outputSampleSkip;

/*!
  @return Returns an int.
  @brief Returns samples initially skipped for input.

  For example, if
  inputSampleSkip is 1 and the samples arrive in the DSP as
  0,&lt;sample&gt;,0,&lt;sample&gt;, then inputInitialSampleSkip
  should return 1.  On the other hand, if inputSampleSkip is 1 and the
  samples arrive in the DSP as &lt;sample&gt;,0,&lt;sample&gt;,0, then
  inputInitialSampleSkip should be 0.  Default is no initial skipping
  and this method returns 0.  A subclass may override this
  method.
*/
-(int)inputInitialSampleSkip;

/*!
  @return Returns an int.
  @brief Returns samples initially skipped for output.

  For example, if
  outputSampleSkip is 1 and the samples are sent out the DSP as
  0,&lt;sample&gt;,0,&lt;sample&gt;, then outputInitialSampleSkip
  should return 1.  On the other hand, if outputSampleSkip is 1 and
  the samples are sent out the DSP as &lt;sample&gt;,0,&lt;sample&gt;,0, then outputInitialSampleSkip should be 0.  Default is no initial skipping and this method returns 0.  A subclass may override this method.
*/
-(int)outputInitialSampleSkip;

/*!
  @return Returns an int.
  @brief Returns number of input sound channels.

  Default version returns 2
  for stereo.  A subclass may override this method.
*/
-(int)inputChannelCount;

/*!
  @return Returns an int.
  @brief Returns number of output sound channels.

  Default version returns 2
  for stereo.  A subclass may override this method.
*/
-(int)outputChannelCount;

/*!
  @return Returns an int.
  @brief Returns number of extra samples to append to each input sample
  frame.

  Default implementation returns 0.  Subclasses may override
  this method.
*/
-(int)inputPadding;

/*!
  @return Returns an id.
  @brief This is invoked by Orchestra open to determine whether to send
  <b>setUpSerialPort:</b> before or after calling <b>DSPMKStartSoundOut()</b>.

  
  The default implementation returns YES.  Subclasses may override this method.
*/
-(BOOL)setUpAfterStartingSoundOut;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to unmute the serial port device.

  
  A subclass may override this method to provide appropriate
  behaviour, when it is inclined to produce unwanted noise after
  setting up the serial port, before the DSP produces output.  The
  default version of this method does nothing. 
*/
-unMuteSerialPort: (id) orchestra;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief Subclass may override this method to do any special muting or other
  things needed for clean shut-down.
*/
-closeDownSerialPort: (id) orchestra;

/*!
  @param  system is a DSPLoadSpec *.
  @param  orchestra is an MKOrchestra *.
  @return Returns an id.
  @brief Implement this to make any adjustments to the DSP monitor before it
  is loaded.

  If you implement this method, you must first call
  DSPSetSystem(system); in the implementation.  Normally, it's better
  if you can make your adjustments in setUpSerialPort:.
*/
-adjustMonitor:(DSPLoadSpec *)system forOrchestra: (id) orchestra;

@end

/*!
  @class SSAD64x
  @brief 
The SSAD64x
class is a DSPSerialPortDevice subclass that corresponds to the Singular
Solutions AD64x ADC &amp; DAT interface.

  
*/
@interface SSAD64x:DSPSerialPortDevice
{
	BOOL professional;
}

/*!
  @param  isPro is a BOOL.
  @return Returns an id.
  @brief Sets the <i>professional</i> instance variable to <i>isPro.</i>Then,
  when <b>setUpSerialPort: </b>   is invoked, the AD64x will be set to
  professional (AES/EBU) or consumer (SPDIF) mode, according to the
  value of <i>professional.</i>
*/
-setProfessional:(BOOL)yesOrNo;   

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief Returns 3 and sets *<i>rates</i> to a malloc'ed array containing
  48000, 44100, and 32000.
*/
-(int)hardwareSupportedSamplingRates:(double **)rates;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends
  the appropriate values for the AD64x.   If sendsSettings is YES, it
  sets the device to the proper sampling rate and professional/consumer mode setting.
*/
-setUpSerialPort: (id) orchestra;

/*!
  @return Returns an int.
  @brief Returns skip for sound input (i.e.

  sound entering the DSP via the
  serial port.)  Since the AD64x requires a zero before each sample,
  this method returns 1.
*/
-(int)inputSampleSkip;

/*!
  @return Returns an int.
  @brief Returns skip for sound output (i.e.

  sound exiting the DSP via the
  serial port.)  Since the AD64x requires a zero before each sample,
  this method returns 1.
*/
-(int)outputSampleSkip;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief Unmutes device.
*/
-unMuteSerialPort: (id) orchestra;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief Mutes device to prevent buzzing.
*/
-closeDownSerialPort: (id) orchestra;

@end

/*!
  @class StealthDAI2400
  @brief 
The StealthDAI2400 class is a DSPSerialPortDevice subclass that corresponds to the
Stealth DAI2400 DAT interface.

  
*/
@interface StealthDAI2400:DSPSerialPortDevice
{
	BOOL copyProhibit,emphasis;
}

/*!
  @param  setCopyProhibit is a BOOL.
  @return Returns an id.
  @brief Sets the <i>copyProhibit</i> instance variable to
  <i>setCopyProhibit.</i>   Then, when <b>applySettings:</b> is
  invoked, the StealthDAI2400 will be told to set or clear the copy
  prohibit flag.

  
*/
-setCopyProhibit:(BOOL)yesOrNo;

/*!
  @param  useEmphasis is a BOOL.
  @return Returns an id.
  @brief Sets the <i>empahsis</i> instance variable to <i>useEmphasis.</i>  
  Then, when <b>applySettings:</b> is invoked, the StealthDAI2400 will
  be set to whether or not to use emphasis.

  
*/
-setEmphasis:(BOOL)useEmphasis;

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief Returns 3 and sets *<i>rates</i> to a malloc'ed array containing 
  48000, 44100, 32000.

  
*/
-(int)hardwareSupportedSamplingRates:(double **)rates;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends the appropriate values for the StealthDAI2400.
*/
-setUpSerialPort: (id) orchestra;

@end

/*!
  @class ArielProPort
  @brief 
The ArielProPort class is a DSPSerialPortDevice subclass that corresponds to the
Ariel ProPort ADC/DAC interface.

  
*/
@interface ArielProPort:DSPSerialPortDevice
{}

/*!
  @param  rates is a double.
  @return Returns an int.
  @brief Returns 7 and sets *<i>rates</i> to a malloc'ed array containing 
  96000, 48000, 44100, 32000, 16000, 11025 or 8000.

  Note that 96000
  is supported by the ProPort for input only.
*/
-(int)hardwareSupportedSamplingRates:(double **)ar;

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends
  the appropriate values for the ArielProPort.
*/
-setUpSerialPort: (id) orchestra;

@end

@interface TurtleBeachMS:DSPSerialPortDevice
{}


/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends
  the appropriate values for the TurtleBeachMS.
*/
-setUpSerialPort:orchestra;

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief Returns 3 and sets *<i>rates</i> to a malloc'ed array containing
  48000, 44100, and 32000.

  
*/
-(int)hardwareSupportedSamplingRates:(double **)ar;

@end


@interface TurtleBeachFiji:DSPSerialPortDevice
{}


/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends
  the appropriate values for the TurtleBeachFiji.
*/
-setUpSerialPort:orchestra;

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief Returns 3 and sets *<i>rates</i> to a malloc'ed array containing
  48000, 44100, and 32000.

  
*/
-(int)hardwareSupportedSamplingRates:(double **)ar;
-adjustMonitor:(DSPLoadSpec *)system forOrchestra:orchestra;

@end


@interface Frankenstein:DSPSerialPortDevice
{
    unsigned long initWord1,initWord2;
    unsigned long runTimeWord1,runTimeWord2;
    int lineOutAtten,lineInGain;
    MKOrchestra *orch;
}

/* The following methods are invoked by the MKOrchestra. */

/*!
  @param  orchestra is an id.
  @return Returns an id.
  @brief This is invoked by Orchestra open to set up the serial port.

  Sends
  the appropriate values for the TurtleBeachFiji.
*/
-setUpSerialPort:orchestra;

/*!
  @param  rates is a double **.
  @return Returns an int.
  @brief Returns 3 and sets *<i>rates</i> to a malloc'ed array containing
  48000, 44100, and 32000.

  
*/
-(int)hardwareSupportedSamplingRates:(double **)ar;

/*!
  @return Returns an int.
  @brief Returns number of extra samples to append to each output sample
  frame.

  Default implementation returns 0.  Subclasses may override
  this method.  Currently, only padding of 2 or 0 are
  supported.
*/
-(int)outputPadding;

/*!
  @return Returns an int.
  @brief Returns number of extra samples to append to each input sample
  frame.

  Default implementation returns 0.  Subclasses may override
  this method.
*/
-(int)inputPadding;
-setLineOutAttenuation:(double)val;  /* In db from -95 to 0 */
-setLineInGain:(int)val;  /* In db from 0 to 22.5 */
-(BOOL)setUpAfterStartingSoundOut; /* Returns NO */

@end

#endif

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us