#include <Window.h>
Inheritance diagram for csl::Window:

Public Member Functions | |
| Window () | |
| Window (unsigned windowSize, float gain=1) | |
| ~Window () | |
| clean-up . . . free the allocated buffer that held the window data. | |
| void | setSize (unsigned windowSize) |
| Set the number of samples the window spans. | |
| void | setGain (float gain) |
| Set the gain to which the window should be normalized. | |
| sample * | window () |
| void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
| Returns a pointer to the window data. | |
| void | dump () |
| Print some info about the window. | |
Protected Member Functions | |
| virtual void | fillWindow () |
| subclasses override this to fill the buffer with corresponding function. | |
Protected Attributes | |
| Buffer | mWindowBuffer |
| used to store the window | |
| unsigned | mWindowBufferPos |
| where am I in the window buffer | |
| unsigned | mWindowSize |
| length in samples of the window | |
| float | mGain |
| gain for the window | |
|
|
Creates a window using the default Gestalt size and a gain of 1; Creates a window (hann) with the specified size and gain (gain is optional). |
|
||||||||||||
|
|
|
|
clean-up . . . free the allocated buffer that held the window data.
|
|
|
Set the number of samples the window spans.
|
|
|
Set the gain to which the window should be normalized.
|
|
|
|
|
||||||||||||
|
Returns a pointer to the window data. get everything into registers |
|
|
Print some info about the window.
|
|
|
subclasses override this to fill the buffer with corresponding function.
Reimplemented in csl::RectangularWindow, csl::HammingWindow, csl::HannWindow, csl::BlackmanWindow, csl::BlackmanHarrisWindow, and csl::WelchWindow. |
|
|
used to store the window
|
|
|
where am I in the window buffer
|
|
|
length in samples of the window
|
|
|
gain for the window
|
1.4.5-20051010