libpsynth 0.2.1
Public Member Functions
psynth::sound::sample_multiplier< SampleValue > Struct Template Reference

A function object to multiply two samples. More...

#include <sample_algorithm.hpp>

List of all members.

Public Member Functions

SampleValue operator() (SampleValue a, SampleValue b) const

Detailed Description

template<typename SampleValue>
struct psynth::sound::sample_multiplier< SampleValue >

A function object to multiply two samples.

result = a * b / max_value


Member Function Documentation

template<typename SampleValue >
SampleValue psynth::sound::sample_multiplier< SampleValue >::operator() ( SampleValue  a,
SampleValue  b 
) const [inline]

The documentation for this struct was generated from the following file: