mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-19 01:18:40 +03:00
20 lines
421 B
Plaintext
20 lines
421 B
Plaintext
(system-include "SDL2/SDL_mixer.h")
|
|
(add-lib "-lSDL2_mixer")
|
|
(Project.config "cflag" "-Wno-incompatible-pointer-types-discards-qualifiers")
|
|
|
|
(register-type Mix_Chunk)
|
|
(register-type Mix_Music)
|
|
|
|
(defmodule Mixer
|
|
|
|
(register default-format
|
|
Int
|
|
"MIX_DEFAULT_FORMAT")
|
|
|
|
;; freq format channels chunksize
|
|
(register open-audio
|
|
(Fn [Int Int Int Int] ())
|
|
"Mix_OpenAudio")
|
|
|
|
)
|