Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #23 from coryalder/master

Changed property definition to 'copy', removed explicit setter methods for inputBlock and outputBlock
  • Loading branch information...
commit 9f21e3c981b902f85f67de784b4c8019b02b173d 2 parents 2d93d41 + 54df952
Nick Donaldson ndonald2 authored
Showing with 2 additions and 19 deletions.
  1. +2 −2 Novocaine/Novocaine.h
  2. +0 −17 Novocaine/Novocaine.m
4 Novocaine/Novocaine.h
View
@@ -137,8 +137,8 @@ typedef void (^InputBlock)(float *data, UInt32 numFrames, UInt32 numChannels);
@property AudioUnit inputUnit;
@property AudioUnit outputUnit;
@property AudioBufferList *inputBuffer;
-@property (nonatomic, retain) OutputBlock outputBlock;
-@property (nonatomic, retain) InputBlock inputBlock;
+@property (nonatomic, copy) OutputBlock outputBlock;
+@property (nonatomic, copy) InputBlock inputBlock;
@property BOOL inputAvailable;
@property (nonatomic, retain) NSString *inputRoute;
@property UInt32 numInputChannels;
17 Novocaine/Novocaine.m
View
@@ -151,23 +151,6 @@ - (id)init
}
-#pragma mark - Block Handling
-- (void)setInputBlock:(InputBlock)newInputBlock
-{
- InputBlock tmpBlock = inputBlock;
- inputBlock = Block_copy(newInputBlock);
- Block_release(tmpBlock);
-}
-
-- (void)setOutputBlock:(OutputBlock)newOutputBlock
-{
- OutputBlock tmpBlock = outputBlock;
- outputBlock = Block_copy(newOutputBlock);
- Block_release(tmpBlock);
-}
-
-
-
#pragma mark - Audio Methods
Please sign in to comment.
Something went wrong with that request. Please try again.