Jamoma API  0.6.0.a19
j.soundfile.recorder.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup implementationMaxExternalsAudioGraph
4  *
5  * @brief j.soundfile.recorder= : wraps the #TTSoundfileRecorder class as generator for AudioGraph
6  *
7  * @details
8  *
9  * @authors Timothy Place, Trond Lossius
10  *
11  * @copyright © 2008 by Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #include "maxAudioGraph.h"
18 
19 int C74_EXPORT main(void)
20 {
22  TTValue value(0);
24 
25  TTAudioGraphInit();
26 
27  wrapAsMaxAudioGraph(TT("soundfile.recorder"), "j.soundfile.recorder=", &c, options);
28  CLASS_ATTR_ENUM(c->maxClass, "format", 0, "AIFF AIFF-16bit AIFF-24bit AIFF-32bit CAF CAF-16bit CAF-24bit CAF-32bit FLAC FLAC-16bit FLAC-24bit FLAC-32bit Matlab-16bit Matlab-32bit Matlab-64bit WAV WAV-16bit WAV-24bit WAV-32bit");
29 
30  wrapAsMaxAudioGraph(TT("soundfile.recorder"), "soundfile.recorder=", &c, options);
31  CLASS_ATTR_ENUM(c->maxClass, "format", 0, "AIFF AIFF-16bit AIFF-24bit AIFF-32bit CAF CAF-16bit CAF-24bit CAF-32bit FLAC FLAC-16bit FLAC-24bit FLAC-32bit Matlab-16bit Matlab-32bit Matlab-64bit WAV WAV-16bit WAV-24bit WAV-32bit");
32 
33  return 0;
34 }
35 
int C74_EXPORT main(void)
Set up this class as a Max external the first time an object of this kind is instantiated.
TTErr wrapAsMaxAudioGraph(TTSymbol ttClassName, char *maxClassName, MaxAudioGraphWrappedClassPtr *c)
Wrap an AudioGraph class as a Max class.
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
Definition: TTSymbol.h:155
A class representing the options of a MaxAudioGraphWrappedClass.
Definition: MaxAudioGraph.h:56
t_class * maxClass
The Max class pointer.
Definition: MaxAudioGraph.h:45
Type definition for an AudioGraph class wrapped as a Max external.
Definition: MaxAudioGraph.h:44
A thin wrapper of Jamoma AudioGraph for use in the Cycling '74 Max/MSP environment.
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34