## Class pcm_source

hamigaki::audio::pcm_source —

## Synopsis

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

      // construct/copy/destruct
      pcm_source(const pcm_format&);
      pcm_source(const pcm_format&, std::size_t);

      // Boost.Iostreams implementation
      std::streamsize optimal_buffer_size() const;
      std::streamsize read(char*, std::streamsize);
      bool flush();
      void close();

      // queries
      pcm_format format() const;
    };

## Description

モデルとなるコンセプト:Source, FlushableDevice, ClosableDevice, OptimallyBuffered, PcmFormatRetrievable

### `pcm_source` construct/copy/destruct

1.     pcm_source(const pcm_format& f);

2.     pcm_source(const pcm_format& f, std::size_t buffer_size);

### `pcm_source` Boost.Iostreams implementation

1.     std::streamsize optimal_buffer_size() const;

   Returns: | 200ミリ秒分のバッファサイズ

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

3.     bool flush();

4.     void close();

### `pcm_source` queries

1.     pcm_format format() const;

   Returns: | フォーマット情報

| 製作著作 © 2006-2008 Takeshi Mouri