Compare commits
No commits in common. "8217bc1ec2efd12fdeec8331f73b717abba33d81" and "0f79e2ee5e763e421f52a776c3bb0913a959970a" have entirely different histories.
8217bc1ec2
...
0f79e2ee5e
@ -79,13 +79,6 @@ const Color INSTRUMENT_COLORS[MAX_INSTRUMENT_TYPES] = {
|
|||||||
{255, 200, 80, 255}, // yellow
|
{255, 200, 80, 255}, // yellow
|
||||||
};
|
};
|
||||||
|
|
||||||
const float INSTRUMENT_VOLUME[MAX_INSTRUMENT_TYPES] = {
|
|
||||||
0.4f,
|
|
||||||
0.6f,
|
|
||||||
1.0f,
|
|
||||||
0.7f
|
|
||||||
};
|
|
||||||
|
|
||||||
const char* const INSTRUMENT_LANE_WAV[MAX_INSTRUMENT_TYPES][LANE_COUNT * OCTAVE_COUNT] {
|
const char* const INSTRUMENT_LANE_WAV[MAX_INSTRUMENT_TYPES][LANE_COUNT * OCTAVE_COUNT] {
|
||||||
{ // Instrument 0 - Synth
|
{ // Instrument 0 - Synth
|
||||||
"assets/sounds/snes_synth/snes_synth_048.wav", "assets/sounds/snes_synth/snes_synth_049.wav",
|
"assets/sounds/snes_synth/snes_synth_048.wav", "assets/sounds/snes_synth/snes_synth_049.wav",
|
||||||
@ -656,7 +649,6 @@ public:
|
|||||||
if (song_time >= it->play_time)
|
if (song_time >= it->play_time)
|
||||||
{
|
{
|
||||||
Sound s = note_sounds[it->instrument_slot][it->octave];
|
Sound s = note_sounds[it->instrument_slot][it->octave];
|
||||||
SetSoundVolume(s, INSTRUMENT_VOLUME[it->instrument_slot]);
|
|
||||||
PlaySound(s);
|
PlaySound(s);
|
||||||
note_sounds_playing[it->lane][it->instrument_slot].push_back(s);
|
note_sounds_playing[it->lane][it->instrument_slot].push_back(s);
|
||||||
float sustain_sec = std::max(it->duration_sec, time_per_glyph_height);
|
float sustain_sec = std::max(it->duration_sec, time_per_glyph_height);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user