Commits

Show all
Author Commit Message Labels Comments Date
anatoly techtonik
Remove 100% CPU usage by sleeping during buffer playback time.
Tags
0.5-no-cpu-load
anatoly techtonik
100% CPU: This commit adds a counter that show how many checks for the end of buffer playback is made every time a new block is scheduled. On my machine (Ubuntu+Wine) 5 blocks result in about 150000 checks each with total ~750000 check for a 3 seconds long sample, which is ~250000 checks per second. There should be only one.
anatoly techtonik
Fix formula to calculate AvgBytesPerSec: 44100 * 16 bitPerSample is wrong, because: - 16 is bits per second, so should be divided by 8 - 44100 is for each channel separately, so should be multiplied by 2
anatoly techtonik
Allow to be imported and used as a library.
anatoly techtonik
Added tag 0.4-no-lags-double-buffering for changeset b7fc166383f6
anatoly techtonik
history entry for upcoming tag 0.4
Tags
0.4-no-lags-double-buffering
anatoly techtonik
add debug() helper and global DEBUG flag to control debug output
anatoly techtonik
remove waveOutProc callback function - it doesn't work anyway, but complicates code a lot. it is also isn't clear if all these cross-thread issues are actual for python code that is place inside callback it may be brought back in future versions as a workaround against 100% CPU usage
anatoly techtonik
eliminate lag by using double buffering scheme and internal Windows playback queue
anatoly techtonik
move read operations inside AudioWriter, because it needs to pull the data when its buffers are ready
anatoly techtonik
add headers for double buffer and support for choosing which buffer to schedule
anatoly techtonik
Added tag 0.3-audiowriter for changeset 0e2b4526907e
anatoly techtonik
add history entry for 0.3
Tags
0.3-audiowriter
anatoly techtonik
move waveOutProc callback into AudioWriter method
anatoly techtonik
open output device in AudioWriter explicitly, because it is explicitly closed
anatoly techtonik
bugfix: add AudioWriter.close() method for closing output device
anatoly techtonik
move waveOutProc reference to AudioWriter method
anatoly techtonik
move code to open sound device into AudioWriter method
anatoly techtonik
add callback function that is called every time a data block is finished
anatoly techtonik
Added tag 0.2-chunked-read-and-play for changeset 309c55754e27
anatoly techtonik
add history and place code into public domain
Tags
0.2-chunked-read-and-play
anatoly techtonik
rename AudioWriter.write() -> play()
anatoly techtonik
read and play file data piece by piece, note the lag between pieces that occurs due to the absence of buffering
anatoly techtonik
code cleanup: shorten winmm calls
anatoly techtonik
Added tag 0.1-playback-works for changeset 6dcb353238e3
anatoly techtonik
Yay! Playback works!
Tags
0.1-playback-works
anatoly techtonik
define WAVEHDR structure for writing data to audio device
anatoly techtonik
comments
anatoly techtonik
close handle on exit
anatoly techtonik
add success/failure reporting
  1. Prev
  2. Next