Constant for DSP_SUBFRAME_SIZE

This commit is contained in:
PJB3005
2026-03-12 11:47:22 +01:00
parent 4f09fc65ac
commit 45e55f1384
2 changed files with 7 additions and 2 deletions
@@ -13,6 +13,11 @@
*/
#define DSP_OUTPUT_CHANNELS 6 // Presumed 5.1 surround
/**
* Amount of audio samples rendered by the DSP in a single sub frame.
*/
#define DSP_SUBFRAME_SIZE 0x50
struct JASWaveInfo;
namespace JASDsp {
+2 -2
View File
@@ -271,11 +271,11 @@ u32 JASDriver::getSubFrames() {
}
u32 JASDriver::getDacSize() {
return sSubFrames * 0x50 * 2;
return sSubFrames * DSP_SUBFRAME_SIZE * 2;
}
u32 JASDriver::getFrameSamples() {
return sSubFrames * 0x50;
return sSubFrames * DSP_SUBFRAME_SIZE;
}
void JASDriver::mixMonoTrack(s16* buffer, u32 param_1, MixCallback param_2) {