clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -38,6 +38,13 @@ static void print(const char* text) {
|
||||
(void)SysWriteConsole(&request);
|
||||
}
|
||||
|
||||
// Emits temporary smoke-test checkpoints without relying exclusively on console drawing.
|
||||
static void trace_stage(const char* message) {
|
||||
SYS_PRINT_DEBUG_REQUEST request = { sizeof(SYS_PRINT_DEBUG_REQUEST), SysSvFromCstr(message) };
|
||||
if (SysPrintDebug(&request) != NTLSTATUS_SUCCESS)
|
||||
print(message);
|
||||
}
|
||||
|
||||
// Writes one unsigned integer to the console.
|
||||
static void print_u64(uint64_t value) {
|
||||
char digits[32];
|
||||
@@ -217,22 +224,30 @@ static void test_master_volume(const SYS_AUDIO_ENDPOINT_INFO* endpoint) {
|
||||
request.Muted = 1u;
|
||||
request.VolumeQ16 = SYS_AUDIO_GAIN_Q16_UNITY / 2u;
|
||||
|
||||
trace_stage("audio_stream_smoke: trace master.set.enter\n");
|
||||
KSTATUS status = SysAudioSetMasterVolume(&request);
|
||||
trace_stage("audio_stream_smoke: trace master.set.returned\n");
|
||||
if (status != NTLSTATUS_SUCCESS)
|
||||
fail_status("set master volume", status);
|
||||
trace_stage("audio_stream_smoke: trace master.query.enter\n");
|
||||
SYS_AUDIO_ENDPOINT_INFO updated = query_endpoint(endpoint->EndpointId);
|
||||
trace_stage("audio_stream_smoke: trace master.query.returned\n");
|
||||
if (updated.MasterVolumeQ16 != SYS_AUDIO_GAIN_Q16_UNITY / 2u ||
|
||||
updated.MasterMuted != 1u)
|
||||
fail("master volume snapshot mismatch");
|
||||
|
||||
request.VolumeQ16 = SYS_AUDIO_GAIN_Q16_UNITY + 1u;
|
||||
trace_stage("audio_stream_smoke: trace master.invalid.enter\n");
|
||||
status = SysAudioSetMasterVolume(&request);
|
||||
trace_stage("audio_stream_smoke: trace master.invalid.returned\n");
|
||||
if (status != NTLSTATUS_INVALID_PARAMETER)
|
||||
fail_status("reject master volume above unity", status);
|
||||
|
||||
request.Muted = endpoint->MasterMuted;
|
||||
request.VolumeQ16 = endpoint->MasterVolumeQ16;
|
||||
trace_stage("audio_stream_smoke: trace master.restore.enter\n");
|
||||
status = SysAudioSetMasterVolume(&request);
|
||||
trace_stage("audio_stream_smoke: trace master.restore.returned\n");
|
||||
if (status != NTLSTATUS_SUCCESS)
|
||||
fail_status("restore master volume", status);
|
||||
}
|
||||
@@ -720,7 +735,9 @@ int main(void) {
|
||||
print("audio_stream_smoke: endpoint=");
|
||||
print_u64(endpoint->EndpointId);
|
||||
print("\n");
|
||||
trace_stage("audio_stream_smoke: trace endpoint.newline.returned\n");
|
||||
test_master_volume(endpoint);
|
||||
trace_stage("audio_stream_smoke: trace master.complete\n");
|
||||
test_stream(endpoint);
|
||||
print("audio_stream_smoke: PASS endpoint=");
|
||||
print_u64(endpoint->EndpointId);
|
||||
|
||||
Reference in new issue
Block a user