Changeset 9b2949b in orbit
- Timestamp:
- 08/16/13 10:11:17 (9 years ago)
- Branches:
- master, Servo, Tab_Interface, pyramid
- Children:
- e8cd830
- Parents:
- 6d0d67b
- Location:
- iOS/Orbit/Orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
iOS/Orbit/Orbit/AudioGenerator.m
rce0a7ee r9b2949b 123 123 124 124 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 127 134 Float32 *buffer = (Float32 *)ioData->mBuffers[channel].mData; 128 135 … … 184 191 streamFormat.mFramesPerPacket = 1; 185 192 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 187 198 streamFormat.mBitsPerChannel = four_bytes_per_float * eight_bits_per_byte; 188 199 err = AudioUnitSetProperty (toneUnit, -
iOS/Orbit/Orbit/controllers/TutorialViewController.m
rde10cbc r9b2949b 18 18 [NSURLRequest requestWithURL: 19 19 [NSURL fileURLWithPath: 20 [[NSBundle mainBundle] pathForResource:@" index" ofType:@"html"]]]];20 [[NSBundle mainBundle] pathForResource:@"frame" ofType:@"html"]]]]; 21 21 [super viewDidLoad]; 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.