This class changes the channel of segments in the buffer. More...
#include <llioutil.h>
Public Member Functions | |
| LLChangeChannel (S32 is, S32 becomes) | |
| Constructor for iterating over a segment range to change channel. | |
| void | operator() (LLSegment &segment) |
| Do the work of changing the channel. | |
This class changes the channel of segments in the buffer.
This class is useful for iterating over the segments in a buffer array and changing each channel that matches to a different channel. Example: set_in_to_out(LLChannelDescriptors channels, LLBufferArray* buf) { std::for_each( buf->beginSegment(), buf->endSegment(), LLChangeChannel(channels.in(), channels.out())); }
| LLChangeChannel::LLChangeChannel | ( | S32 | is, | |
| S32 | becomes | |||
| ) |
Constructor for iterating over a segment range to change channel.
| is | The channel to match when looking at a segment. | |
| becomes | The channel to set the segment when a match is found. |
1.6.3