Skip to content

Commit

Permalink
v0.8.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffAlyanak committed Jun 6, 2019
2 parents 3808c2d + 1e82a4a commit 334056c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pcm2pwm 0.8 - a utility for 1-bit audio weirdos // code by: [email protected]
=========================================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pcm2pwm 0.8.1 - a utility for 1-bit audio weirdos // code by: [email protected]
=========================================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

pcm2pwm is a simply utility for converting 8-bit PCM wave audio into a delta PWM byte stream.
It's output is intended for use with any 1-bit audio devices which require a simple playback
Expand Down Expand Up @@ -75,7 +75,8 @@ Pretty simple, eh!
Version History
----------------

0.2 - Basic functionality
0.5 - Added the ability to set high and low crossover values.
0.7 - pcm2pwm now checks the input file's header to ensure compatibility.
0.8 - Added the -h option for outputting in a Houston Tracker 2 format.
0.2 - Basic functionality
0.5 - Added the ability to set high and low crossover values.
0.7 - pcm2pwm now checks the input file's header to ensure compatibility.
0.8 - Added the -h option for outputting in a Houston Tracker 2 format.
0.8.1 - Added the -h option for outputting in a Houston Tracker 2 format.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pcm2pwm 0.8 - a utility for 1-bit audio weirdos // code by: [email protected]
# pcm2pwm 0.8.1 - a utility for 1-bit audio weirdos // code by: [email protected]
pcm2pwm is a simply utility for converting 8-bit PCM wave audio into a delta PWM byte stream.
It's output is intended for use with any 1-bit audio devices which require a simple playback
routine and/or relatively high degree of compression.
Expand Down Expand Up @@ -68,7 +68,8 @@ Pretty simple, eh!

### Version History

* 0.2 - Basic functionality
* 0.5 - Added the ability to set high and low crossover values.
* 0.7 - pcm2pwm now checks the input file's header to ensure compatibility.
* 0.8 - Added the -h option for outputting in a Houston Tracker 2 format.
* 0.2 - Basic functionality
* 0.5 - Added the ability to set high and low crossover values.
* 0.7 - pcm2pwm now checks the input file's header to ensure compatibility.
* 0.8 - Added the -h option for outputting in a Houston Tracker 2 format.
* 0.8.1 - Bugfix affecting the conversion process. Should produce better output than before.
2 changes: 1 addition & 1 deletion convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int convert (FILE *fp, int length, int highValue, int lowValue, int format)
if (c >= highValue || c <= lowValue) // High state defaults to any sample above 252. Low state is any sample below 3.
{
if (flipState == 1 && c <= lowValue) flipState = 2;
if (flipState == 2 && c >= lowValue) flipState = 1;
if (flipState == 2 && c >= highValue) flipState = 1;

if (flipState != oldState) // This is a zero cross-over, write out the time since last crossover (count) and reset it.
{
Expand Down

0 comments on commit 334056c

Please sign in to comment.