Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ class BundledSoundEffectsAudio(
private var current: MediaPlayer? = null

private val attributes = AudioAttributes.Builder()
.setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)
// AVAudioPlayer on .ambient follows media volume; the silent switch is separate.
.setUsage(AudioAttributes.USAGE_MEDIA)
.setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
.build()

Expand Down
2 changes: 1 addition & 1 deletion docs/parity/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Status values: `todo`, `partial: <what is missing>`, `done`, `n/a: <reason and w
| `OpenCode/Core/ServerIDClient.swift` | 55 | see server.md | — | ported into `:server` |
| `OpenCode/Core/SharedKeys.swift` | 821 | `core/.../sharing/SharedKeys.kt`, `core/.../sharing/InstallHistory.kt`, `server/.../ServerSharedKeys.kt`, `feature/voice/.../VoiceSharedKeys.kt`, `feature/transcript/.../SessionSeenWatermarks.kt` | done | primitive keys in `:core`; server-typed keys + `CachedHomeSnapshot`/`CachedTranscriptSnapshots`/`TranscriptCachePersistence` in `:server`; voice-typed keys in `:feature:voice`. Same ids and defaults. `remember` marks `installHistory` `.paired` (b13208e9); `InstallHistory` (iOS `AppFeature+Migrations.swift`) moved down to `:core` (`sharing/InstallHistory.kt`) so `:server`'s `remember` can write it, see app.md. Sync f657969b (drawer): `sessionSeenWatermarks` (`session-seen-watermarks.json`) with `SessionSeenWatermark`/`SessionSeenWatermarks` (64 entries, LRU) lives in `:feature:transcript` `SessionSeenWatermarks.kt`, because it compares IDs through `TranscriptTimeStamps.isBefore` |
| `OpenCode/Core/SoundEffectsClient.swift` | 135 | `core/.../sound/SoundEffectsClient.kt` | done | `SoundEffect` (priorities), `SoundEffectsClient` key (inert test value), `SharedKeys.soundEffectsVolume`/`soundEffectsSend` (same ids and defaults), `SoundEffectThrottle` (1 s, on `Clock.now()`), `SoundEffectOutput`, `LiveSoundEffects` (volume clamp, throttle, `LabMarks` mark) |
| `OpenCode/Core/SoundEffectsPlayback.swift` | 259 | `core/.../sound/SoundEffectsPlayback.kt`, `core/src/main/res/raw/sound_effect_*.wav` | done | Same state machine (eligibility checked once under the owner's lock, stop reasons, finish ids). `AudioSessionIdleState` is the owner's borrow surface in `:core` (the owner is in `:feature:voice`); `:app`'s `AppDependencies` installs voice's `AudioSessionOwner` behind it at the root (iOS `AudioSessionOwner.shared`); its own live value, a fallback, reads `AudioManager.mode` (idle = `MODE_NORMAL`). Notifications → `SoundEffectsEvent`s from `ProcessLifecycleOwner` (resume/pause/stop), `AudioDeviceCallback` (route) and the audio mode listener (a call interrupts). Players: one prepared `MediaPlayer` per sound, sonification attributes, no audio focus (`.ambient` mixes); `activate` refuses unless the ringer is normal (the silent switch). The sounds are bit-exact WAVs of iOS's CAFs. Plays on emulators (iOS silences simulators) |
| `OpenCode/Core/SoundEffectsPlayback.swift` | 259 | `core/.../sound/SoundEffectsPlayback.kt`, `core/src/main/res/raw/sound_effect_*.wav` | done | Same state machine (eligibility checked once under the owner's lock, stop reasons, finish ids). `AudioSessionIdleState` is the owner's borrow surface in `:core` (the owner is in `:feature:voice`); `:app`'s `AppDependencies` installs voice's `AudioSessionOwner` behind it at the root (iOS `AudioSessionOwner.shared`); its own live value, a fallback, reads `AudioManager.mode` (idle = `MODE_NORMAL`). Notifications → `SoundEffectsEvent`s from `ProcessLifecycleOwner` (resume/pause/stop), `AudioDeviceCallback` (route) and the audio mode listener (a call interrupts). Players: one prepared `MediaPlayer` per sound, media usage with sonification content so cues follow media rather than ring volume (FB-05), no audio focus (`.ambient` mixes); `activate` refuses unless the ringer is normal (the silent switch). The sounds are bit-exact WAVs of iOS's CAFs. Plays on emulators (iOS silences simulators) |
| `OpenCode/Core/TapTarget.swift` | 53 | see core-ui.md | — | Sync ae029f85 (86ca6803, 6a173ff1): see core-ui.md. |
| `OpenCode/Core/Theme/Theme.swift` | 792 | see core-ui.md | — | |
| `OpenCode/Core/Theme/ThemePalette+Generated.swift` | 397 | see core-ui.md | — | |
Expand Down
Loading