![]() |
hamigaki::audio::amplifier —
クラステンプレートamplifier
はSourceを受け取り、その各要素を定数倍したSourceを形成する。
template<typename Source> class amplifier { public: // types typedef typename boost::iostreams::char_type_of<Source>::type char_type; typedef implementation defined category; // construct/copy/destruct amplifier(const Source&, float); // Boost.Iostreams implementation std::streamsize read(CharT*, std::streamsize); void close(); std::streamsize optimal_buffer_size() const; }; // creation template<typename Source> amplifier<Source> amplify(const Source&, float);
製作著作 © 2006 Takeshi Mouri |