Rename hint.txt and hint.text to README.md
This commit is contained in:
1 parent
77fb0f11a2
commit
851e191519
166 files changed
No files matched your search
@@ -0,0 +1,33 @@
|
||||
# Most sonorous output
|
||||
|
||||
Jetro Lauha
|
||||
Talonpojantie 5A9,
|
||||
00790 Helsinki
|
||||
<http://jet.ro>
|
||||
|
||||
## Judges' Comments
|
||||
|
||||
We have seen entries with SDL graphics in the past, now it's time for SDL
|
||||
sound. This entry can even be run on a computer without a sound card with an
|
||||
appropriate setting of an environment variable - for that you'll have to dig
|
||||
into the SDL documentation.
|
||||
|
||||
Can you figure out how the notes are encoded and program a different melody?
|
||||
|
||||
### To build
|
||||
|
||||
Download and install the portable [Simple DirectMedia Layer library](http://www.libsdl.org/)
|
||||
|
||||
cc -o jetro `sdl-config --cflags --libs` jetro.c
|
||||
|
||||
### To run
|
||||
|
||||
./jetro
|
||||
|
||||
## Selected Author's Comments
|
||||
|
||||
To compile the entry you need SDL library, which is used only for audio
|
||||
output. To run the entry make sure you have audio output available. The entry
|
||||
plays 22KHz 16 bit mono music with a small softsynth. When the music plays,
|
||||
you can stop the application by pressing enter, as the code will just wait
|
||||
with one call to getchar() before it quits.
|
||||
Reference in new issue
Block a user