hamigaki.png (2451 bytes)

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

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 std::string&);

  // modifier
  void set_cooperative_level(void*, unsigned long);
  void format(const pcm_format&);
  direct_sound_buffer create_buffer(const pcm_format&);
  direct_sound_buffer 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 std::string& guid_str);

    Effects: guid_strで識別される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_buffer create_buffer(const pcm_format& f);

    Effects: 規定のバッファサイズでDirectSoundバッファを作成する。

  4. direct_sound_buffer 
    create_buffer(const pcm_format& f, std::size_t buffer_size);

    Effects: バッファサイズ=buffer_sizeでDirectSoundバッファを作成する。

製作著作 © 2006 Takeshi Mouri

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