fix audio desync for realsies, stderr to log.txt

This commit is contained in:
2026-03-10 00:36:21 -04:00
parent c11b404392
commit 1b5ba6b584
13 changed files with 347 additions and 21 deletions
+7 -1
View File
@@ -12,9 +12,15 @@ namespace anm2ed
public:
std::vector<float> stream{};
SDL_AudioSpec spec{};
int callbackSamples{};
Uint64 captureStartCounter{};
Uint64 firstCallbackCounter{};
bool isFirstCallbackCaptured{};
AudioStream(MIX_Mixer*);
void capture_begin(MIX_Mixer*);
void capture_end(MIX_Mixer*);
double callback_latency_seconds_get() const;
double capture_start_delay_seconds_get() const;
};
}
}