Skip to content

Commit

Permalink
Merge pull request #177 from syedhali/opengl_plot_rewrite
Browse files Browse the repository at this point in the history
Rewrote EZAudioPlotGL and removed EZAudioPlotGLKViewController
  • Loading branch information
syedhali committed Jul 2, 2015
2 parents 996744f + e771fe2 commit d65c918
Show file tree
Hide file tree
Showing 36 changed files with 736 additions and 1,520 deletions.
1 change: 0 additions & 1 deletion EZAudio/EZAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#import "EZPlot.h"
#import "EZAudioPlot.h"
#import "EZAudioPlotGL.h"
#import "EZAudioPlotGLKViewController.h"

//------------------------------------------------------------------------------

Expand Down
11 changes: 4 additions & 7 deletions EZAudio/EZAudioPlot.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
// THE SOFTWARE.

#import <QuartzCore/QuartzCore.h>
#import "TargetConditionals.h"
#import "EZAudioUtilities.h"
#import "EZPlot.h"

@class EZAudio;
Expand Down Expand Up @@ -115,16 +113,16 @@ FOUNDATION_EXPORT UInt32 const EZAudioPlotDefaultMaxHistoryBufferLength;
///-----------------------------------------------------------

/**
The length of the rolling history display. Can grow or shrink the display up to the maximum size specified by the kEZAudioPlotMaxHistoryBufferLength macro. Will return the actual set value, which will be either the given value if smaller than the kEZAudioPlotMaxHistoryBufferLength or kEZAudioPlotMaxHistoryBufferLength if a larger value is attempted to be set.
Sets the length of the rolling history buffer (i.e. the number of points in the rolling plot's buffer). Can grow or shrink the display up to the maximum size specified by the `maximumRollingHistoryLength` method. Will return the actual set value, which will be either the given value if smaller than the `maximumRollingHistoryLength` or `maximumRollingHistoryLength` if a larger value is attempted to be set.
@param historyLength The new length of the rolling history buffer.
@return The new value equal to the historyLength or the kEZAudioPlotMaxHistoryBufferLength.
@return The new value equal to the historyLength or the `maximumRollingHistoryLength`.
*/
-(int)setRollingHistoryLength:(int)historyLength;

//------------------------------------------------------------------------------

/**
Provides the length of the rolling history buffer
Provides the length of the rolling history buffer (i.e. the number of points in the rolling plot's buffer).
* @return An int representing the length of the rolling history buffer
*/
-(int)rollingHistoryLength;
Expand Down Expand Up @@ -187,8 +185,7 @@ FOUNDATION_EXPORT UInt32 const EZAudioPlotDefaultMaxHistoryBufferLength;
@param data A float array of the sample data. Subclasses should copy this data to a separate array to avoid threading issues.
@param length The length of the float array as an int.
*/
-(void)setSampleData:(float *)data
length:(int)length;
-(void)setSampleData:(float *)data length:(int)length;

//------------------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions EZAudio/EZAudioPlot.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@

@interface EZAudioPlot () <EZAudioDisplayLinkDelegate>
@property (nonatomic, strong) EZAudioDisplayLink *displayLink;
@property (nonatomic, assign) EZPlotHistoryInfo *historyInfo;
@property (nonatomic, assign) CGPoint *points;
@property (nonatomic, assign) UInt32 pointCount;
@property (nonatomic, assign) EZPlotHistoryInfo *historyInfo;
@property (nonatomic, assign) CGPoint *points;
@property (nonatomic, assign) UInt32 pointCount;
@end

//------------------------------------------------------------------------------
Expand Down
200 changes: 119 additions & 81 deletions EZAudio/EZAudioPlotGL.h

Large diffs are not rendered by default.

Loading

0 comments on commit d65c918

Please sign in to comment.