<commit_before>/** @file
 *
 * @ingroup dspSpatLib
 *
 * @brief Host a SpatLib object
 *
 * @details
 *
 * @authors <NAME>, <NAME>, <NAME>
 *
 * @copyright Copyright © 2011 by <NAME>, <NAME>, and <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */


#ifndef __TT_SPAT_H__
#define __TT_SPAT_H__

#include "TTDSP.h"

/** Generalized SpatLib rendering unit wrapper.
 */
class TTSpat : TTAudioObjectBase {
	TTCLASS_SETUP(TTSpat)

protected:

	TTAudioObjectBasePtr	mSpatFunctionObject;
	TTSymbol			mSpatFunction;	
	TTchannelCount		mSourceCount;			///< The number of sources
	TTChannelCount		mSinkCount;				///< The number of destinations
		
	/**	Set what spatialisation function to use.
	 @param aSpatFunction			The SpatLib renderer to use.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSpatFunction(const TTValue& aSpatFunction);
	
	
	/**	Set the number of sources.
	 @param mode					The number of sources to spatialise.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSourceCount(const TTValue& aSource);
	
	
	/**	Set number of destinations
	 @param mode					The number of destinations that sound will be rendered to.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSinkCount(const TTValue& aSink);
		
	
	
	TTErr getSourcePosition(const TTValue& anIndex, TTValue& returnedPosition);
	TTErr setSourcePosition(const TTValue& aPosition, TTValue& unused);
	TTErr getSinkPosition(const TTValue& anIndex, TTValue& returnedPosition);
	TTErr setSinkPosition(const TTValue& aPosition, TTValue& unused);

<commit_msg>Fixing typo in previous commit regarding SpatLib<commit_after>/** @file
 *
 * @ingroup dspSpatLib
 *
 * @brief Host a SpatLib object
 *
 * @details
 *
 * @authors <NAME>, <NAME>, <NAME>
 *
 * @copyright Copyright © 2011 by <NAME>, <NAME>, and <NAME> @n
 * This code is licensed under the terms of the "New BSD License" @n
 * http://creativecommons.org/licenses/BSD/
 */


#ifndef __TT_SPAT_H__
#define __TT_SPAT_H__

#include "TTDSP.h"

/** Generalized SpatLib rendering unit wrapper.
 */
class TTSpat : TTAudioObjectBase {
	TTCLASS_SETUP(TTSpat)

protected:

	TTAudioObjectBasePtr	mSpatFunctionObject;
	TTSymbol			mSpatFunction;	
	TTChannelCount		mSourceCount;			///< The number of sources
	TTChannelCount		mSinkCount;				///< The number of destinations
		
	/**	Set what spatialisation function to use.
	 @param aSpatFunction			The SpatLib renderer to use.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSpatFunction(const TTValue& aSpatFunction);
	
	
	/**	Set the number of sources.
	 @param mode					The number of sources to spatialise.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSourceCount(const TTValue& aSource);
	
	
	/**	Set number of destinations
	 @param mode					The number of destinations that sound will be rendered to.
	 @return						#TTErr error code if the method fails to execute, else #kTTErrNone.
	 */
	TTErr setSinkCount(const TTValue& aSink);
		
	
	
	TTErr getSourcePosition(const TTValue& anIndex, TTValue& returnedPosition);
	TTErr setSourcePosition(const TTValue& aPosition, TTValue& unused);
	TTErr getSinkPosition(const TTValue& anIndex, TTValue& returnedPosition);
	TTErr setSinkPosition(const TTValue& aPosition, TTValue& unused);


{'fraction_non_alphanumeric': 0.08979124964255075, 'fraction_numerical': 0.002287675150128682, 'mean_word_length': 3.9758179231863444, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5754423', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1111, 'n_words': 374}