SA
메인 내용으로 이동

Playing Sounds in SDL

Non-looping Sounds

#include <SDL2/SDL.h>
Mix_PlayChannel(-1, game→GetSound("assets/Sounds/SoundName.wav"), 0);

Looping Sounds

Mix_PlayChannel(-1, GetSound("assets/Sounds/Music.ogg"), -1);

Halt Music

Mix_HaltChannel(channel);

이 문서를 언급한 문서들