mirror of https://gitlab.com/drummyfish/anarch.git
143 lines
9.1 KiB
C
143 lines
9.1 KiB
C
|
/**
|
||
|
@file assets.h
|
||
|
|
||
|
This file containts sounds and music that can optionally be used by the game
|
||
|
front end. Every sound effect has 2048 samples, is stored in 8kHz mono format
|
||
|
with 4 bit quantization, meaning every sound effect takes 1024 bytes. Sounds
|
||
|
can be converted using a provided python script like this:
|
||
|
|
||
|
python snd2array.py sound.raw
|
||
|
|
||
|
by Miloslav Ciz (drummyfish), 2019
|
||
|
|
||
|
Released under CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
||
|
plus a waiver of all other intellectual property. The goal of this work is
|
||
|
be and remain completely in the public domain forever, available for any use
|
||
|
whatsoever.
|
||
|
*/
|
||
|
|
||
|
#ifndef _SFG_SOUNDS_H
|
||
|
#define _SFG_SOUNDS_H
|
||
|
|
||
|
#define SFG_SFX_SAMPLE_COUNT 2048
|
||
|
#define SFG_SFX_SIZE (SFG_SFX_SAMPLE_COUNT / 2)
|
||
|
|
||
|
#define SFG_GET_SFX_SAMPLE(soundIndex,sampleIndex) \
|
||
|
((sampleIndex % 2) ? \
|
||
|
(SFG_sounds[soundIndex][sampleIndex / 2] >> 4) : \
|
||
|
(SFG_sounds[soundIndex][sampleIndex / 2] & 0x0f))
|
||
|
|
||
|
SFG_PROGRAM_MEMORY uint8_t SFG_sounds[][SFG_SFX_SIZE] =
|
||
|
{
|
||
|
{ // 0, bullet shot
|
||
|
135,119,120,136,136,153,153,153,154,169,152,119,101,85,86,102,119,118,119,
|
||
|
85,84,51,33,52,52,84,87,120,170,188,202,152,102,84,84,70,119,136,119,
|
||
|
119,121,154,219,170,137,117,82,18,36,34,33,20,67,68,70,137,172,189,237,
|
||
|
220,150,120,120,97,36,102,121,151,87,169,118,86,102,120,137,135,120,186,155,
|
||
|
223,255,217,103,100,70,119,118,84,34,36,122,204,220,168,138,170,170,223,199,
|
||
|
117,70,119,136,100,85,102,51,37,101,103,118,101,136,87,154,169,171,187,186,
|
||
|
169,153,136,117,68,84,66,18,19,50,52,51,102,121,139,186,169,171,186,152,
|
||
|
153,136,119,134,85,101,86,69,84,84,86,85,86,102,119,120,153,135,135,101,
|
||
|
87,134,103,135,101,103,119,135,152,120,136,135,137,136,151,134,87,119,136,119,
|
||
|
118,102,85,119,85,102,102,119,138,137,153,137,186,170,137,152,135,101,85,85,
|
||
|
86,102,102,119,119,102,103,119,137,152,138,153,154,169,153,152,137,151,118,85,
|
||
|
85,84,84,86,86,136,119,119,154,153,153,171,187,170,170,187,170,137,151,119,
|
||
|
102,103,69,102,118,120,120,138,153,169,170,169,153,135,119,119,102,118,105,136,
|
||
|
136,137,152,153,136,152,119,119,119,119,121,152,136,119,152,136,135,120,119,118,
|
||
|
86,102,103,136,135,137,153,136,152,119,119,118,102,86,85,102,102,102,102,120,
|
||
|
136,136,136,136,152,136,153,152,119,119,120,135,120,119,119,103,119,136,119,135,
|
||
|
120,135,136,136,137,153,153,152,154,152,153,137,152,136,135,119,136,136,136,153,
|
||
|
152,154,170,170,153,153,152,119,119,119,119,118,119,103,136,136,120,135,118,120,
|
||
|
119,118,102,119,102,102,103,119,118,103,102,102,119,135,119,119,119,119,119,119,
|
||
|
119,118,102,103,135,136,135,119,120,135,119,119,119,119,103,119,120,136,137,152,
|
||
|
136,136,136,153,153,136,153,153,153,153,153,152,153,136,136,135,119,135,119,119,
|
||
|
136,136,136,136,152,152,137,153,152,119,118,102,102,102,119,103,119,119,119,136,
|
||
|
136,135,118,103,119,120,136,136,136,136,136,136,136,119,118,102,119,119,119,136,
|
||
|
136,136,136,137,136,136,136,136,119,119,120,135,119,119,120,135,136,136,136,136,
|
||
|
136,136,119,119,120,119,120,136,136,135,119,120,119,119,119,119,119,120,136,152,
|
||
|
136,137,153,136,136,136,136,136,136,136,119,120,137,153,136,136,135,119,119,136,
|
||
|
136,136,135,119,119,102,119,120,135,119,119,119,136,136,136,118,102,103,119,136,
|
||
|
119,119,120,136,136,136,135,119,119,136,136,136,136,136,136,136,136,135,119,119,
|
||
|
119,119,119,136,119,119,119,136,136,136,136,135,120,136,136,136,119,119,119,120,
|
||
|
136,136,136,136,135,119,119,119,119,136,119,119,136,136,136,136,135,119,119,119,
|
||
|
119,119,119,119,119,136,136,136,136,136,135,119,119,119,119,119,119,119,136,136,
|
||
|
136,136,135,120,136,136,136,119,119,119,136,136,136,135,119,119,119,119,119,119,
|
||
|
119,119,119,119,136,136,120,136,136,136,136,136,119,119,120,136,136,136,119,119,
|
||
|
120,136,136,136,136,136,136,136,136,136,136,136,135,119,119,119,119,119,119,119,
|
||
|
120,136,136,136,135,119,119,119,119,136,136,136,136,136,135,119,119,119,119,119,
|
||
|
119,120,136,136,136,136,136,135,119,119,119,119,119,119,119,120,136,136,136,136,
|
||
|
136,136,136,136,136,136,119,119,119,119,119,119,119,119,119,119,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,119,119,119,119,119,119,119,119,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,119,119,119,119,119,119,119,119,119,119,136,136,136,
|
||
|
136,136,136,136,119,119,119,119,119,120,136,136,136,136,136,136,136,135,119,119,
|
||
|
136,136,119,119,119,119,119,119,120,135,120,136,136,136,136,136,136,136,136,135,
|
||
|
119,119,119,119,119,119,119,119,136,136,136,136,136,136,136,136,136,135,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,136,136,136,136,136,136,136,136,119,119,
|
||
|
119,119,119,119,119,120,136,136,136,136,136,136,136,119,119,119,119,119,119,119,
|
||
|
119,119,119,136,135,119,120,119,119,120,136,136,136,136,136,136,119,119,119,119,
|
||
|
119,119,119,119,120,136,136,136,136,136,136,136,119,119,135,119,119,119,119,119,
|
||
|
119,119,119,119,135,120,136,136,136,136,136,135,119,119,119,119,119,120,119,119,
|
||
|
119,135,119,136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,136,136,
|
||
|
136,136,136,136,136,136,135,119,136,136,135,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,136,136,136,136,136,136,136,136,136,119,119,119,119,119,119,119,136,136,
|
||
|
136,136,136,136,136,136,135,119,119,135,135,120,120,120,120,120,120,120,120,135,
|
||
|
135,136,120,120,135
|
||
|
},
|
||
|
{ // 1, door opening
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,153,153,153,153,153,153,153,153,153,153,
|
||
|
153,153,152,136,136,136,136,136,136,136,136,136,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,102,102,102,102,103,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,136,136,136,136,136,136,136,136,136,136,153,153,153,153,153,
|
||
|
153,153,136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,119,102,102,
|
||
|
102,102,102,102,102,102,102,103,119,119,119,119,120,136,136,136,136,136,137,153,
|
||
|
153,153,153,153,152,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
135,119,119,119,119,120,136,136,136,136,136,136,136,137,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,136,136,136,136,136,136,120,
|
||
|
136,136,136,136,136,136,136,135,120,136,136,135,119,120,135,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,120,136,136,136,136,136,119,120,136,136,
|
||
|
136,136,136,135,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,120,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
136,136,136,136,136,153,153,153,153,153,152,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,135,120,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,119,119,120,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,119,119,119,119,119,119,119,119,119,136,136,136,136,136,136,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,102,102,102,102,102,103,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,120,136,136,136,136,119,119,119,119,119,119,119,119,
|
||
|
119,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,135,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,120,136,136,136,136,136,136,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,120,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,120,135,119,119,119,136,136,136,136,
|
||
|
136,136,135,136,136,136,136,136,136,136,135,136,136,136,136,120,119,135,119,119,
|
||
|
119,119,119,119,119,120,136,136,120,136,136,136,136,136,119,136,135,136,136,136,
|
||
|
136,136,136,136,119,119,120,135,119,135,119,136,135,119,120,120,136,136,136,136,
|
||
|
135,119,119,119,119,119,119,119,119,120,119,119,119,119,119,119,119,119,119,119,
|
||
|
119,119,119,119,119,119,119,119,103,119,119,119,102,102,102,102,102,102,118,103,
|
||
|
102,118,103,136,136,136,136,136,136,136,136,136,137,153,153,153,170,169,153,153,
|
||
|
170,153,153,153,170,170,169,170,169,153,153,153,153,153,153,170,170,170,153,153,
|
||
|
153,136,137,153,136,136,137,152,119,102,120,136,136,135,119,119,119,120,135,119,
|
||
|
119,120,137,153,153,153,152,136,135,119,119,119,102,119,119,119,119,119,119,119,
|
||
|
120,136,136,119,120,137,152,137,136,136,136,136,119,120,135,119,118,102,102,102,
|
||
|
102,102,102,119,119,119,119,118,103,119,119,119,119,119,102,102,102,85,85,85,
|
||
|
85,84,85,85,85,86,102,102,102,102,102,101,85,86,102,102,102,102,102,102,
|
||
|
102,102,102,119,102,102,119,119,119,120,136,119,119,119,120,136,136,136,136,136,
|
||
|
136,135,119,119,136,136,136,136,136,136,119,120,135,119,119,119,119,119,119,119,
|
||
|
119,119,119,120,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,
|
||
|
136,136,136,120,120
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif // guard
|