-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crack-attack: enable sound support in the crack-attack game. #22905
Conversation
The build fails with
Please consider enabling sandboxing to help eliminate implicit dependencies. |
@joachifm I tried building it with |
@jsmaniac if you're using One thing you could try something like |
de338a6
to
4ccdb20
Compare
@joachifm Thanks for the help. I had omitted the
Several other games use the hack you mentioned, so I added this to
|
e8ba49d
to
26fd583
Compare
The --enable-sound ./configure option enables the sound support in crack-attack. This commit enables the --enable-sound option, and adds a dependency on SDL_mixer. The following files still have to be supplied by the user, due to licencing issues upstream: ~/.crack-attack/music/game.ogg ~/.crack-attack/music/gameover.ogg ~/.crack-attack/music/prelude.ogg ~/.crack-attack/music/youwin.ogg ~/.crack-attack/sounds/block_awaking.wav ~/.crack-attack/sounds/block_dying.wav ~/.crack-attack/sounds/block_fallen.wav ~/.crack-attack/sounds/countdown.wav ~/.crack-attack/sounds/garbage_fallen.wav ~/.crack-attack/sounds/garbage_shattering.wav The crack-attack game will detect when these sound files are present, and use them as background music and sound effects.
26fd583
to
069535c
Compare
Motivation for this change
The crack-attack game can have sound if the user-supplied sound files are present in its configuration folder. However, this needs the
--enable-sound
configure option to be enabled. Note that the option on its own does not activate the sounds, the files must be added to the configuration folder (see the commit message for more info).The --enable-sound ./configure option enables the sound support in crack-attack.
This commit enables the --enable-sound option, and adds a dependency on SDL_mixer.
The following files still have to be supplied by the user, due to licencing issues upstream:
~/.crack-attack/music/game.ogg
~/.crack-attack/music/gameover.ogg
~/.crack-attack/music/prelude.ogg
~/.crack-attack/music/youwin.ogg
~/.crack-attack/sounds/block_awaking.wav
~/.crack-attack/sounds/block_dying.wav
~/.crack-attack/sounds/block_fallen.wav
~/.crack-attack/sounds/countdown.wav
~/.crack-attack/sounds/garbage_fallen.wav
~/.crack-attack/sounds/garbage_shattering.wav
The crack-attack game will detect when these sound files are present, and use them as background music and sound effects.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)