switch (state) { case CUBEB_STATE_STARTED:
fprintf(stderr, "stream started\n"); break; case CUBEB_STATE_STOPPED:
fprintf(stderr, "stream stopped\n"); break; case CUBEB_STATE_DRAINED:
FAIL() << "this test is not supposed to drain"; break; case CUBEB_STATE_ERROR:
fprintf(stderr, "stream error\n"); break; default:
FAIL() << "this test is not supposed to have a weird state"; break;
}
}
// This test is specifically designed to test a behaviour of the WASAPI // backend in a specific scenario. if (strcmp(cubeb_get_backend_id(ctx), "wasapi") != 0) { return;
}
cubeb_stream_start(stream);
delay(500); // This causes the callback to sleep for a large number of seconds.
load_callback = true;
delay(500);
cubeb_stream_stop(stream);
}
#undef SAMPLE_FREQUENCY #undef STREAM_FORMAT
Messung V0.5 in Prozent
[Verzeichnis aufwärts0.18unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-10-01]