hamigaki.png (2451 bytes)

前のページ 上に戻る ホーム 次のページ

Class sine_wave_source

hamigaki::audio::sine_wave_source —

正弦波を生成するSourceモデル

Synopsis

class sine_wave_source {
public:
  // types
  typedef char                   char_type;
  typedef implementation defined category; 

  // construct/copy/destruct
  sine_wave_source(unsigned, unsigned, double, double = 0.5);

  // Boost.Iostreams implementation
  std::streamsize read(char*, std::streamsize);

  // queries
  std::size_t block_size() const;
};

Description

sine_wave_source construct/copy/destruct

  1. sine_wave_source(unsigned rate, unsigned bits, double freq, double amp = 0.5);

    Effects: サンプリング周波数=rate、量子化ビット数=bits、正弦波の周波数=freq、振幅=ampで初期化する。

sine_wave_source Boost.Iostreams implementation

  1. std::streamsize read(char* s, std::streamsize n);

sine_wave_source queries

  1. std::size_t block_size() const;

    sine_wave_sourceから読み出し操作の最小単位

    Returns: サンプルサイズ。16ビットの場合、2。

製作著作 © 2006 Takeshi Mouri

前のページ 上に戻る ホーム 次のページ