Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

sample.h

Go to the documentation of this file.
00001 
00002 
00003 //
00004 //      SAMPLE.H                                        (c)     YoY'00                                          WEB: www.aestesis.org
00005 //
00008 #ifndef                                                 _SAMPLE_H_
00009 #define                                                 _SAMPLE_H_
00012 #include                                                "elektrodef.h"
00013 #include                                                "pin.h"
00016 
00017 //      If you use directly the variables in the class API, it's at your own risks. Prefer the methods...   
00018 
00021 
00022 #define                                                 guidSAMPLE                                              (Asample::CI.guid)
00023 
00026 
00027 class Asample : public Apin
00028 {
00029 public:
00030         ELIBOBJ
00031 
00032         EDLL                                            Asample                                                 (char *name, class AeffectBack *eb, int type, int x, int y);
00033         EDLL virtual                            ~Asample                                                ();
00034 
00035         EDLL virtual bool                       connected                                               (class Aconnect *connect);
00036 
00037         EDLL void                                       addBuffer                                               (sword *buffer, int size);
00038 
00039         EDLL int                                        skip                                                    (int relative);
00040         EDLL int                                        avaible                                                 ();
00041         EDLL int                                        getBuffer                                               (sword *buffer, int bufferSize, int dtime=-1);
00042         EDLL int                                        getBuffer                                               (sword *sample, sword *bass, sword *medium, sword *treeble, int bufferSize, int dtime=-1);
00043 
00044         float                                           vmaster;
00045         float                                           vbass;
00046         float                                           vmedium;
00047         float                                           vtreeble;
00048 
00049         // private
00050 
00051         sword                                           *sample;
00052         sword                                           *bass;
00053         sword                                           *medium;
00054         sword                                           *treeble;
00055         //sword                                         *spectre;
00056         int                                                     size;
00057         int                                                     offset;
00058         int                                                     time;
00059 
00060         int                                                     interleaveSize;
00061         //word                                          spectre[44100*2];
00062 
00063         void                                            calcFrequency                                   (int offdep, int offend);
00064 };
00065 
00068 /*
00069 class AbufSample
00070 {
00071         void                                            *data;
00072         int                                                     ofStart;
00073         int                                                     ofLast;
00074         int                                                     time;
00075 };
00076 */
00079 
00082 #endif                                                  //_SAMPLE_H_

Generated on Tue Nov 20 10:21:25 2001 for elektronika plugz SDK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001