jak-project/game/sound/989snd/util.h

23 lines
604 B
C
Raw Normal View History

2022-05-19 16:54:36 -04:00
#pragma once
#include <utility>
2022-05-19 16:54:36 -04:00
#include "common/common_types.h"
#include "game/sound/989snd/vagvoice.h"
2022-05-19 16:54:36 -04:00
namespace snd {
extern const u16 NotePitchTable[];
extern const VolPair normalPanTable[181];
2022-05-19 16:54:36 -04:00
u16 PS1Note2Pitch(s8 center_note, s8 center_fine, short note, short fine);
u16 sceSdNote2Pitch(u16 center_note, u16 center_fine, u16 note, short fine);
std::pair<s16, s16> PitchBend(Tone& tone,
2022-05-19 16:54:36 -04:00
int current_pb,
int current_pm,
int start_note,
int start_fine);
} // namespace snd