33 #ifndef _NSOUND_BUFFER_WINDOW_SEARCH_H_
34 #define _NSOUND_BUFFER_WINDOW_SEARCH_H_
const Buffer * target_buffer_
Buffer getNextWindow()
Searches the target Buffer for a zero crossing at or after the window_size position.
BufferWindowSearch & operator=(const BufferWindowSearch &rhs)
BufferWindowSearch(const Buffer &buffer, uint32 window_size=2048)
A Buffer for storing audio samples.
Searches the target Buffer for zero crossings at or after the window_size position.
uint32 getSamplesLeft() const
Returns how many samples are left in the target Buffer.
void reset()
Resets the search.
void setBuffer(const Buffer &buffer)
Search a different Buffer.