Skip to content

kea/php-sdl-mixer

Repository files navigation

SDL_mixer PHP Extension

SDL_mixer for PHP allows to easily load audio files (WAV, OGG, etc.) and play them. It requires SDL PHP Extension.

Install via Pecl

$ pecl install sdl-beta sdl_mixer-devel

Building

$ phpize
$ ./configure --with-sdl_mixer
$ make
$ make install

Run tests with installed PHP:

$ php run-tests.php --show-diff -q

Run test with docker (ubuntu or fedora)

$ docker build --rm  -t sdl_mixer:fedora -f Dockerfile.fedora .
$ docker run -it --rm sdl_mixer:fedora 

or

$ docker build --rm  -t sdl_mixer:ubuntu -f Dockerfile.ubuntu .
$ docker run -it --rm sdl_mixer:ubuntu