Metadata-Version: 2.4
Name: pypcmringbuffer
Version: 0.0.3
Summary: A Python implementation of a PCM ring buffer
Author-email: lotcarnage <lotcarnage@gmail.com>
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy >=1.20
Project-URL: Repository, https://github.com/lotcarnage/pypcmringbuffer

# pypcmringbuffer

## 概要

python用PCMリングバッファモジュールです。

## インストールの方法

```sh
pip install pypcmringbuffer
```

## 使い方

### リングキュークラス

```python
from pypcmringbuffer import PyPcmRingQueue

# 最大10要素をキューイングできるキューインスタンスを作成
queue = PyPcmRingQueue(10)
queue.enqueue([0,1,2,3])
print(len(queue)) # 4
pcm = queue.dequeue(3)
print(pcm) # [0, 1, 2]
print(len(queue)) # 1
```

