Skip to content

Commit

Permalink
making changes in TTSampleMatrix that correspond to commit 358a5e1
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolek committed Jul 9, 2013
1 parent 358a5e1 commit 64a7e0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions DSP/library/includes/TTSampleMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,15 @@ class TTDSP_EXPORT TTSampleMatrix : public TTMatrix {
TTErr fill(const TTValue& value, TTValue& unusedOutput);

/** Load sample values from a soundfile into the TTSampleMatrix. This method is dependant on the SoundfileLib extension which handles operations on sound files using third-party libraries.
@param[in] filePath
@param[in] startAtIndex is set to a default
@param[in] input Multi-item TTValue used to set the copy parameters:
-# TTSymbol containing the filepath
-# (optional) channel to copy from source, default is 0
-# (optional) frame to start copy from source, default is 0
-# (optional) frame to stop copy from source, default is last
@param[out] unusedOutput not used
@return TTErr kTTErrNone load was successful. kTTErrInvalidFilepath if the filepath was invalid. kTTErrInvalidValue if the pointer to TTSampleMatrix was invalid.
*/
TTErr load(const TTValue& filePath, TTRowID startAtIndex = 0);
TTErr load(const TTValueRef input, TTValueRef unusedOutput);

/** Normalize the contents of a buffer.
If no arg is passed, then the buffer is normalized to 1.0.
Expand Down
2 changes: 1 addition & 1 deletion DSP/library/source/TTSampleMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ TTErr TTSampleMatrix::fill(const TTValue& value, TTValue& unusedOutput)
return kTTErrNone;
}

TTErr load(const TTValue& filePath, TTRowID startAtIndex = 0)
TTErr TTSampleMatrix::load(const TTValueRef input, TTValueRef unusedOutput)
{
/* * *
Beware this method is still in progress
Expand Down

0 comments on commit 64a7e0c

Please sign in to comment.