nr_free_pages 54851
nr_alloc_batch 2309
nr_inactive_anon 181805
nr_active_anon 144368
nr_inactive_file 138152
nr_active_file 163215
nr_unevictable 0
nr_mlock 0
nr_anon_pages 213806
nr_mapped 28630
nr_file_pages 339474
nr_dirty 44
nr_writeback 0
nr_slab_reclaimable 108496
nr_slab_unreclaimable 46133
nr_page_table_pages 19761
nr_kernel_stack 7371
nr_unstable 0
nr_bounce 0
nr_vmscan_write 10724
nr_vmscan_immediate_reclaim 204
nr_writeback_temp 0
nr_isolated_anon 0
nr_isolated_file 0
nr_shmem 37572
nr_dirtied 746029
nr_written 724512
numa_hit 190518986
numa_miss 0
numa_foreign 0
numa_interleave 13305
numa_local 190518986
numa_other 0
workingset_refault 1523199
workingset_activate 712902
workingset_nodereclaim 0
nr_anon_transparent_hugepages 145
nr_free_cma 0
     eˆÊÖƒl;Õ¾Ó ·    e:mod:`wave` --- Read and write WAV files
========================================

.. module:: wave
   :synopsis: Provide an interface to the WAV sound format.
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
.. Documentations stolen from comments in file.

**Source code:** :source:`Lib/wave.py`

--------------

The :mod:`wave` module provides a convenient interface to the WAV sound format.
It does not support compression/decompression, but it does support mono/stereo.

The :mod:`wave` module defines the following function and exception:


.. function:: open(file[, mode])

   If *file* is a string, open the file by that name, otherwise treat it as a
   seekable file-like object.  *mode* can be any of

   ``'r'``, ``'rb'``
      Read only mode.

   ``'w'``, ``'wb'``
      Write only mode.

   Note that it does not allow read/write WAV files.

   A *mode* of ``'r'`` or ``'rb'`` returns a :class:`Wave_read` object, while a
   *mode* of ``'w'`` or ``'wb'`` returns a :class:`Wave_write` object.  If
   *mode* is omitted and a file-like object is passed as *file*, ``file.mode``
   is used as the default value for *mode* (the ``'b'`` flag is still added if
   necessary).

   If you pass in a file-like object, the wave object will not close it when its
   :meth:`close` method is called; it is the caller's responsibility to close
   the file object.


.. function:: openfp(file, mode)

   A synonym for :func:`.open`, maintained for backwards compatibility.


.. exception:: Error

   An error raised when something is impossible because it violates the WAV
   specification or hits an implementation deficiency.


.. _wave-read-objects:

Wave_read Objects
-----------------

Wave_read objects, as returned by :func:`.open`, have the following methods:


.. method:: Wave_read.close()

   Close the stream if it was opened by :mod:`wave`, and make the instance
   unusable.  This is called automatically on object collection.


.. method:: Wave_read.getnchannels()

   Returns number of audio channels (``1`` for mono, ``2`` for stereo).


.. method:: Wave_read.getsampwidth()

   Returns sample width in bytes.


.. method:: Wave_read.getframerate()

   Returns sampling frequency.


.. method:: Wave_read.getnframes()

   Returns number of audio frames.


.. method:: Wave_read.getcomptype()

   Returns compression type (``'NONE'`` is the only supported type).


.. method:: Wave_read.getcompname()

   Human-readable version of :meth:`getcomptype`. Usually ``'not compressed'``
   parallels ``'NONE'``.


.. method:: Wave_read.getparams()

   Returns a tuple ``(nchannels, sampwidth, framerate, nframes, comptype,
   compname)``, equivalent to output of the :meth:`get\*` methods.


.. method:: Wave_read.readframes(n)

   Reads and returns at most *n* frames of audio, as a string of bytes.


.. method:: Wave_read.rewind()

   Rewind the file pointer to the beginning of the audio stream.

The following two methods are defined for compatibility with the :mod:`aifc`
module, and don't do anything interesting.


.. method:: Wave_read.getmarkers()

   Returns ``None``.


.. method:: Wave_read.getmark(id)

   Raise an error.

The following two methods define a term "position" which is compatible between
them, and is otherwise implementation dependent.


.. method:: Wave_re