/libpxtone

Library made from PXTONE, based on the version 220910a

Primary LanguageC++OtherNOASSERTION

PXTONE

The library to play and/or edit music in PTTUNE and PTCOP file formats.

Library developed by Pixel: https://pxtone.org/developer/

What is this?

This library is a modified version 220910a to add some new features and provide the Big-Endian processors support (for example, PowerPC and MIPS).

What changes being made?

Bug fixes

Polishing

  • Removed all trailing whitespaces
    • There are spaces at end of lines: basically a useless ballast that confuses the difference and taking the file size. A lot of IDEs and text editors do have the feature of trailing spaces removal, etc.
  • Fixed warnings

Hardware support

  • Replaced plain "int" with "int32_t"
    • On some toolchains, the int32_t in fact is the "long int" which leads to complie errors.
  • Added support for Big Endian processors
    • Allows the library to work on processors that has the Big Endian byte order, for example, on old Macs that has PowerPC processor. You will need to specify the -Dpx_BIG_ENDIAN macro when compile project on the Big Endian hardware to make library work correctly.

Features

OGG Vorbis support changes

Among with the -DpxINCLUDE_OGGVORBIS, you also can specify the -DpxINCLUDE_OGGVORBIS_TREMOR to use the Tremor (integer-only) implementation, or -DpxINCLUDE_OGGVORBIS_STB to use the header-only stb_vorbis implementation which is included with the project here.