Changeset 3bf994e in orbit for iOS/Orbit/Orbit/AudioGenerator.m


Ignore:
Timestamp:
08/25/13 23:37:40 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
835f156
Parents:
c00c6d8
Message:

AudioGenerator?:

  • comments added for debugging
File:
1 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/AudioGenerator.m

    rce0a7ee r3bf994e  
    295295- (void) writePauseInSamplesTo:(Float32 *) buffer at:(int *) position 
    296296{ 
    297     int length = (int)floor(0.010 * sampleRate); 
     297    int length = (int)floor(0.010 * sampleRate); // length of pause to insert 
    298298    float arr[length]; 
    299299    [self writeArray:arr to:buffer length:length at:position]; 
     
    335335- (void) halfSineGen:(BOOL)upper halfPeriod: (double)halfPeriod toBuffer:(Float32 *) buffer at:(int *) position 
    336336{ 
     337    
     338   // TODO - testing 
     339   //halfPeriod =true; 
     340    
    337341    int sampleCount = [self arraySizeWithHalfPeriod:halfPeriod]; 
    338342    double increment = M_PI/(halfPeriod * sampleRate); 
Note: See TracChangeset for help on using the changeset viewer.