diff options
| author | Adam Malczewski <[email protected]> | 2026-06-29 13:36:35 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-29 13:36:35 +0900 |
| commit | 5a54b683fa077b8a557ce3bd5745f3007579db07 (patch) | |
| tree | 71c9af9c22e478c6824862724966dd3a4afff8e1 /src/study.c | |
| parent | 7f0444bc308fef0b78b2fd4fa8aa269da619324c (diff) | |
| download | study-player-dev.tar.gz study-player-dev.zip | |
docs: P8 vocabulary governance + WSL run tribal knowledgedev
- AGENTS.md §4 'Naming & vocabulary': wire to GLOSSARY.md (P8 — never coin a
synonym for an existing concept; propose new terms, don't coin silently).
- AGENTS.md §8 'Tribal knowledge (notes/)': establish notes/<topic>.md as the
non-inferable-knowledge store with the P6 test.
- Rename study_segment_seek_target -> study_portion_seek_target ('segment' was
a glossary-proscribed synonym for 'speaking portion'); fix 'Section nav' /
'jump to start' comments to canonical terms (portion nav / seek).
- notes/wsl-arch-razer-run.md: how to run the desktop app under WSLg on the
Arch/Razer dev machine (the LIBGL_ALWAYS_INDIRECT segfault trap, required
env vars, GPU driver options).
Diffstat (limited to 'src/study.c')
| -rw-r--r-- | src/study.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/study.c b/src/study.c index 7f402bd..f88ab18 100644 --- a/src/study.c +++ b/src/study.c @@ -130,7 +130,7 @@ int study_total_speaking_portions(const PlayerState *state) return state->silenceCount + 1; } -float study_segment_seek_target(const PlayerState *state, int portion) +float study_portion_seek_target(const PlayerState *state, int portion) { float pos = study_speaking_portion_start(state, portion); float target = pos * state->duration + (2.0f / 60.0f); @@ -171,8 +171,8 @@ void study_auto_pause_check(PlayerState *state, bool smartPlayHeld, bool spaceHe if (nowInSilence && !state->wasInSilence) { - /* Entering silence: jump to start of next speaking portion */ - float target = study_segment_seek_target(state, silIdx + 1); + /* Entering silence: seek to start of next speaking portion */ + float target = study_portion_seek_target(state, silIdx + 1); PauseMusicStream(state->music); SeekMusicStream(state->music, target); state->currentTime = target; @@ -183,7 +183,7 @@ void study_auto_pause_check(PlayerState *state, bool smartPlayHeld, bool spaceHe { /* Exiting silence: land at start of current speaking portion */ int portion = study_current_speaking_portion(state, pos); - float target = study_segment_seek_target(state, portion); + float target = study_portion_seek_target(state, portion); PauseMusicStream(state->music); SeekMusicStream(state->music, target); state->currentTime = target; |
