Skip to content

wargio/ps3soundlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS3 SOUNDLIB

PS3 SOUNDLIB is a set of libraries to play PCM voices, MP3 and OGG files, using one SPU.

NOTE: this repository is update to the last compilers and PSL1GHT libraries.

NOTE: this lib needs tiny3D

It uses PSL1GHT and install the libraries in PSL1GHT/target/lib, C Header files in PSL1GHT/target/include and SPU module in PSL1GHT/modules to work

  • Voices can be in 8 and 16 bits (signed) format, Mono or Stereo.

  • Voices can adjust a delay time, left and right volume, and can be one shot, infinite or updated with one callbak (to work in double buffer)

Credits

Hermes         - Author
HACKERCHANNEL  - PSL1GHT
Xiph.Org       - OGG support
mpg123 project - MP3 support
Wargio/deroad  - PSL1GHT V2 Port

License

It is licensed under GPL v3

Environment

spu_soundmodule.bin               -> SPU Module. Frequency converter / mixer of 16 voices

libspu_sound.a   / spu_soundlib.h -> Sound Voices management

libaudioplayer.a / audioplayer.h  -> MP3 / Ogg player / decoder

liboggplayer.a   / audioplayer.h  -> Ogg player / decoder

libogg.a                          -> Ogg library

libmpg123.a                       -> MP3 library

NOTE1: spu_soundlib.h and audioplayer.h contain the functions descriptions

NOTE2: spu_sound uses a background thread to work with the SPU

NOTE3: audioplayer uses other background voice to play MP3/OGG files (except when you uses Decode function)

Building

You need the environment variable $PSL1GHT defined

cd ps3soundlib
make

It makes and install SPU module, libs and includes

Current Status

It works with one sample (fireworks) :)

About

PS3SOUNDLIB FOR PSL1GHT V2 - to install it, just run make.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published