Changeset 9b2949b in orbit for iOS


Ignore:
Timestamp:
08/16/13 10:11:17 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
e8cd830
Parents:
6d0d67b
Message:

iOS:

  • pre-signal hacking
Location:
iOS/Orbit/Orbit
Files:
2 edited

Legend:

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

    rce0a7ee r9b2949b  
    123123     
    124124         
    125         // This is a mono tone generator so we only need the first buffer 
    126         const int channel = 0; 
     125//      // This is a mono tone generator so we only need the first buffer 
     126//      const int channel = 0; 
     127    
     128   // There are two channels to the audio control stream (left and right) 
     129   const int channel = 0; // Output to left channel 
     130//   const int channel = 1; // Output to right channel 
     131 
     132    
     133    
    127134        Float32 *buffer = (Float32 *)ioData->mBuffers[channel].mData; 
    128135     
     
    184191    streamFormat.mFramesPerPacket = 1; 
    185192    streamFormat.mBytesPerFrame = four_bytes_per_float; 
    186     streamFormat.mChannelsPerFrame = 1; 
     193    
     194   // There are two channels to the audio stream 
     195//   streamFormat.mChannelsPerFrame = 1; 
     196   streamFormat.mChannelsPerFrame = 2; 
     197    
    187198    streamFormat.mBitsPerChannel = four_bytes_per_float * eight_bits_per_byte; 
    188199    err = AudioUnitSetProperty (toneUnit, 
  • iOS/Orbit/Orbit/controllers/TutorialViewController.m

    rde10cbc r9b2949b  
    1818     [NSURLRequest requestWithURL: 
    1919      [NSURL fileURLWithPath: 
    20        [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]]]]; 
     20       [[NSBundle mainBundle] pathForResource:@"frame" ofType:@"html"]]]]; 
    2121    [super viewDidLoad]; 
    2222} 
Note: See TracChangeset for help on using the changeset viewer.