Skip to content

kea/php-sdl-mixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 30, 2023
83c65db · May 30, 2023

History

44 Commits
May 27, 2023
May 19, 2023
May 27, 2023
Jun 1, 2020
Feb 25, 2022
Feb 26, 2022
May 27, 2023
May 27, 2023
Feb 17, 2022
May 27, 2023
Mar 12, 2022
Feb 1, 2022
May 19, 2023
May 30, 2023
May 19, 2023
May 19, 2023
May 19, 2023
May 19, 2023

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