cheofusi / just_playback

A small library for playing audio files in python, with essential playback functionality.
MIT License
70 stars 7 forks source link

Streaming audio from disk #1

Closed MCHSL closed 3 years ago

MCHSL commented 3 years ago

Would be nice to be able to play long audio files without using up a lot of memory. Cool little library btw.

cheofusi commented 3 years ago

The high memory usage usually happens when the volume is changed too often. I'll improve upon it soon.

cheofusi commented 3 years ago

Loading audio data into python objects before forwarding these to a playback device isn't the right thing to do. So I've ditched audioread and pyaudio for miniaudio. How's the memory usage now for large files ??

MCHSL commented 3 years ago

sorry im getting fatal error C1083: Cannot open include file: 'io.h': No such file or directory and I'm not ain a state to debug anyitn

cheofusi commented 3 years ago

Are you on Windows ??

MCHSL commented 3 years ago

yeah, followed the stuff in https://stackoverflow.com/questions/40018405/cannot-open-include-file-io-h-no-such-file-or-directory and no luck unfortuanely

cheofusi commented 3 years ago

What I uploaded to pypi is a source distribution so you'll need to get your C/C++ compiler toolchain right.

MCHSL commented 3 years ago

I'll get back if I manage to fix it