Skip to main content

A Python implementation of a PCM ring buffer

Project description

pypcmringbuffer

概要

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

インストールの方法

pip install pypcmringbuffer

使い方

リングキュークラス

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypcmringbuffer-0.0.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypcmringbuffer-0.0.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pypcmringbuffer-0.0.4.tar.gz.

File metadata

  • Download URL: pypcmringbuffer-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for pypcmringbuffer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d869f3d117c0e52c8bf6038894ed4870a4ef71d1be309ebfd10bfcc1c4aea8db
MD5 3139aeda584804e939f191c4bf1f5ef4
BLAKE2b-256 8b7a44614b674871eda19525669a3931a3c75cbb78a7dd4c448db130ded0e1cb

See more details on using hashes here.

File details

Details for the file pypcmringbuffer-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pypcmringbuffer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00477a6f953f5566f21a0f3eee65108be7ba76f16b03feb110ae7c33413dcf2d
MD5 8bf34f404b25a9a64c6d15e50316135d
BLAKE2b-256 2284b5dd13a3db5f06ca4166e1990e545f43a20eaa4c5f577f80be0540b0e527

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page