hamigaki.png

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

Class direct_sound_device

hamigaki::audio::direct_sound_device —

Synopsis

class direct_sound_device {
public:
  // construct/copy/destruct
  direct_sound_device();
  explicit direct_sound_device(const uuid&);

  // modifier
  void set_cooperative_level(void*, unsigned long);
  void format(const pcm_format&);
  direct_sound_sink create_buffer(const pcm_format&);
  direct_sound_sink create_buffer(const pcm_format&, std::size_t);
};

Description

direct_sound_device construct/copy/destruct

  1. direct_sound_device();
    Effects: 規定のDirectSoundデバイスをオープンする。
  2. explicit direct_sound_device(const uuid& driver_guid);
    Effects: driver_guidで識別されるDirectSoundデバイスをオープンする。

direct_sound_device modifier

  1. void set_cooperative_level(void* hwnd, unsigned long level);
    Effects: 協調レベルを設定する。
  2. void format(const pcm_format& f);
    Effects: プライマリバッファのフォーマットを設定する。
  3. direct_sound_sink create_buffer(const pcm_format& f);
    Effects: 規定のバッファサイズでDirectSoundバッファを作成する。
  4. direct_sound_sink create_buffer(const pcm_format& f, std::size_t buffer_size);
    Effects: バッファサイズ=buffer_sizeでDirectSoundバッファを作成する。
製作著作 © 2006-2008 Takeshi Mouri

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