mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-26 00:14:33 -04:00
Constant for DSP_SUBFRAME_SIZE
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user