Skip to content

Commit

Permalink
Merge pull request #23 from coryalder/master
Browse files Browse the repository at this point in the history
Changed property definition to 'copy', removed explicit setter methods for inputBlock and outputBlock
  • Loading branch information
Nick D authored and Nick D committed May 21, 2013
2 parents 2d93d41 + 54df952 commit 9f21e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Novocaine/Novocaine.h
Expand Up @@ -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;
Expand Down
17 changes: 0 additions & 17 deletions Novocaine/Novocaine.m
Expand Up @@ -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


Expand Down

0 comments on commit 9f21e3c

Please sign in to comment.