Skip to content

gorbit99/olcPGEX_AudioConvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

olcPGEX_AudioConvert

Audio converter for the OLC PGE

Usage:

In your main file:

#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"
#define OLC_PGEX_SOUND
#include "olcPGEX_Sound.h"
#define OLC_PGEX_AUDIOCONVERT
#include "olcPGEX_AudioConverter.h"

When loading samples:

int sample = olc::AudioConvert::LoadAudioSample("someWavFile.wav");

Function protoype:

int LoadAudioSample(std::string sWavFile, olc::ResourcePack *pack = nullptr);

The sound extension is required for this PGEX.
Supported encodings: PCM, IEEE floating point, A-law, μ-law at any sampling rate.

About

Audio converter for the OLC PGE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages