From 896f3f8193219e62b10c5eaa729fe58096d7f50f Mon Sep 17 00:00:00 2001 From: leroy ketelaars Date: Sat, 14 Nov 2026 20:32:08 +0000 Subject: [PATCH 1/6] Integrate original IPL menu sounds throughout the glass-cube demo --- Directory.Build.props | 2 +- IplResources/README.md | 7 +- README.md | 2 +- VideoMode/Design/ui-sounds/action-index.md | 71 +++++++ VideoMode/IplBrowser.cs | 98 ++++++--- VideoMode/IplCardOperations.cs | 9 + VideoMode/IplNativeCards.cs | 20 +- VideoMode/IplPreferences.cs | 30 +-- VideoMode/IplRenderer.cs | 6 +- VideoMode/IplShell.cs | 86 +++++--- VideoMode/IplStorageBrowser.cs | 4 +- VideoMode/IplUiAudio.cs | 176 ++++++++++++++++ VideoMode/IplUiAudioPolicy.cs | 51 +++++ VideoMode/IplUiSounds.cs | 28 +++ VideoMode/Program.cs | 35 +++- VideoMode/README.md | 31 ++- VideoMode/VideoMode.csproj | 6 + ci/build_videomode_source_sdk.py | 2 + ci/validate_sample_tests.py | 2 +- ci/validate_samples.py | 2 +- global.json | 2 +- tests/Directory.Build.props | 2 +- tests/VideoModeAudioTests/FakeSdk.cs | 115 +++++++++++ tests/VideoModeAudioTests/Program.cs | 72 +++++++ .../VideoModeAudioTests.csproj | 13 ++ .../IplBrowserSoundTests.cs | 195 ++++++++++++++++++ .../IplDetailLayoutTests.cs | 2 +- .../VideoModeMenuTests/IplMenuLayoutTests.cs | 8 +- .../VideoModeMenuTests/IplPreferencesTests.cs | 13 +- .../VideoModeMenuTests/IplShellSoundTests.cs | 186 +++++++++++++++++ tests/VideoModeMenuTests/IplShellTests.cs | 2 +- .../IplUiAudioPolicyTests.cs | 35 ++++ .../IplUiSoundPreferencesTests.cs | 45 ++++ .../IplUiSoundQueueTests.cs | 19 ++ .../PreferencesDiskFixture.cs | 10 +- tests/VideoModeMenuTests/Program.cs | 5 + .../VideoModeMenuTests.csproj | 2 + 37 files changed, 1278 insertions(+), 116 deletions(-) create mode 100644 VideoMode/Design/ui-sounds/action-index.md create mode 100644 VideoMode/IplUiAudio.cs create mode 100644 VideoMode/IplUiAudioPolicy.cs create mode 100644 VideoMode/IplUiSounds.cs create mode 100644 tests/VideoModeAudioTests/FakeSdk.cs create mode 100644 tests/VideoModeAudioTests/Program.cs create mode 100644 tests/VideoModeAudioTests/VideoModeAudioTests.csproj create mode 100644 tests/VideoModeMenuTests/IplBrowserSoundTests.cs create mode 100644 tests/VideoModeMenuTests/IplShellSoundTests.cs create mode 100644 tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs create mode 100644 tests/VideoModeMenuTests/IplUiSoundPreferencesTests.cs create mode 100644 tests/VideoModeMenuTests/IplUiSoundQueueTests.cs diff --git a/Directory.Build.props b/Directory.Build.props index 5c90bf9..2cdabe2 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 0.1.0-preview.343.1 + 0.1.0-preview.347.1 true diff --git a/IplResources/README.md b/IplResources/README.md index 8aeec7b..88b9a4b 100644 --- a/IplResources/README.md +++ b/IplResources/README.md @@ -18,8 +18,9 @@ authored notes and tails. The three movement identities map to `SystemFirmware.ReadConsole` reads the configured console ROM through EXI. On a real GameCube, that ROM is built in: no IPL file needs to be installed. -Build B03 consumes public NuGet SDK/runtime `0.1.0-preview.343.1`, published -after [SDK PR #180](https://github.com/capz/DolphinDotNet/pull/180). +Build B03 introduced public NuGet SDK/runtime `0.1.0-preview.343.1`, published +after [SDK PR #180](https://github.com/capz/DolphinDotNet/pull/180). The repository +now consumes `0.1.0-preview.347.1`. The SDK uses continuous DMA for each 1 KiB ROM page, following libogc's ROM transfer method. The demo shows the actual published SDK version below the title, starts with Startup selected, and displays load errors across two lines. @@ -67,7 +68,7 @@ running IPL because they start at a deterministic sequence phase. The `ipl-resources-dol` CI artifact contains `IplResources-early-ipl.dol`. Its dedicated native build group makes this download available while the other sample builds finish. Confirm `IPL RESOURCES B03` and SDK -`0.1.0-preview.343.1` on screen when testing it. +the repository's pinned SDK version on screen when testing it. ```sh dotnet build IplResources/IplResources.sln -c Release diff --git a/README.md b/README.md index f4c4a5e..ff88a83 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DolphinDotNet Samples -Run commands from the repository root. These are independent NuGet consumers of [`DolphinDotNet.Sdk`](https://www.nuget.org/packages/DolphinDotNet.Sdk/) and [`DolphinDotNet.GameCube`](https://www.nuget.org/packages/DolphinDotNet.GameCube/). Both are pinned to preview `0.1.0-preview.343.1` in `global.json` and `Directory.Build.props`; the `DolphinDotNet.Core` dependency is resolved transitively. No checkout of the compiler/runtime repository is required. All examples target .NET 8 for compilation; +Run commands from the repository root. These are independent NuGet consumers of [`DolphinDotNet.Sdk`](https://www.nuget.org/packages/DolphinDotNet.Sdk/) and [`DolphinDotNet.GameCube`](https://www.nuget.org/packages/DolphinDotNet.GameCube/). Both are pinned to preview `0.1.0-preview.347.1` in `global.json` and `Directory.Build.props`; the `DolphinDotNet.Core` dependency is resolved transitively. No checkout of the compiler/runtime repository is required. All examples target .NET 8 for compilation; the GameCube runs generated native code, using only the supported AOT API subset. | Sample | Demonstrates | Setup / result | diff --git a/VideoMode/Design/ui-sounds/action-index.md b/VideoMode/Design/ui-sounds/action-index.md new file mode 100644 index 0000000..7cb4561 --- /dev/null +++ b/VideoMode/Design/ui-sounds/action-index.md @@ -0,0 +1,71 @@ +# System menu sound actions + +The glass-cube demo uses ten finite IPL effects exposed by published +`DolphinDotNet.GameCube` / SDK `0.1.0-preview.347.1`. The mappings apply to Video, +Calendar, Options and Storage. They describe accepted logical actions, rather +than button presses or rendered frames. + +| User action | SDK `SystemMenuSound` | +| --- | --- | +| Turn from the center to a cube side, including R's Storage shortcut | `TurnSide` | +| Return from a side to the center, using B or the opposite stick direction | `TurnCenter` | +| Open a flat menu, storage browser, folder or file-information page | `Select` | +| Leave a flat page/browser, close file information, or use L for a parent folder | `Back` | +| Discard a value, cancel a dialog/transfer, revert a video preview, or report a failed action | `OptionCancel` | +| Commit settings, preview/keep a video mode, confirm a card action, or finish a verified transfer | `OptionConfirm` | +| Change a draft value, including time/date and UI sound volume | `OptionMove1` | +| Select a field/segment, change memory-card slot or grid/list view, or request a refresh | `OptionMove2` | +| Move between menu rows, files, saves or dialog choices | `OptionMove3` | +| Open a value editor, save-actions menu, launch prompt or destructive-action dialog | `OptionSelect` | + +One shared cue queue selects at most one effect per input/update cycle. A failed +nested action takes precedence over opening or confirmation sounds. Accepted +copy/move requests and their later verified completion are separate events; +typed operation results distinguish completion from ordinary media probes. +Formatting retains both explicit confirmations. No separate error or +memory-card-specific effect is invented: failures reuse `OptionCancel`. + +Blocked/busy input, unchanged selections, redraws, focus animation, clock ticks, +transfer percentages, artwork loads and background storage probes stay silent. +Each accepted held-direction step can sound after the existing 380 ms delay +and 130 ms repeat interval. Navigation/value effects share a 40 ms limiter; +open, confirm and cancel effects bypass it. Six tracked voices allow overlap, +reusing a free slot or stopping the oldest voice when full. New input received +while loading or muted is discarded. There is no startup jingle or ambience. + +## Controls and resource lifetime + +Options > UI Sounds offers Off / Low / Medium / Full: gains 0 / 0.25 / 0.5 / 1. +Medium is the default. A draft previews immediately, A commits, and B restores +the saved session level. Preferences v4 preserves existing video, Stereo/Mono, +Motion and Glass Blur values; v1–v3 settings adopt Medium. Stereo/Mono remains +the independent console SRAM preference and does not imply AESND downmixing. + +Off stops active voices and defers the initial firmware read until sound is +enabled. Otherwise preparation runs once on `Task.Run`: read the console IPL, +select its qualified profile and prepare the ten effects. The firmware image +and catalog are disposed before interactive playback; prepared native clips +remain resident. Shutdown cancels pending preparation, awaits it, and disposes +voices before clips. No ROM, PCM, replacement tone or recording is bundled or +written to storage. + +Each effect uses a 1 MiB preparation budget and the retained bank is capped at +6 MiB of native audio memory. These limits are separate from the 2 MiB firmware +image and SDK-managed extraction data. Reaching `FirmwareImage` makes the SDK +select an 8 MiB managed heap, replacing this demo's earlier 256 KiB assumption +in audio-enabled builds. Playback performs no firmware reads or effect +preparation in the frame loop; the SDK creates a small channel wrapper per +played effect. Audio-disabled instrumentation retains its separate baseline. + +Profiles are qualified for early NTSC 1.0, NTSC 1.2 and PAL 1.2. A missing IPL, +unsupported profile or failed preparation leaves navigation working and reports +unavailable audio in the UI Sounds editor. The Cloud environment has no original +IPL configured, so native validation there covers graceful unavailability and +normal interaction; it does not establish audible playback on physical hardware. +Host tests verify routing, repeat/no-op behavior, voice policy and settings +migration. Physical listening and supported-ROM playback remain separate checks. + +The SDK [firmware resource guide](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/docs/system-firmware-resources.md) +and [menu-audio qualification report](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/docs/system-menu-audio-research.md) +describe the exposed assets and supported profiles. The finite effect list does +not qualify `PressStart`, continuous ambience or bit-identical IPL DSP output. diff --git a/VideoMode/IplBrowser.cs b/VideoMode/IplBrowser.cs index e7c99a7..e5d6481 100644 --- a/VideoMode/IplBrowser.cs +++ b/VideoMode/IplBrowser.cs @@ -28,6 +28,9 @@ internal interface IIplBrowserCanvas internal sealed class IplBrowser : IDisposable { private readonly IIplBrowserSource source; + private readonly IIplUiSoundSink? sounds; + private bool awaitingCardOperation; + private int observedOperationVersion; internal IplBrowserItem?[] Items {get;private set;}=new IplBrowserItem?[6]; private bool sdList,cardList; internal bool Compact=>Kind!=IplBrowserKind.Games; @@ -62,70 +65,107 @@ internal sealed class IplBrowser : IDisposable internal string SlotCaption(int slot)=>(source as IIplCardOperations)?.SlotCaption(slot)??"Unavailable"; internal bool CanCopy=>Selected!=null&&(source as IIplCardOperations)?.CanCopy(Selected)==true; internal bool CanMove=>Selected!=null&&(source as IIplCardOperations)?.CanMove(Selected)==true; - internal void SwitchSlot(int slot){if(Kind==IplBrowserKind.MemoryCards&&Panel==IplBrowserPanel.Grid&&!Busy)Open(Kind,"",slot);} + internal void SwitchSlot(int slot){if(Kind==IplBrowserKind.MemoryCards&&Panel==IplBrowserPanel.Grid&&!Busy)OpenAt(Kind,"",slot,slot==Slot?IplUiSound.None:IplUiSound.ChangeField);} private int SourceVersion=>(source as IIplBrowserNotifications)?.Version??0; private readonly float[] focus=new float[IplStorageLayout.Capacity]; internal float Focus(int item)=>focus[item]; - internal IplBrowser(IIplBrowserSource source){this.source=source;} + internal IplBrowser(IIplBrowserSource source,IIplUiSoundSink? sounds=null){this.source=source;this.sounds=sounds;} internal void Open(IplBrowserKind kind,string path="",int slot=0) - {Kind=kind;ResizePage();Path=path;Slot=slot;PageStart=Selection=0;Panel=IplBrowserPanel.Grid;Active=true;error="";Array.Clear(Items,0,Items.Length);Count=0;Revision++;ContentRevision++;try{source.Begin(kind,path,slot,false);observedVersion=SourceVersion;if(!source.Busy)Load();}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}} + {OpenAt(kind,path,slot,IplUiSound.EnterMenu);} + private void Emit(IplUiSound cue){if(cue!=IplUiSound.None)sounds?.Emit(cue);} + private void OpenAt(IplBrowserKind kind,string path,int slot,IplUiSound cue) + { + Kind=kind;ResizePage();Path=path;Slot=slot;PageStart=Selection=0;Panel=IplBrowserPanel.Grid;Active=true;awaitingCardOperation=false;error="";Array.Clear(Items,0,Items.Length);Count=0;Revision++;ContentRevision++; + try{source.Begin(kind,path,slot,false);observedVersion=SourceVersion;Emit(source.Busy||Load()?cue:IplUiSound.CancelEdit);} + catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);} + } private void ResizePage(){if(Items.Length!=PageSize)Items=new IplBrowserItem?[PageSize];(source as IIplBrowserPageSize)?.SetPageSize(PageSize);} - internal void ToggleView(){if(!Compact||Panel!=IplBrowserPanel.Grid||Busy)return;int absolute=PageStart+Selection;if(Kind==IplBrowserKind.Sd)sdList=!sdList;else cardList=!cardList;ResizePage();PageStart=absolute/PageSize*PageSize;Selection=absolute%PageSize;Load();} + internal void ToggleView(){if(!Compact||Panel!=IplBrowserPanel.Grid||Busy)return;int absolute=PageStart+Selection;if(Kind==IplBrowserKind.Sd)sdList=!sdList;else cardList=!cardList;ResizePage();PageStart=absolute/PageSize*PageSize;Selection=absolute%PageSize;Emit(Load()?IplUiSound.ChangeField:IplUiSound.CancelEdit);} private IIplBrowserCatalog? Catalog=>Compact?source as IIplBrowserCatalog:null; internal IplItemKind ItemKind(int index)=>Items[index]?.Kind??Catalog?.CatalogKind(index)??IplItemKind.File; private IplBrowserItem? Item(int index)=>Items[index]??Catalog?.CatalogItem(index); private void SelectItem(){if(Catalog!=null&&!ListView&&Count>0){Array.Clear(Items,0,Items.Length);Items[Selection]=Catalog.CatalogItem(Selection);}} - private void Load(){error="";if(PageStart>=Total&&Total>0)PageStart=(Total-1)/PageSize*PageSize;Count=0;Array.Clear(Items,0,Items.Length);Revision++; + private bool Load(){error="";if(PageStart>=Total&&Total>0)PageStart=(Total-1)/PageSize*PageSize;Count=0;Array.Clear(Items,0,Items.Length);Revision++; try{var catalog=Catalog;Count=catalog!=null?catalog.ReadCatalogPage(PageStart,PageSize):source.ReadPage(PageStart,Items);if(Count<0||Count>PageSize)throw new InvalidOperationException("Invalid browser page."); if(!source.Busy)Selection=Math.Min(Selection,Math.Max(0,Count-1)); if(catalog!=null){if(ListView){for(int i=0;ifocus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step);}bool busy=source.Busy;try{source.Tick();if((busy&&!source.Busy)||SourceVersion!=observedVersion){if(SourceVersion!=observedVersion)ContentRevision++;if(Kind==IplBrowserKind.MemoryCards)Panel=IplBrowserPanel.Grid;Load();}}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}} + return true; + }catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Count=0;Array.Clear(Items,0,Items.Length);return false;}} + internal void Tick(float dt,bool reducedMotion=false) + { + if(!Active)return;ReducedMotion=reducedMotion;AnimationTime+=dt; + for(int i=0;ifocus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step);} + bool busy=source.Busy; + try{ + source.Tick();IplUiSound cue=IplUiSound.None; + bool completed=awaitingCardOperation&&!source.Busy; + if(completed){ + awaitingCardOperation=false; + if(source is IIplCardOperationNotifications result&&result.OperationVersion!=observedOperationVersion) + cue=result.OperationResult==IplCardOperationResult.Succeeded?IplUiSound.ConfirmEdit:result.OperationResult==IplCardOperationResult.None?IplUiSound.None:IplUiSound.CancelEdit; + } + if((busy&&!source.Busy)||SourceVersion!=observedVersion){ + if(SourceVersion!=observedVersion)ContentRevision++;if(Kind==IplBrowserKind.MemoryCards)Panel=IplBrowserPanel.Grid; + if(!Load()&&completed)cue=IplUiSound.CancelEdit; + } + Emit(cue); + }catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";if(awaitingCardOperation){awaitingCardOperation=false;Emit(IplUiSound.CancelEdit);}} + } internal void Direction(int x,int y) { - if(Busy)return; - if(Panel==IplBrowserPanel.Launch||Panel==IplBrowserPanel.CardConfirm){if(x!=0||y!=0)Choice=x!=0?(x>0?1:0):(y<0?1:0);return;} - if(Panel==IplBrowserPanel.CardActions){int choice=Choice+(x!=0?x:-y);Choice=choice<0?3:choice>3?0:choice;return;} + if(Busy||(x==0&&y==0))return; + if(Panel==IplBrowserPanel.Launch||Panel==IplBrowserPanel.CardConfirm){int before=Choice;Choice=x!=0?(x>0?1:0):(y<0?1:0);if(Choice!=before)Emit(IplUiSound.ChangeRow);return;} + if(Panel==IplBrowserPanel.CardActions){int before=Choice,choice=Choice+(x!=0?x:-y);Choice=choice<0?3:choice>3?0:choice;if(Choice!=before)Emit(IplUiSound.ChangeRow);return;} if(Panel!=IplBrowserPanel.Grid||Total==0)return; int next=PageStart+Selection+(x!=0?x:-y*Columns);if(next<0)next=Total-1;if(next>=Total)next=0; - int page=next/PageSize*PageSize;Selection=next%PageSize;if(page!=PageStart){PageStart=page;Load();}else try{SelectItem();}catch(Exception e){error=e.Message??"Could not read this entry. Refresh storage.";} + if(next==PageStart+Selection)return; + int page=next/PageSize*PageSize;Selection=next%PageSize;bool loaded=true;if(page!=PageStart){PageStart=page;loaded=Load();}else try{SelectItem();}catch(Exception e){error=e.Message??"Could not read this entry. Refresh storage.";loaded=false;} + Emit(loaded?IplUiSound.ChangeRow:IplUiSound.CancelEdit); } internal void Confirm(VideoModeSettings video) { if(Busy)return; if(Panel==IplBrowserPanel.CardActions){ - if(Choice==0){Panel=IplBrowserPanel.Grid;return;} - if(Choice==1&&!CanCopy){error="This saved file is copy protected.";return;} - if(Choice==2&&!CanMove){error="This saved file is move protected.";return;} - CardAction=Choice==1?IplCardAction.Copy:Choice==2?IplCardAction.Move:IplCardAction.Delete;Choice=0;Panel=IplBrowserPanel.CardConfirm;return; + if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;} + if(Choice==1&&!CanCopy){error="This saved file is copy protected.";Emit(IplUiSound.CancelEdit);return;} + if(Choice==2&&!CanMove){error="This saved file is move protected.";Emit(IplUiSound.CancelEdit);return;} + CardAction=Choice==1?IplCardAction.Copy:Choice==2?IplCardAction.Move:IplCardAction.Delete;Choice=0;Panel=IplBrowserPanel.CardConfirm;Emit(IplUiSound.OpenEditor);return; } if(Panel==IplBrowserPanel.CardConfirm){ - if(Choice==0){Panel=IplBrowserPanel.Grid;return;} - if(CardAction==IplCardAction.Format&&FormatStage==1){FormatStage=2;Choice=0;return;} - try{if(source is IIplCardOperations cards)cards.Execute(CardAction,Selected);else throw new InvalidOperationException("Card service unavailable.");error="";Panel=source.Busy?IplBrowserPanel.Progress:IplBrowserPanel.Grid;if(!source.Busy)Load();} - catch(Exception e){error=e.Message??"Memory-card operation failed. Refresh the slot.";Panel=IplBrowserPanel.Grid;} + if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;} + if(CardAction==IplCardAction.Format&&FormatStage==1){FormatStage=2;Choice=0;Emit(IplUiSound.ConfirmEdit);return;} + try{ + observedOperationVersion=(source as IIplCardOperationNotifications)?.OperationVersion??0; + if(source is IIplCardOperations cards)cards.Execute(CardAction,Selected);else throw new InvalidOperationException("Card service unavailable."); + error="";awaitingCardOperation=source.Busy;Panel=source.Busy?IplBrowserPanel.Progress:IplBrowserPanel.Grid; + IplUiSound cue=IplUiSound.ConfirmEdit; + if(source is IIplCardOperationNotifications result&&result.OperationVersion!=observedOperationVersion&&(result.OperationResult==IplCardOperationResult.Failed||result.OperationResult==IplCardOperationResult.Cancelled))cue=IplUiSound.CancelEdit; + if(!source.Busy&&!Load())cue=IplUiSound.CancelEdit; + Emit(cue); + } + catch(Exception e){error=e.Message??"Memory-card operation failed. Refresh the slot.";awaitingCardOperation=false;Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);} return; } - if(Panel==IplBrowserPanel.Info){Panel=IplBrowserPanel.Grid;return;} - if(Panel==IplBrowserPanel.Launch){if(Choice==0){Panel=IplBrowserPanel.Grid;return;}if(Selected!=null)try{source.Open(Selected,video);error="";}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}return;} + if(Panel==IplBrowserPanel.Info){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.Back);return;} + if(Panel==IplBrowserPanel.Launch){if(Choice==0){Panel=IplBrowserPanel.Grid;Emit(IplUiSound.CancelEdit);return;}if(Selected!=null)try{source.Open(Selected,video);error="";Emit(IplUiSound.ConfirmEdit);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}return;} var item=Selected;if(item==null)return; - if(item.Kind==IplItemKind.Save){try{Information=source.Describe(item);Choice=0;Panel=IplBrowserPanel.CardActions;}catch(Exception e){error=e.Message??"Could not read this save.";}return;} - if(item.Kind==IplItemKind.CardFormat){CardAction=IplCardAction.Format;FormatStage=1;Choice=0;Panel=IplBrowserPanel.CardConfirm;return;} + if(item.Kind==IplItemKind.Save){try{Information=source.Describe(item);Choice=0;Panel=IplBrowserPanel.CardActions;Emit(IplUiSound.OpenEditor);}catch(Exception e){error=e.Message??"Could not read this save.";Emit(IplUiSound.CancelEdit);}return;} + if(item.Kind==IplItemKind.CardFormat){CardAction=IplCardAction.Format;FormatStage=1;Choice=0;Panel=IplBrowserPanel.CardConfirm;Emit(IplUiSound.OpenEditor);return;} if(item.Kind==IplItemKind.Directory){Open(Kind,Path.Length==0?item.Path:Path+"/"+item.Path,Slot);return;} - if(item.Kind==IplItemKind.Game||item.Kind==IplItemKind.Dol){Panel=IplBrowserPanel.Launch;Choice=0;return;} - try{Information=source.Describe(item);Panel=IplBrowserPanel.Info;}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";} + if(item.Kind==IplItemKind.Game||item.Kind==IplItemKind.Dol){Panel=IplBrowserPanel.Launch;Choice=0;Emit(IplUiSound.OpenEditor);return;} + try{Information=source.Describe(item);Panel=IplBrowserPanel.Info;Emit(IplUiSound.EnterMenu);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);} } // B leaves the entire flat flow. Folder navigation has its own L action. - internal void ParentDirectory(){if(Kind==IplBrowserKind.Sd&&Panel==IplBrowserPanel.Grid&&!Busy&&Path.Length>0)Open(Kind,IplPaths.Parent(Path),Slot);} + internal void ParentDirectory(){if(Kind==IplBrowserKind.Sd&&Panel==IplBrowserPanel.Grid&&!Busy&&Path.Length>0)OpenAt(Kind,IplPaths.Parent(Path),Slot,IplUiSound.Back);} internal string Exit() { - string status=""; + if(!Active)return "";string status="";bool cancelTransfer=Kind==IplBrowserKind.MemoryCards&&Busy; if(Active&&Kind==IplBrowserKind.MemoryCards&&Busy)try{(source as IIplCardOperations)?.Cancel();}catch(Exception e){status=e.Message??"Transfer stopped. Check the destination card.";} try{source.Dispose();}catch(Exception e){status=e.Message??"Storage could not close cleanly. Check the device.";} - Active=false;Panel=IplBrowserPanel.Grid;Count=0;Array.Clear(Items,0,Items.Length);Revision++;return status; + Active=false;awaitingCardOperation=false;Panel=IplBrowserPanel.Grid;Count=0;Array.Clear(Items,0,Items.Length);Revision++;Emit(status.Length>0||cancelTransfer?IplUiSound.CancelEdit:IplUiSound.Back);return status; } - internal void Refresh(){if(Panel!=IplBrowserPanel.Grid)return;error="";PageStart=Selection=Count=0;Array.Clear(Items,0,Items.Length);Revision++;ContentRevision++;try{source.Begin(Kind,Path,Slot,true);if(!Busy)Load();}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";}} + internal void Refresh(){if(Panel!=IplBrowserPanel.Grid)return;error="";PageStart=Selection=Count=0;Array.Clear(Items,0,Items.Length);Revision++;ContentRevision++;try{source.Begin(Kind,Path,Slot,true);Emit(Busy||Load()?IplUiSound.ChangeField:IplUiSound.CancelEdit);}catch(Exception e){error=e.Message??"Storage operation failed. Check the device.";Emit(IplUiSound.CancelEdit);}} internal int ArtworkFrames(int index)=>Item(index)!=null?Math.Max(0,Math.Min(8,(source as IIplAnimatedArtwork)?.ArtworkFrames(Item(index)!)??1)):0; internal int ArtworkDuration(int index,int frame)=>Math.Max(1,(source as IIplAnimatedArtwork)?.ArtworkDuration(Items[index]!,frame)??4); internal bool ArtworkBounces(int index)=>(source as IIplAnimatedArtwork)?.ArtworkBounces(Items[index]!)??false; diff --git a/VideoMode/IplCardOperations.cs b/VideoMode/IplCardOperations.cs index 38031c7..d20fdc3 100644 --- a/VideoMode/IplCardOperations.cs +++ b/VideoMode/IplCardOperations.cs @@ -9,6 +9,15 @@ internal interface IIplCardOperations } internal interface IIplBrowserNotifications { int Version {get;} } +// Terminal operation results are separate from card/catalog revisions: a probe +// or thumbnail refresh must never announce a completed transfer. +internal enum IplCardOperationResult { None, Succeeded, Failed, Cancelled } +internal interface IIplCardOperationNotifications +{ + int OperationVersion {get;} + IplCardOperationResult OperationResult {get;} +} + internal interface IIplAnimatedArtwork { int ArtworkFrames(IplBrowserItem item);int ArtworkDuration(IplBrowserItem item,int frame);bool ArtworkBounces(IplBrowserItem item); diff --git a/VideoMode/IplNativeCards.cs b/VideoMode/IplNativeCards.cs index bec905c..8c8bb1b 100644 --- a/VideoMode/IplNativeCards.cs +++ b/VideoMode/IplNativeCards.cs @@ -1,7 +1,7 @@ using System; using Dolphin.Storage; using Dolphin.Timing; -internal sealed class IplNativeCards : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplAnimatedArtwork,IIplBrowserCatalog +internal sealed class IplNativeCards : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplCardOperationNotifications,IIplAnimatedArtwork,IIplBrowserCatalog { #if IPL_MEMORY_CARD_SERVICES private readonly MemoryCardManager?[] cards=new MemoryCardManager?[2]; @@ -31,6 +31,9 @@ public IplItemKind CatalogKind(int index){ public int Total {get;private set;} public bool Busy {get;private set;} public int Progress {get;private set;} + public int OperationVersion {get;private set;} + public IplCardOperationResult OperationResult {get;private set;} + private void ReportOperation(IplCardOperationResult result){OperationResult=result;OperationVersion++;} public bool LaunchRequested=>false; public string Status {get;private set;}="Insert a memory card."; public string SlotCaption(int index){ @@ -72,8 +75,9 @@ private void Probe(int index) public void Tick() { #if IPL_MEMORY_CARD_SERVICES - if(transfer!=null){try{transfer.Step();Progress=transfer.Progress;Status="Transfer: "+Progress.ToString()+"%";if(transfer.Complete){transfer.Dispose();transfer=null;Busy=false;Status="Transfer verified and complete.";RefreshCards();}} - catch(Exception e){bool completed=transfer?.Complete==true;try{transfer?.Dispose();}catch(Exception){}transfer=null;Busy=false;if(completed)Progress=100;Status=completed?"Transfer completed. Refresh the slots before another action.":e.Message??"Card transfer failed. Check both slots.";RefreshCards();}return;} + if(transfer!=null){bool completed=false; + try{transfer.Step();Progress=transfer.Progress;Status="Transfer: "+Progress.ToString()+"%";if(transfer.Complete){completed=true;transfer.Dispose();transfer=null;Busy=false;Status="Transfer verified and complete.";RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);}} + catch(Exception e){completed|=transfer?.Complete==true;try{transfer?.Dispose();}catch(Exception){}transfer=null;Busy=false;if(completed)Progress=100;Status=completed?"Transfer completed. Refresh the slots before another action.":e.Message??"Card transfer failed. Check both slots.";ReportOperation(completed?IplCardOperationResult.Succeeded:IplCardOperationResult.Failed);RefreshCards();}return;} if(Clock.Timestamp>=nextProbe){nextProbe=Clock.Timestamp+500000;Probe(0);Probe(1);UpdateTotal();} #endif } @@ -146,19 +150,23 @@ public void Open(IplBrowserItem item,VideoModeSettings video){} public void Execute(IplCardAction action,IplBrowserItem? item) { #if IPL_MEMORY_CARD_SERVICES + OperationResult=IplCardOperationResult.None; + try{ var card=cards[slot];if(card==null)throw new InvalidOperationException("Reinsert the card and select again."); - if(action==IplCardAction.Format){if(!format[slot])throw new InvalidOperationException("Card status changed. Select it again.");try{card.Format();Status="Memory card formatted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();return;} + if(action==IplCardAction.Format){if(!format[slot])throw new InvalidOperationException("Card status changed. Select it again.");try{card.Format();Status="Memory card formatted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);return;} if(item==null)throw new InvalidOperationException("Select a saved file again.");var save=Resolve(item); - if(action==IplCardAction.Delete){try{card.Delete(save);Status="Saved file deleted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();return;} + if(action==IplCardAction.Delete){try{card.Delete(save);Status="Saved file deleted.";}catch(MemoryCardCommittedException e){Status=e.Message??"Operation completed. Refresh the slot before another action.";}RefreshCards();ReportOperation(IplCardOperationResult.Succeeded);return;} Probe(1-slot);var destination=cards[1-slot];if(destination==null||!ready[1-slot])throw new InvalidOperationException("The other slot needs a ready memory card."); transfer=card.BeginCopy(save,destination,action==IplCardAction.Move);Busy=true;Progress=0;Status="Copying and verifying the saved file..."; + }catch{ReportOperation(IplCardOperationResult.Failed);throw;} #else + ReportOperation(IplCardOperationResult.Failed); throw new InvalidOperationException("Card services are unavailable in this build."); #endif } public void Cancel(){ #if IPL_MEMORY_CARD_SERVICES - if(transfer!=null){try{transfer.Cancel();Status="Transfer cancelled. Source kept.";}finally{transfer=null;Busy=false;RefreshCards();}} + if(transfer!=null){try{transfer.Cancel();Status="Transfer cancelled. Source kept.";ReportOperation(IplCardOperationResult.Cancelled);}catch{ReportOperation(IplCardOperationResult.Failed);throw;}finally{transfer=null;Busy=false;RefreshCards();}} #endif } public void Dispose(){ diff --git a/VideoMode/IplPreferences.cs b/VideoMode/IplPreferences.cs index e2214b7..6d46e15 100644 --- a/VideoMode/IplPreferences.cs +++ b/VideoMode/IplPreferences.cs @@ -7,11 +7,12 @@ internal readonly struct IplPreferences internal readonly int MotionLevel; internal bool ReducedMotion=>MotionLevel==0; internal readonly int GlassBlur; - internal IplPreferences(VideoModeSettings video,int sound,bool reducedMotion,int glassBlur=0) - :this(video,sound,reducedMotion?0:1,glassBlur){} - internal IplPreferences(VideoModeSettings video,int sound,int motionLevel,int glassBlur=0) - {Video=video;Sound=sound;MotionLevel=motionLevel;GlassBlur=glassBlur;} - internal bool Valid=>Video.Resolution>=0&&Video.Resolution<=2&&Video.Scan>=0&&Video.Scan<=2&&Sound>=0&&Sound<=1&&MotionLevel>=0&&MotionLevel<=2&&GlassBlur>=0&&GlassBlur<=3; + internal readonly int UiSoundVolume; + internal IplPreferences(VideoModeSettings video,int sound,bool reducedMotion,int glassBlur=0,int uiSoundVolume=2) + :this(video,sound,reducedMotion?0:1,glassBlur,uiSoundVolume){} + internal IplPreferences(VideoModeSettings video,int sound,int motionLevel,int glassBlur=0,int uiSoundVolume=2) + {Video=video;Sound=sound;MotionLevel=motionLevel;GlassBlur=glassBlur;UiSoundVolume=uiSoundVolume;} + internal bool Valid=>Video.Resolution>=0&&Video.Resolution<=2&&Video.Scan>=0&&Video.Scan<=2&&Sound>=0&&Sound<=1&&MotionLevel>=0&&MotionLevel<=2&&GlassBlur>=0&&GlassBlur<=3&&UiSoundVolume>=0&&UiSoundVolume<=3; } internal interface IIplPreferencesStore { @@ -35,24 +36,27 @@ private static uint Crc(byte[] data) internal static byte[] Encode(IplPreferences value,uint generation) { if(!value.Valid)throw new ArgumentException("Invalid preferences."); - var data=new byte[Size];data[0]=73;data[1]=80;data[2]=76;data[3]=83;data[4]=3; + var data=new byte[Size];data[0]=73;data[1]=80;data[2]=76;data[3]=83;data[4]=4; data[5]=(byte)value.Video.Resolution;data[6]=(byte)value.Video.Scan;data[7]=(byte)((value.Video.Widescreen?1:0)|(value.ReducedMotion?2:0));data[8]=(byte)value.Sound; - data[9]=(byte)value.GlassBlur;data[10]=(byte)value.MotionLevel; + data[9]=(byte)value.GlassBlur;data[10]=(byte)value.MotionLevel;data[11]=(byte)value.UiSoundVolume; Write(data,12,generation);Write(data,28,Crc(data));return data; } internal static bool Decode(byte[]? data,out IplPreferences value,out uint generation) { value=default;generation=0; - if(data==null||data.Length!=Size||data[0]!=73||data[1]!=80||data[2]!=76||data[3]!=83||(data[4]!=1&&data[4]!=2&&data[4]!=3)||data[7]>3||Read(data,28)!=Crc(data))return false; + if(data==null||data.Length!=Size||data[0]!=73||data[1]!=80||data[2]!=76||data[3]!=83||data[4]<1||data[4]>4||data[7]>3||Read(data,28)!=Crc(data))return false; // Version one reserved this byte. Accept old slots as blur Off, without // weakening their reserved-byte validation or their generation/CRC rules. if(data[4]==1&&data[9]!=0)return false; if(data[4]<3&&data[10]!=0)return false; - int motion=data[4]==3?data[10]:(data[7]&2)!=0?0:1; - // Version three retains the legacy Disabled bit as a consistency check. - if(data[4]==3&&((data[7]&2)!=0)!=(motion==0))return false; - for(int i=11;i<28;i++)if((i<12||i>15)&&data[i]!=0)return false; - var decoded=new IplPreferences(new VideoModeSettings(data[5],data[6],(data[7]&1)!=0),data[8],motion,data[4]==1?0:data[9]); + // Older records reserved the volume byte; preserve strict validation + // while adopting Medium for their first startup with menu audio. + if(data[4]<4&&data[11]!=0)return false; + int motion=data[4]>=3?data[10]:(data[7]&2)!=0?0:1; + // Version three and newer retain the legacy Disabled consistency bit. + if(data[4]>=3&&((data[7]&2)!=0)!=(motion==0))return false; + for(int i=16;i<28;i++)if(data[i]!=0)return false; + var decoded=new IplPreferences(new VideoModeSettings(data[5],data[6],(data[7]&1)!=0),data[8],motion,data[4]==1?0:data[9],data[4]<4?2:data[11]); if(!decoded.Valid)return false; value=decoded;generation=Read(data,12);return true; } diff --git a/VideoMode/IplRenderer.cs b/VideoMode/IplRenderer.cs index 491f8a5..e505540 100644 --- a/VideoMode/IplRenderer.cs +++ b/VideoMode/IplRenderer.cs @@ -452,7 +452,11 @@ private void Detail(IplShell s) if(status=="UNSUPPORTED MODE OR CABLE"||status=="NOT ENOUGH MEMORY FOR MODE")Banner(status=="UNSUPPORTED MODE OR CABLE"?"Unsupported mode or cable.":"Not enough memory for this mode.",true); else Center("Left/Right selects. Up/Down changes. A previews. B returns to the cube.",320,350,13,White); } - else if(s.Face==ShellFace.Options)Center("A confirms. B discards changes and returns to the cube.",320,351,14,0xc4c9deff); + else if(s.Face==ShellFace.Options) + { + if(s.Row==3&&s.UiAudioStatus.Length>0)Center(s.UiAudioStatus,320,322,13,0xc4c9deff); + Center("A confirms. B discards changes and returns to the cube.",320,351,14,0xc4c9deff); + } } private void Selectors(IplShell s,bool preparing) { diff --git a/VideoMode/IplShell.cs b/VideoMode/IplShell.cs index 3201e64..827f557 100644 --- a/VideoMode/IplShell.cs +++ b/VideoMode/IplShell.cs @@ -20,9 +20,13 @@ internal sealed class IplShell internal string MotionName=>MotionLevel==0?"Disabled":MotionLevel==1?"Subtle":"Pronounced"; private int glassBlur,glassBlurDraft; internal int GlassBlur=>Editing&&Face==ShellFace.Options&&Row==2?glassBlurDraft:glassBlur; + private int uiSoundVolume=2,uiSoundVolumeDraft=2; + internal int UiSoundVolume=>Editing&&Face==ShellFace.Options&&Row==3?uiSoundVolumeDraft:uiSoundVolume; + internal string UiAudioStatus {get;set;}=""; private readonly IIplPreferencesStore? preferences; private readonly IIplConsoleCalendar? calendar; private readonly IIplConsoleSound? soundService; + private readonly IIplUiSoundSink? uiSounds; internal bool SoundAvailable {get;private set;}=true; private float calendarWait; internal bool CalendarAvailable {get;private set;}=true; @@ -38,12 +42,12 @@ internal sealed class IplShell private bool returnLatch; private bool repeatStick; private bool fieldEditing,returnAfterRevert; - internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null,IIplConsoleCalendar? calendar=null,bool restoreVideo=true,IIplConsoleSound? soundService=null,IplBrowser? browser=null) + internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null,IIplConsoleCalendar? calendar=null,bool restoreVideo=true,IIplConsoleSound? soundService=null,IplBrowser? browser=null,IIplUiSoundSink? uiSounds=null) { - Browser=browser;this.preferences=preferences;this.calendar=calendar;this.soundService=soundService;bool loaded=false; + Browser=browser;this.preferences=preferences;this.calendar=calendar;this.soundService=soundService;this.uiSounds=uiSounds;bool loaded=false; if(preferences!=null&&preferences.Load(out var saved)){ loaded=true; - Sound=saved.Sound;motion=motionDraft=saved.MotionLevel;glassBlur=saved.GlassBlur; + Sound=saved.Sound;motion=motionDraft=saved.MotionLevel;glassBlur=saved.GlassBlur;uiSoundVolume=uiSoundVolumeDraft=saved.UiSoundVolume; if(restoreVideo){ try{output.Configure(saved.Video);SystemStatus="Saved settings restored.";} catch(InvalidOperationException){SystemStatus="Saved video unavailable. Using boot output.";} @@ -59,7 +63,7 @@ internal IplShell(IVideoModeOutput output,IIplPreferencesStore? preferences=null private bool SavePreferences() { if(preferences==null)return true; - bool saved=preferences.Save(new IplPreferences(Video.Applied,Sound,motion,glassBlur));SystemStatus=preferences.Status;return saved; + bool saved=preferences.Save(new IplPreferences(Video.Applied,Sound,motion,glassBlur,uiSoundVolume));SystemStatus=preferences.Status;return saved; } private bool RefreshCalendar() { @@ -69,23 +73,30 @@ private bool RefreshCalendar() return CalendarAvailable; } internal void SafeMode() - {if(Page==ShellPage.Browser)Browser?.Dispose();Video.SafeMode();if(!Video.Pending&&Video.Status=="SAFE MODE - 640X480I 4:3"){TurnTo(ShellFace.Video);SavePreferences();}else SystemStatus=Video.Status;} + { + if(Page==ShellPage.Browser)Browser?.Dispose(); + Video.SafeMode(); + if(!Video.Pending&&Video.Status=="SAFE MODE - 640X480I 4:3"){ + TurnTo(ShellFace.Video,false);Cue(SavePreferences()?IplUiSound.ConfirmEdit:IplUiSound.CancelEdit); + }else{SystemStatus=Video.Status;Cue(IplUiSound.CancelEdit);} + } + private void Cue(IplUiSound cue)=>uiSounds?.Emit(cue); #if IPL_HISTORICAL_RENDERER // The measured historical adapter retains only three panel rows. internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 3 : Face==ShellFace.Memory?2:1; #else - internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 3 : Face==ShellFace.Memory?2:1; + internal int Rows => Face == ShellFace.Video ? 3 : Face == ShellFace.Calendar ? 2 : Face == ShellFace.Options ? 4 : Face==ShellFace.Memory?2:1; #endif internal bool Editing => Page == ShellPage.Detail&&fieldEditing; internal bool FlatMenu => Page == ShellPage.Detail&&!fieldEditing; internal string Title => Face == ShellFace.Video ? "Video" : Face == ShellFace.Calendar ? "Calendar" : Face == ShellFace.Options ? "Options" : Face == ShellFace.Memory ? "Storage" : "Game Play"; - internal string Label(int row) => Face == ShellFace.Video ? (row == 0 ? "Output" : row == 1 ? "Scan" : "Aspect Ratio") : Face == ShellFace.Calendar ? (row == 0 ? "Time" : "Date") : Face == ShellFace.Options ? (row == 0 ? "Sound" : row == 1 ? "Motion" : "Glass Blur") : Face == ShellFace.Memory ? (row==0?"Memory Card":"SD Storage") : "Game Library"; + internal string Label(int row) => Face == ShellFace.Video ? (row == 0 ? "Output" : row == 1 ? "Scan" : "Aspect Ratio") : Face == ShellFace.Calendar ? (row == 0 ? "Time" : "Date") : Face == ShellFace.Options ? (row == 0 ? "Sound" : row == 1 ? "Motion" : row == 2 ? "Glass Blur" : "UI Sounds") : Face == ShellFace.Memory ? (row==0?"Memory Card":"SD Storage") : "Game Library"; internal string Value(int row) { var v = Editing ? Video.Selected : Video.Applied; if (Face == ShellFace.Video) return row == 0 ? (v.Resolution == 0 ? "240" : v.Resolution == 2 ? "576" : "480") : row == 1 ? (v.Scan == 0 ? "Auto" : v.Scan == 1 ? "Interlaced" : "Progressive") : v.Widescreen ? "16:9" : "4:3"; if (Face == ShellFace.Calendar) return !CalendarAvailable?"Unavailable":row == 0 ? Two(Editing ? hour : Hour) + ":" + Two(Editing ? minute : Minute) : Two(Editing ? day : Day) + "/" + Two(Editing ? month : Month) + "/" + (Editing ? year : Year).ToString(); - if (Face == ShellFace.Options) return row == 0 ? !SoundAvailable?"Unavailable":((Editing ? sound : Sound) == 0 ? "Stereo" : "Mono") : row == 1 ? MotionName : GlassBlur==0?"Off":GlassBlur==1?"Low":GlassBlur==2?"Medium":"High"; + if (Face == ShellFace.Options) return row == 0 ? !SoundAvailable?"Unavailable":((Editing ? sound : Sound) == 0 ? "Stereo" : "Mono") : row == 1 ? MotionName : row == 2 ? GlassBlur==0?"Off":GlassBlur==1?"Low":GlassBlur==2?"Medium":"High" : UiSoundVolume==0?"Off":UiSoundVolume==1?"Low":UiSoundVolume==2?"Medium":"Full"; return "Open"; } internal string Segment(int part) => Row == 0 ? Two(part == 0 ? hour : minute) : part == 0 ? Two(day) : part == 1 ? Two(month) : year.ToString(); @@ -106,11 +117,18 @@ internal void Tick(float dt) float step=dt/.18f; focus[i]=target>focus[i]?Math.Min(target,focus[i]+step):Math.Max(target,focus[i]-step); } - bool pending = Video.Pending; Video.Tick(dt); + bool pending = Video.Pending; + // Revert retries and a B-initiated rollback do not replay the timeout cue. + bool timeout=pending&&!Video.Reverting&&Video.Remaining<=dt; + Video.Tick(dt); + if(timeout)Cue(IplUiSound.CancelEdit); if(pending&&!Video.Pending){if(returnAfterRevert)ReturnToCube();else ShowFlatMenu();} } internal void TurnTo(ShellFace face) + {TurnTo(face,true);} + private void TurnTo(ShellFace face,bool playSound) { + bool changed=Face!=face; fieldEditing=false;returnAfterRevert=false; PreviousFace = Face; Face = face; Row = Part = 0; for(int i=0;i0)SystemStatus=status;} + else Cue(Editing?IplUiSound.CancelEdit:IplUiSound.Back); ReturnToCube(); } } diff --git a/VideoMode/IplStorageBrowser.cs b/VideoMode/IplStorageBrowser.cs index 6cca98b..4bb8cea 100644 --- a/VideoMode/IplStorageBrowser.cs +++ b/VideoMode/IplStorageBrowser.cs @@ -3,7 +3,7 @@ using Dolphin.Storage; using Store=Dolphin.Storage.Storage; using FsFile=Dolphin.IO.File; -internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplAnimatedArtwork,IIplBrowserPageSize,IIplBrowserCatalog +internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,IIplBrowserNotifications,IIplCardOperationNotifications,IIplAnimatedArtwork,IIplBrowserPageSize,IIplBrowserCatalog { private readonly StorageDevice fileDevice; private IIplBrowserSource? active;private int pageSize=6; @@ -11,6 +11,8 @@ internal sealed class IplStorageBrowser : IIplBrowserSource,IIplCardOperations,I internal IplStorageBrowser(StorageDevice fileDevice=StorageDevice.GcLoader){this.fileDevice=fileDevice;} public int Total=>active?.Total??0;public bool Busy=>active?.Busy??false;public string Status=>active?.Status??"";public bool LaunchRequested=>active?.LaunchRequested??false; public int Version=>(active as IIplBrowserNotifications)?.Version??0; + public int OperationVersion=>(active as IIplCardOperationNotifications)?.OperationVersion??0; + public IplCardOperationResult OperationResult=>(active as IIplCardOperationNotifications)?.OperationResult??IplCardOperationResult.None; public void Begin(IplBrowserKind kind,string path,int slot,bool rescan){active?.Dispose();active=kind==IplBrowserKind.Games?new IplNativeBrowser():kind==IplBrowserKind.Sd?new IplNativeFiles(fileDevice):new IplNativeCards();(active as IIplBrowserPageSize)?.SetPageSize(pageSize);active.Begin(kind,path,slot,rescan);} public int ReadCatalogPage(int start,int maximum)=>(active as IIplBrowserCatalog)?.ReadCatalogPage(start,maximum)??0; public IplBrowserItem? CatalogItem(int index)=>(active as IIplBrowserCatalog)?.CatalogItem(index); diff --git a/VideoMode/IplUiAudio.cs b/VideoMode/IplUiAudio.cs new file mode 100644 index 0000000..f469f0c --- /dev/null +++ b/VideoMode/IplUiAudio.cs @@ -0,0 +1,176 @@ +#if IPL_SYSTEM_AUDIO +using System; +using System.Threading; +using System.Threading.Tasks; +using Dolphin.Audio; +using Dolphin.Diagnostics; +using Dolphin.System; +using Dolphin.Timing; + +internal enum IplUiAudioState { NotStarted,Loading,Ready,Unavailable,Closed } + +// Extract/pre-render the console's qualified finite effects once, off the app +// executor. The rendering loop only publishes completed work and uses resident +// native clips. No firmware bytes or prepared audio are written to storage. +internal sealed class IplUiAudio +{ + private const int EffectCount=10,PreparationBudget=1024*1024,BankBudget=6*1024*1024; + private readonly CancellationTokenSource cancellation=new CancellationTokenSource(); + private readonly IplUiAudioPolicy policy=new IplUiAudioPolicy(); + private readonly SoundChannel?[] voices=new SoundChannel?[IplUiAudioPolicy.VoiceLimit]; + private Task? loading; + private Task? closing; + private Sound?[]? clips; + private bool started,stopping; + private int volumeLevel=2; + internal IplUiAudioState State {get;private set;} + internal string Status {get;private set;}="System sounds not initialized."; + internal int LoadedCount {get;private set;} + internal int NativeBytes {get;private set;} + internal int PlayedCount {get;private set;} + internal int ThrottledCount {get;private set;} + internal int StolenCount {get;private set;} + internal int DroppedCount {get;private set;} + + private sealed class Prepared + { + internal readonly Sound?[]? Clips; + internal readonly int Count,Bytes; + internal readonly string Failure; + internal Prepared(Sound?[]? clips,int count,int bytes,string failure) + {Clips=clips;Count=count;Bytes=bytes;Failure=failure;} + } + internal void Start() + { + if(started||stopping)return; + started=true;State=IplUiAudioState.Loading;Status="Loading system sounds..."; + try {Audio.Initialize();loading=Task.Run(Prepare);} + catch(Exception error){Unavailable(error.Message);} + } + private Prepared Prepare() + { + var sounds=new Sound?[EffectCount];bool transferred=false; + try + { + var token=cancellation.Token;int count=0,bytes=0; + using(var image=SystemFirmware.ReadConsole(token)) + using(var catalog=image.CreateCatalog(FirmwareCatalogOptions.IncludeMenuAudio,token)) + { + for(int i=0;iBankBudget-bytes) + throw new InvalidOperationException("System menu sound bank exceeds its retained memory limit."); + bytes+=retained;count++; + } + } + cancellation.Token.ThrowIfCancellationRequested(); + if(count==0)return new Prepared(null,0,0,"No qualified system menu sound profile."); + var result=new Prepared(sounds,count,bytes,"");transferred=true;return result; + } + catch(OperationCanceledException){return new Prepared(null,0,0,"System sound preparation canceled.");} + catch(Exception error){return new Prepared(null,0,0,error.Message);} + finally {if(!transferred)DisposeClips(sounds);} + } + internal void Tick(int level) + { + float volume=IplUiAudioPolicy.VolumeForLevel(level); + if(stopping)return; + if(State==IplUiAudioState.NotStarted) + { + volumeLevel=level; + if(level==0)return; + Start(); + } + if(State==IplUiAudioState.Unavailable){volumeLevel=level;return;} + if(loading!=null&&loading.IsCompleted) + { + var pending=loading;loading=null; + try + { + var prepared=pending.Result; + clips=prepared.Clips;LoadedCount=prepared.Count;NativeBytes=prepared.Bytes; + if(clips==null)Unavailable(prepared.Failure); + else + { + State=IplUiAudioState.Ready;Status="System sounds ready."; + SetVolume(volume);DebugOverlay.WriteLine("UI AUDIO READY clips "+LoadedCount+" native bytes "+NativeBytes); + } + } + catch(Exception error){Unavailable(error.Message);} + } + ReapVoices(); + if(volumeLevel!=level)SetVolume(volume); + volumeLevel=level; + } + private void Unavailable(string detail) + { + State=IplUiAudioState.Unavailable;Status="System sounds unavailable."; + DebugOverlay.WriteLine("UI AUDIO UNAVAILABLE "+detail); + } + private void ReapVoices() + { + for(int i=0;i3)throw new ArgumentOutOfRangeException(nameof(level)); + return level==0?0:level==1?.25f:level==2?.5f:1; + } + internal static int EffectIndex(IplUiSound sound) + { + return sound switch + { + IplUiSound.TurnSide=>0,IplUiSound.TurnCenter=>1, + IplUiSound.EnterMenu=>2,IplUiSound.Back=>3, + IplUiSound.CancelEdit=>4,IplUiSound.ConfirmEdit=>5, + IplUiSound.ChangeValue=>6,IplUiSound.ChangeField=>7, + IplUiSound.ChangeRow=>8,IplUiSound.OpenEditor=>9,_=>-1 + }; + } + internal static bool IsNavigation(IplUiSound sound) + =>sound==IplUiSound.TurnSide||sound==IplUiSound.TurnCenter|| + sound==IplUiSound.ChangeValue||sound==IplUiSound.ChangeField||sound==IplUiSound.ChangeRow; + internal bool Accept(IplUiSound sound,long microseconds) + { + if(EffectIndex(sound)<0)return false; + if(!IsNavigation(sound))return true; + if(navigationPlayed&µseconds>=lastNavigation&& + microseconds-lastNavigation=Priority(pending))pending=cue; + } + internal IplUiSound Consume(){var cue=pending;pending=IplUiSound.None;return cue;} + private static int Priority(IplUiSound cue)=>cue==IplUiSound.None?0: + cue==IplUiSound.CancelEdit?6:cue==IplUiSound.ConfirmEdit?5: + cue==IplUiSound.Back?4:cue==IplUiSound.OpenEditor||cue==IplUiSound.EnterMenu?3: + cue==IplUiSound.TurnSide||cue==IplUiSound.TurnCenter?2:1; +} diff --git a/VideoMode/Program.cs b/VideoMode/Program.cs index 308f274..f3798be 100644 --- a/VideoMode/Program.cs +++ b/VideoMode/Program.cs @@ -42,6 +42,18 @@ private static async System.Threading.Tasks.Task Main() return result; } private static int RunFrames() +#elif IPL_SYSTEM_AUDIO + private static async System.Threading.Tasks.Task Main() + { + var audio=new IplUiAudio();int result=0;System.Exception? failure=null; + try{result=RunFrames(audio);}catch(System.Exception error){failure=error;} + // Await cancellation outside finally: the GameCube AOT subset does not + // implement ExceptionDispatchInfo used by an awaited finally block. + await audio.Close(); + if(failure!=null)throw failure; + return result; + } + private static int RunFrames(IplUiAudio uiAudio) #else private static int Main() #endif @@ -83,21 +95,26 @@ private static int Main() #else const bool hardwareAntialiasing=false; #endif +#if IPL_SYSTEM_AUDIO + var uiSounds=new IplUiSoundQueue(); +#else + IIplUiSoundSink? uiSounds=null; +#endif #if IPL_STORAGE_REVIEW - using var browser=new IplBrowser(new IplStorageBrowser(Dolphin.Storage.StorageDevice.DvdDrive)); + using var browser=new IplBrowser(new IplStorageBrowser(Dolphin.Storage.StorageDevice.DvdDrive),uiSounds); #elif IPL_BROWSER_REVIEW - using var browser=new IplBrowser(new IplBrowserFixture()); + using var browser=new IplBrowser(new IplBrowserFixture(),uiSounds); #else - using var browser=new IplBrowser(new IplStorageBrowser()); + using var browser=new IplBrowser(new IplStorageBrowser(),uiSounds); #endif var output=new VideoModeOutput(device,hardwareAntialiasing); #if IPL_MOCKUP_REVIEW || IPL_VISUAL_REVIEW || IPL_PERFORMANCE_REVIEW || IPL_VIDEO_MODE_REVIEW || IPL_HARDWARE_RUNNER var shell=new IplShell(output); #elif IPL_STORAGE_REVIEW - var shell=new IplShell(output,browser:browser); + var shell=new IplShell(output,browser:browser,uiSounds:uiSounds); #else Controller.Update();bool restoreVideo=!Controller.GetState(0).X.IsHeld; - var shell=new IplShell(output,new IplPreferencesStore(),new IplConsoleCalendar(),restoreVideo,new IplConsoleSound(),browser); + var shell=new IplShell(output,new IplPreferencesStore(),new IplConsoleCalendar(),restoreVideo,new IplConsoleSound(),browser,uiSounds); #endif #if IPL_VIDEO_MODE_REVIEW var scanReview=new VideoModeScanReview(shell,output,reviewResolution); @@ -187,6 +204,14 @@ private static int Main() if(stick){x=pad.Stick.X>.55f?1:pad.Stick.X<-.55f?-1:0;y=pad.Stick.Y>.55f?1:pad.Stick.Y<-.55f?-1:0;} shell.Direction(x,y,dt,stick); } +#endif +#if IPL_SYSTEM_AUDIO + // Resource preparation is background-only. Publish completed clips + // and dispatch one semantic cue between GX frames, never in a draw. + uiAudio.Tick(shell.UiSoundVolume); + uiAudio.Play(uiSounds.Consume()); + shell.UiAudioStatus=uiAudio.State==IplUiAudioState.Loading?"Loading menu sounds...": + uiAudio.State==IplUiAudioState.Unavailable?"Menu sounds unavailable on this system.":""; #endif if(browser.LaunchRequested)return 0; IplPerformanceOverlay.BeginFrame(); diff --git a/VideoMode/README.md b/VideoMode/README.md index 44bd083..62fecbf 100644 --- a/VideoMode/README.md +++ b/VideoMode/README.md @@ -27,6 +27,13 @@ angular sway and vertical float with a smooth secondary wiggle. Disabled keeps the cube stationary and retains the reduced-motion behavior for UI animation. Open the setting with A, change its draft with Up/Down, then A saves or B discards. +Options > UI Sounds offers Off, Low, Medium (default) and Full, independently +of the existing Sound > Stereo/Mono console preference. Volume changes preview +while editing; A commits them and B restores the previous level. Navigation, +menus, value changes, confirmations and cancellations use the console's original +IPL effects through published SDK `0.1.0-preview.347.1`. Up to six effects can +overlap; there is no startup jingle. See the [action index and audio limits](Design/ui-sounds/action-index.md). + The native frost is a real backdrop operation: after the cube and icon are drawn, GX captures the EFB at half resolution. A dense 9×9 Gaussian-weighted kernel samples that snapshot inside projected rounded row meshes, then tint and crisp @@ -75,7 +82,7 @@ on first use and retained until shutdown (about 361 KiB native memory). - Outside memory-card/SD browsers, Z toggles a live performance overlay (off at startup). Outside browsers, Y records the bounded frame-time sample independently. - Storage opens Memory Card and SD Storage; R is a shortcut to the same top side. -- Options contains Sound, Motion and Glass Blur. +- Options contains Sound, Motion, Glass Blur and UI Sounds. Video settings use real `GraphicsDevice.ConfigureDisplay` calls between frames. A starts a 12-second hardware preview; A again keeps it, B or the timeout reverts @@ -102,22 +109,23 @@ to include the fix in the DOL. [Native scan-mode evidence, package provenance an limitations](Design/scan-mode-review.md) cover both resolution sequences and retain the earlier failure for comparison. Physical console/cable/display testing remains open. -Confirmed video settings, sound, Motion and Glass Blur are stored in alternating +Confirmed video settings, sound, Motion, Glass Blur and UI Sounds are stored in alternating 32-byte checksummed records on GC Loader SD (`videomode/settings-a.bin` and `settings-b.bin`). Startup loads the newest valid record and applies its video mode, with a boot-output fallback on unsupported modes. Hold X during startup to bypass saved video. Preview drafts and reverted modes are never saved. A read-only or missing card is reported without changing another storage device. Version-one -and version-two settings remain readable: Full maps to Subtle and Reduced maps -to Disabled. Version one also loads Glass Blur as Off. Confirmed writes use -version three. Motion and blur drafts are not saved. +through version-three settings remain readable: Full maps to Subtle and Reduced +maps to Disabled; earlier settings adopt Medium UI sound volume. Version one +also loads Glass Blur as Off. Confirmed writes use version four. Motion, blur +and UI sound volume drafts are not saved. Source builds with `IplConsoleServices=true` use the SDK console-services APIs to read the real local console calendar and write IPL SRAM clock bias and sound. A confirms Time/Date; B discards. Time edits preserve the current date/seconds; date edits preserve the current time. The clock refreshes once a second and uses -an independent monotonic animation timer. Builds using the older published SDK -show these services as unavailable. [Native validation and limits](Design/console-settings/README.md). +an independent monotonic animation timer. Builds without console services show +them as unavailable. [Native validation and limits](Design/console-settings/README.md). Storage replaces the former top Game Play entry. The earlier GC Loader library and Swiss launch integration remains in the source as an internal path; @@ -136,6 +144,15 @@ using the compiler and native support in the SDK version pinned in `global.json` Hardware/TV acceptance and visual comparison inside Dolphin remain separate from successful compilation; do not treat host visual proofs as emulator captures. +Normal builds enable system menu audio. Preparation reads the console IPL once +in the background and retains the resulting native clips; it does not read +firmware or synthesize effects on each input. Without a supported IPL the demo +remains usable and the UI Sounds editor reports audio unavailable. In Dolphin, +an original IPL must already be configured for successful playback. No ROM or +prepared PCM is bundled. `-p:IplSystemAudio=false` excludes this backend; +deterministic visual/performance and hardware-runner builds default to that +setting to keep background preparation outside their measurement windows. + To inspect deterministic visual proofs from the exact shared C# scene renderer: ```sh diff --git a/VideoMode/VideoMode.csproj b/VideoMode/VideoMode.csproj index 34d0f1a..f05080f 100644 --- a/VideoMode/VideoMode.csproj +++ b/VideoMode/VideoMode.csproj @@ -22,6 +22,11 @@ $(DefineConstants);IPL_BATCHED_BLUR net8.0 enable + + false + true + $(DefineConstants);IPL_SYSTEM_AUDIO Options 480i 6281 @@ -65,6 +70,7 @@ + - 0.1.0-preview.343.1 + 0.1.0-preview.347.1 diff --git a/tests/VideoModeAudioTests/FakeSdk.cs b/tests/VideoModeAudioTests/FakeSdk.cs new file mode 100644 index 0000000..a1654bd --- /dev/null +++ b/tests/VideoModeAudioTests/FakeSdk.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Threading; + +// Resource/control fakes for the SDK surface used by IplUiAudio. These verify +// application ownership and scheduling, not firmware decoding, sound fidelity, +// DSP behavior or physical performance. The managed sample build checks the +// same calls against the actual published SDK. +internal static class AudioFixture +{ + internal static int Initialized,Read,ImagesDisposed,CatalogsDisposed,Created,Disposed,FailAt=-1; + internal static bool Unsupported; + internal static ManualResetEventSlim Entered=new(false),Continue=new(true); + internal static List Voices=new(); + internal static List DisposalOrder=new(); + internal static void Reset() + { + Initialized=Read=ImagesDisposed=CatalogsDisposed=Created=Disposed=0;FailAt=-1;Unsupported=false; + Entered.Dispose();Continue.Dispose();Entered=new(false);Continue=new(true); + Voices=new();DisposalOrder=new();Dolphin.Timing.Clock.Timestamp=0; + } +} + +namespace Dolphin.Audio +{ + public static class Audio + { + public static void Initialize(){AudioFixture.Initialized++;} + } + public sealed class Sound : IDisposable + { + private bool disposed; + private readonly int id; + public int NativeBytes=>120000; + public float Volume {get;set;}=1; + internal Sound(int id){this.id=id;AudioFixture.Created++;} + public SoundChannel Play(bool loop=false) + { + if(disposed)throw new ObjectDisposedException(nameof(Sound)); + var voice=new SoundChannel {Volume=Volume};AudioFixture.Voices.Add(voice);return voice; + } + public void Dispose() + { + if(disposed)return; + disposed=true;AudioFixture.Disposed++;AudioFixture.DisposalOrder.Add("clip"+id); + } + } + public sealed class SoundChannel : IDisposable + { + private float volume=1; + public bool IsPlaying {get;private set;}=true; + internal bool FinishOnVolumeWrite; + public float Volume + { + get=>volume; + set + { + if(FinishOnVolumeWrite){IsPlaying=false;throw new InvalidOperationException("Playback has finished.");} + volume=value; + } + } + public void Dispose() + { + if(!IsPlaying)return; + IsPlaying=false;AudioFixture.DisposalOrder.Add("voice"); + } + } +} + +namespace Dolphin.Diagnostics +{ + public static class DebugOverlay {public static void WriteLine(string text){}} +} +namespace Dolphin.Timing +{ + public static class Clock {public static long Timestamp {get;set;}} +} +namespace Dolphin.System +{ + [Flags] + public enum FirmwareCatalogOptions {None=0,IncludeMenuAudio=1} + public enum SystemMenuSound + {TurnSide,TurnCenter,Select,Back,OptionCancel,OptionConfirm,OptionMove1,OptionMove2,OptionMove3,OptionSelect,PressStart} + public sealed class SystemMenuSoundInfo {} + public sealed class FirmwareImage : IDisposable + { + public FirmwareCatalog CreateCatalog(FirmwareCatalogOptions options,CancellationToken token)=>new(); + public void Dispose(){AudioFixture.ImagesDisposed++;} + } + public sealed class FirmwareCatalog : IDisposable + { + public bool TryGetMenuSoundInfo(SystemMenuSound id,out SystemMenuSoundInfo? info) + {info=AudioFixture.Unsupported?null:new();return info!=null;} + public void Dispose(){AudioFixture.CatalogsDisposed++;} + } + public static class SystemFirmware + { + public static FirmwareImage ReadConsole(CancellationToken token=default) + { + AudioFixture.Read++;AudioFixture.Entered.Set();AudioFixture.Continue.Wait(token); + token.ThrowIfCancellationRequested();return new(); + } + } + public static class SystemResources + { + public static Dolphin.Audio.Sound CreateMenuSound(FirmwareCatalog catalog,SystemMenuSound id, + CancellationToken token=default,int nativeBudgetBytes=8*1024*1024) + { + token.ThrowIfCancellationRequested(); + if((int)id==AudioFixture.FailAt)throw new IOException("Partial preparation failure."); + return new((int)id); + } + } +} diff --git a/tests/VideoModeAudioTests/Program.cs b/tests/VideoModeAudioTests/Program.cs new file mode 100644 index 0000000..132e122 --- /dev/null +++ b/tests/VideoModeAudioTests/Program.cs @@ -0,0 +1,72 @@ +using System; +using System.Threading.Tasks; + +internal static class Program +{ + private static void Check(bool pass,string why) + {if(!pass)throw new Exception("UI audio lifecycle: "+why);} + private static async Task WaitForPreparation(IplUiAudio audio) + { + for(int i=0;i<2000&&audio.State==IplUiAudioState.Loading;i++) + {audio.Tick(2);await Task.Delay(1);} + Check(audio.State!=IplUiAudioState.Loading,"background preparation must complete"); + } + private static async Task ResidentPlayback() + { + AudioFixture.Reset();var audio=new IplUiAudio(); + audio.Tick(0);audio.Tick(0); + Check(AudioFixture.Initialized==0&&AudioFixture.Read==0,"saved Off skips SDK initialization and ROM reads"); + audio.Play(IplUiSound.EnterMenu);audio.Tick(2);await WaitForPreparation(audio); + Check(audio.State==IplUiAudioState.Ready&&audio.LoadedCount==10&&AudioFixture.Created==10,"supported clips load once"); + Check(AudioFixture.ImagesDisposed==1&&AudioFixture.CatalogsDisposed==1&&AudioFixture.Disposed==0, + "resident clips outlive the temporary image and catalog"); + Check(audio.PlayedCount==0,"inputs before readiness are discarded"); + for(int i=0;i<8;i++)audio.Play(IplUiSound.ConfirmEdit); + Check(audio.PlayedCount==8&&audio.StolenCount==2,"overlap is bounded to six voices"); + Check(!AudioFixture.Voices[0].IsPlaying&&!AudioFixture.Voices[1].IsPlaying,"oldest voices are stolen first"); + for(int i=2;i<8;i++)Check(AudioFixture.Voices[i].IsPlaying,"newer effect tails remain active"); + audio.Tick(1); + foreach(var voice in AudioFixture.Voices)if(voice.IsPlaying)Check(voice.Volume==.25f,"volume updates active tails"); + AudioFixture.Voices[7].FinishOnVolumeWrite=true;audio.Tick(2); + Check(!AudioFixture.Voices[7].IsPlaying,"DSP completion during a volume update is harmless"); + audio.Tick(0); + foreach(var voice in AudioFixture.Voices)Check(!voice.IsPlaying,"Off immediately stops every tail"); + audio.Tick(2);Check(AudioFixture.Created==10&&AudioFixture.Read==1,"unmuting reuses resident clips"); + Dolphin.Timing.Clock.Timestamp=1000;audio.Play(IplUiSound.ChangeRow);audio.Play(IplUiSound.ChangeValue); + Check(audio.PlayedCount==9&&audio.ThrottledCount==1,"rapid movement uses the monotonic rate limiter"); + Dolphin.Timing.Clock.Timestamp=41000;audio.Play(IplUiSound.ChangeField); + Check(audio.PlayedCount==10,"movement resumes at forty milliseconds"); + var close=audio.Close();Check(ReferenceEquals(close,audio.Close()),"Close returns the same completion task");await close; + Check(AudioFixture.Disposed==10&&audio.State==IplUiAudioState.Closed,"shutdown releases all clips"); + int lastVoice=AudioFixture.DisposalOrder.LastIndexOf("voice"); + int firstClip=AudioFixture.DisposalOrder.FindIndex(s=>s.StartsWith("clip")); + Check(lastVoice + + Exe + net8.0 + enable + $(DefineConstants);IPL_SYSTEM_AUDIO + + + + + + + diff --git a/tests/VideoModeMenuTests/IplBrowserSoundTests.cs b/tests/VideoModeMenuTests/IplBrowserSoundTests.cs new file mode 100644 index 0000000..efa4594 --- /dev/null +++ b/tests/VideoModeMenuTests/IplBrowserSoundTests.cs @@ -0,0 +1,195 @@ +using System; +using System.Collections.Generic; + +internal static class IplBrowserSoundTests +{ + private sealed class Sounds : IIplUiSoundSink + { + internal readonly List Cues=new List(); + public void Emit(IplUiSound cue){Cues.Add(cue);} + internal void Expect(string action,params IplUiSound[] expected) + { + Check(Cues.Count==expected.Length,action+": unexpected cue count "+Cues.Count); + for(int i=0;i(); + internal bool FailBegin,FailRead,FailDescribe,FailOpen,FailExecute,ReturnFailedExecute,ScanOnBegin,FinishScan,Probe,CopyAllowed=true,MoveAllowed=true; + internal int Begins,Executions,Cancellations; + internal IplCardOperationResult FinishOperation; + public int Total=>Entries.Length; + public bool Busy {get;private set;} + public string Status=>"Fixture storage"; + public bool LaunchRequested {get;private set;} + public int Version {get;private set;} + public int OperationVersion {get;private set;} + public IplCardOperationResult OperationResult {get;private set;} + public int Progress=>Busy?50:100; + public void Begin(IplBrowserKind kind,string path,int slot,bool rescan) + {Begins++;if(FailBegin)throw new InvalidOperationException("Unavailable fixture");Busy=ScanOnBegin;Version++;} + public void Tick() + { + if(FinishOperation!=IplCardOperationResult.None){Busy=false;OperationResult=FinishOperation;FinishOperation=IplCardOperationResult.None;OperationVersion++;Version++;} + if(FinishScan){Busy=false;FinishScan=false;Version++;} + if(Probe){Probe=false;Version++;} + } + public int ReadPage(int start,IplBrowserItem?[] output) + { + if(FailRead)throw new InvalidOperationException("Read failed"); + int count=Math.Min(output.Length,Total-start); + for(int i=0;inull; + public string Describe(IplBrowserItem item){if(FailDescribe)throw new InvalidOperationException("Info failed");return item.Title;} + public void Open(IplBrowserItem item,VideoModeSettings video){if(FailOpen)throw new InvalidOperationException("Launch failed");LaunchRequested=true;} + public string SlotCaption(int slot)=>slot==0?"Slot A":"Slot B"; + public bool CanCopy(IplBrowserItem item)=>CopyAllowed; + public bool CanMove(IplBrowserItem item)=>MoveAllowed; + public void Execute(IplCardAction action,IplBrowserItem? item) + { + if(FailExecute){OperationResult=IplCardOperationResult.Failed;OperationVersion++;throw new InvalidOperationException("Operation failed");} + if(ReturnFailedExecute){OperationResult=IplCardOperationResult.Failed;OperationVersion++;return;} + Executions++;OperationResult=IplCardOperationResult.None; + if(action==IplCardAction.Copy||action==IplCardAction.Move)Busy=true; + else{OperationResult=IplCardOperationResult.Succeeded;OperationVersion++;Version++;} + } + public void Cancel(){Cancellations++;Busy=false;OperationResult=IplCardOperationResult.Cancelled;OperationVersion++;Version++;} + public void Dispose(){Busy=false;} + } + + private static readonly VideoModeSettings Video=new VideoModeSettings(1,1,false); + private static void Check(bool value,string message){if(!value)throw new Exception(message);} + private static IplBrowserItem Item(IplItemKind kind,string path="fixture")=>new IplBrowserItem(path,path,"Fixture",kind); + private static void BeginCopy(IplBrowser browser,Sounds sounds) + { + browser.Confirm(Video);sounds.Expect("Open save actions",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Choose Copy",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Open copy confirmation",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Choose confirm",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Accept copy",IplUiSound.ConfirmEdit); + Check(browser.Busy,"Copy is asynchronous"); + } + + internal static void Run() + { + var sounds=new Sounds(); + var files=new Source{Entries=new[]{Item(IplItemKind.Directory,"folder"),Item(IplItemKind.File,"notes.txt"),Item(IplItemKind.Dol,"app.dol")}}; + using(var browser=new IplBrowser(files,sounds)){ + browser.Open(IplBrowserKind.Sd);sounds.Expect("Open SD",IplUiSound.EnterMenu); + browser.Direction(0,0);sounds.Expect("Neutral input"); + browser.Direction(1,0);sounds.Expect("Select file",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Open file info",IplUiSound.EnterMenu); + browser.Direction(1,0);sounds.Expect("Info ignores navigation"); + browser.Confirm(Video);sounds.Expect("Close file info",IplUiSound.Back); + browser.Direction(1,0);sounds.Expect("Select executable",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Open launch prompt",IplUiSound.OpenEditor); + browser.Direction(-1,0);sounds.Expect("Already on Cancel"); + browser.Confirm(Video);sounds.Expect("Cancel launch",IplUiSound.CancelEdit); + browser.Confirm(Video);sounds.Expect("Reopen launch",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Choose launch",IplUiSound.ChangeRow); + browser.Direction(1,0);sounds.Expect("Already on launch"); + files.FailOpen=true;browser.Confirm(Video);sounds.Expect("Failed launch",IplUiSound.CancelEdit); + files.FailOpen=false;browser.Confirm(Video);sounds.Expect("Launch accepted",IplUiSound.ConfirmEdit); + Check(files.LaunchRequested,"Accepted executable launches"); + browser.Exit();sounds.Expect("Exit browser",IplUiSound.Back); + browser.Exit();sounds.Expect("Already exited"); + } + + files=new Source{Entries=new[]{Item(IplItemKind.Directory,"folder"),Item(IplItemKind.File,"notes.txt")}}; + using(var browser=new IplBrowser(files,sounds)){ + browser.Open(IplBrowserKind.Sd);sounds.Expect("Open folders",IplUiSound.EnterMenu); + browser.Confirm(Video);sounds.Expect("Open folder once",IplUiSound.EnterMenu); + Check(browser.Path=="folder","Folder entered"); + browser.ParentDirectory();sounds.Expect("Parent once",IplUiSound.Back); + browser.ParentDirectory();sounds.Expect("Root has no parent"); + browser.ToggleView();sounds.Expect("Grid/list view",IplUiSound.ChangeField); + browser.Refresh();sounds.Expect("Manual refresh",IplUiSound.ChangeField); + files.ScanOnBegin=true;browser.Refresh();sounds.Expect("Begin scan",IplUiSound.ChangeField); + browser.Direction(1,0);browser.Confirm(Video);browser.ToggleView();browser.ParentDirectory();sounds.Expect("Busy scan ignores input"); + int begins=files.Begins;browser.Refresh();sounds.Expect("Explicit rescan while scanning",IplUiSound.ChangeField);Check(files.Begins==begins+1,"Manual rescan retains restart behavior"); + files.ScanOnBegin=false;files.FinishScan=true;browser.Tick(.016f);sounds.Expect("Background scan completes silently"); + files.Probe=true;browser.Tick(.016f);sounds.Expect("Background revision is silent"); + files.FailRead=true;browser.Refresh();sounds.Expect("Failed refresh",IplUiSound.CancelEdit); + files.FailRead=false;browser.Refresh();sounds.Expect("Refresh recovery",IplUiSound.ChangeField); + browser.Direction(1,0);sounds.Expect("Select info",IplUiSound.ChangeRow); + files.FailDescribe=true;browser.Confirm(Video);sounds.Expect("Failed info",IplUiSound.CancelEdit); + browser.Direction(-1,0);sounds.Expect("New navigation after failure",IplUiSound.ChangeRow); + } + + using(var browser=new IplBrowser(new Source(),sounds)){ + browser.Open(IplBrowserKind.Sd);sounds.Expect("Open empty storage",IplUiSound.EnterMenu); + browser.Direction(1,0);browser.Confirm(Video);sounds.Expect("Empty selection"); + } + using(var browser=new IplBrowser(new Source{Entries=new[]{Item(IplItemKind.File)}},sounds)){ + browser.Open(IplBrowserKind.Sd);sounds.Expect("Single item storage",IplUiSound.EnterMenu); + browser.Direction(1,0);browser.Direction(0,-1);sounds.Expect("Single-item wrap stays silent"); + } + using(var browser=new IplBrowser(new Source{FailBegin=true},sounds)){ + browser.Open(IplBrowserKind.Sd);sounds.Expect("Failed storage open has no success cue",IplUiSound.CancelEdit); + } + + var cards=new Source{Entries=new[]{Item(IplItemKind.Save)}}; + using(var browser=new IplBrowser(cards,sounds)){ + browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open card",IplUiSound.EnterMenu); + int begins=cards.Begins;browser.SwitchSlot(0);sounds.Expect("Same slot stays silent");Check(cards.Begins==begins+1,"Existing same-slot reload remains available"); + browser.SwitchSlot(1);sounds.Expect("Switch card slot",IplUiSound.ChangeField); + browser.SwitchSlot(0);sounds.Expect("Switch card back",IplUiSound.ChangeField); + cards.Probe=true;browser.Tick(.016f);sounds.Expect("Card insertion/probe is not completion"); + browser.Confirm(Video);sounds.Expect("Save actions",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Copy row",IplUiSound.ChangeRow); + cards.CopyAllowed=false;browser.Confirm(Video);sounds.Expect("Protected save",IplUiSound.CancelEdit);Check(cards.Executions==0,"Protected save never executes"); + cards.CopyAllowed=true;browser.Confirm(Video);sounds.Expect("Copy prompt",IplUiSound.OpenEditor); + browser.Direction(-1,0);sounds.Expect("Default confirmation stays selected"); + browser.Confirm(Video);sounds.Expect("Cancel copy proposal",IplUiSound.CancelEdit); + + BeginCopy(browser,sounds); + browser.Direction(1,0);browser.Confirm(Video);browser.Refresh();browser.ToggleView();browser.SwitchSlot(1);sounds.Expect("Busy transfer input is silent"); + cards.FinishOperation=IplCardOperationResult.Succeeded;browser.Tick(.016f);sounds.Expect("Verified transfer completion",IplUiSound.ConfirmEdit); + browser.Tick(.016f);cards.Probe=true;browser.Tick(.016f);sounds.Expect("Completion is one-shot, independent of probe revisions"); + BeginCopy(browser,sounds); + cards.FinishOperation=IplCardOperationResult.Failed;browser.Tick(.016f);sounds.Expect("Failed transfer",IplUiSound.CancelEdit); + browser.Tick(.016f);sounds.Expect("Failure is one-shot"); + BeginCopy(browser,sounds); + browser.Exit();sounds.Expect("B cancels active transfer",IplUiSound.CancelEdit);Check(cards.Cancellations==1,"Transfer cancellation occurs once"); + browser.Tick(.016f);sounds.Expect("No completion after leaving browser"); + } + + cards=new Source{Entries=new[]{Item(IplItemKind.Save)}}; + using(var browser=new IplBrowser(cards,sounds)){ + browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open deletion fixture",IplUiSound.EnterMenu); + browser.Confirm(Video);sounds.Expect("Delete actions",IplUiSound.OpenEditor); + browser.Direction(-1,0);sounds.Expect("Select Delete",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Delete confirmation",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Confirm delete choice",IplUiSound.ChangeRow); + cards.FailExecute=true;browser.Confirm(Video);sounds.Expect("Rejected delete",IplUiSound.CancelEdit);Check(cards.Executions==0,"Failed operation has no success cue"); + cards.FailExecute=false;browser.Confirm(Video);sounds.Expect("Reopen delete actions",IplUiSound.OpenEditor); + browser.Direction(-1,0);sounds.Expect("Select Delete again",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Reopen delete prompt",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Confirm delete again",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Synchronous delete completes once",IplUiSound.ConfirmEdit); + browser.Tick(.016f);sounds.Expect("No duplicate synchronous result"); + cards.Entries=new[]{Item(IplItemKind.CardFormat)};cards.Probe=true;browser.Tick(.016f);sounds.Expect("Format availability is silent"); + browser.Confirm(Video);sounds.Expect("First format prompt",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("First format choice",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("First format guard accepted",IplUiSound.ConfirmEdit); + Check(browser.FormatStage==2&&cards.Executions==1,"First format guard does not modify card"); + browser.Confirm(Video);sounds.Expect("Cancel second format guard",IplUiSound.CancelEdit); + Check(cards.Executions==1,"Cancellation leaves card unchanged"); + } + cards=new Source{Entries=new[]{Item(IplItemKind.Save)},ReturnFailedExecute=true}; + using(var browser=new IplBrowser(cards,sounds)){ + browser.Open(IplBrowserKind.MemoryCards);sounds.Expect("Open returned-error fixture",IplUiSound.EnterMenu); + browser.Confirm(Video);sounds.Expect("Returned-error actions",IplUiSound.OpenEditor); + browser.Direction(-1,0);sounds.Expect("Returned-error Delete",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Returned-error confirmation",IplUiSound.OpenEditor); + browser.Direction(1,0);sounds.Expect("Returned-error choice",IplUiSound.ChangeRow); + browser.Confirm(Video);sounds.Expect("Typed failure overrides success without exception",IplUiSound.CancelEdit); + browser.Tick(.016f);sounds.Expect("Returned error is one-shot"); + } + Console.WriteLine("Browser sounds: real selection/open/change/confirm/cancel cues, no-op and background silence, async terminal outcomes and one-shot completion passed."); + } +} diff --git a/tests/VideoModeMenuTests/IplDetailLayoutTests.cs b/tests/VideoModeMenuTests/IplDetailLayoutTests.cs index 5dcadc0..0f7d296 100644 --- a/tests/VideoModeMenuTests/IplDetailLayoutTests.cs +++ b/tests/VideoModeMenuTests/IplDetailLayoutTests.cs @@ -37,7 +37,7 @@ internal static void Run() for(int row=0;row<3;row++){Bounds(video);Move(video,1,0);} var date=Open(ShellFace.Calendar,1);for(int part=0;part<3;part++){Bounds(date);Move(date,1,0);} var time=Open(ShellFace.Calendar);for(int part=0;part<2;part++){Bounds(time);Move(time,1,0);} - foreach(int row in new[]{0,1,2}){ + foreach(int row in new[]{0,1,2,3}){ var options=Open(ShellFace.Options,row); if(row==1){Move(options,0,1);Check(options.Value(1)=="Pronounced","The full Motion choice must fit the shared value editor.");} Bounds(options); diff --git a/tests/VideoModeMenuTests/IplMenuLayoutTests.cs b/tests/VideoModeMenuTests/IplMenuLayoutTests.cs index 993d47c..2caa1b5 100644 --- a/tests/VideoModeMenuTests/IplMenuLayoutTests.cs +++ b/tests/VideoModeMenuTests/IplMenuLayoutTests.cs @@ -35,7 +35,7 @@ private static void Fits(Ink ink,Bounds panel,string context) } private static void Cube() { - foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?3:2);selected++){ + foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?4:2);selected++){ var shell=new IplShell(new FakeOutput(),new Preferences());shell.TurnTo(face);shell.Tick(1);shell.Time=0;shell.Row=selected; var panels=new List();var ink=new List(); var canvas=new IplProof{ @@ -63,9 +63,9 @@ private static void Flat() { var rowShape=typeof(IplRenderer).GetMethod("FlatRowShape",BindingFlags.Instance|BindingFlags.NonPublic)!; var cacheStyle=typeof(IplRenderer).GetMethod("FlatStyle",BindingFlags.Static|BindingFlags.NonPublic)!; - int settingsStyle=(int)cacheStyle.Invoke(null,new object[]{3})!,storageStyle=(int)cacheStyle.Invoke(null,new object[]{2})!; + int settingsStyle=(int)cacheStyle.Invoke(null,new object[]{4})!,storageStyle=(int)cacheStyle.Invoke(null,new object[]{2})!; Check(settingsStyle!=storageStyle&&settingsStyle>1&&settingsStyle!=5&&storageStyle>1&&storageStyle!=5,"Settings/storage menu caches must not alias each other, game or file-browser cards"); - foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?3:2);selected++){ + foreach(var face in new[]{ShellFace.Options,ShellFace.Memory})for(int selected=0;selected<(face==ShellFace.Options?4:2);selected++){ var shell=new IplShell(new FakeOutput(),new Preferences());shell.TurnTo(face);shell.Tick(1);shell.Confirm();shell.Row=selected;shell.Tick(.18f); var ink=new List();var canvas=new IplProof{TextSink=(text,x,y,size)=>ink.Add(new Ink(text,x,y,size))}; var renderer=new IplRenderer(canvas);renderer.Prepare(shell);renderer.Present(shell); @@ -83,5 +83,5 @@ private static void Flat() } } } - internal static void Run(){Cube();Flat();Console.WriteLine("Settings/storage layout: three Options rows, two top-Storage actions, selected text growth, wall/footer margins and cache isolation passed.");} + internal static void Run(){Cube();Flat();Console.WriteLine("Settings/storage layout: four Options rows, two top-Storage actions, selected text growth, wall/footer margins and cache isolation passed.");} } diff --git a/tests/VideoModeMenuTests/IplPreferencesTests.cs b/tests/VideoModeMenuTests/IplPreferencesTests.cs index d2ce491..b9650cc 100644 --- a/tests/VideoModeMenuTests/IplPreferencesTests.cs +++ b/tests/VideoModeMenuTests/IplPreferencesTests.cs @@ -35,7 +35,7 @@ private static void Motion() foreach(int level in new[]{0,1,2}){ var value=new IplPreferences(new VideoModeSettings(1,2,true),1,level,3); byte[] bytes=IplPreferencesCodec.Encode(value,23); - Check(bytes[4]==3&&bytes[10]==level&&IplPreferencesCodec.Decode(bytes,out var actual,out uint generation)&&actual.MotionLevel==level&&actual.GlassBlur==3&&generation==23,"Every motion level survives version-three storage"); + Check(bytes[4]==4&&bytes[10]==level&&IplPreferencesCodec.Decode(bytes,out var actual,out uint generation)&&actual.MotionLevel==level&&actual.GlassBlur==3&&generation==23,"Every motion level survives current storage"); } foreach(int invalid in new[]{-1,3}){ var value=new IplPreferences(new VideoModeSettings(1,1,false),0,invalid); @@ -56,7 +56,7 @@ private static void Motion() "49504c5303010201010203001700000000000000000000000000000045dc1ee2", // invalid level3 "49504c53030102030102010017000000000000000000000000000000bbb60e03", // contradictory Disabled bit "49504c53030102010102010117000000000000000000000000000000857c6c60", // reserved byte11 - "49504c53040102010102010017000000000000000000000000000000b180d2d6"}) + "49504c53050102010103010017000000000000000000000000000000ce651580"}) Check(!IplPreferencesCodec.Decode(Convert.FromHexString(invalid),out _,out _),"Valid CRC cannot admit invalid motion fields, flags or versions"); var store=new Store{Value=new IplPreferences(new VideoModeSettings(1,1,false),0,1,2)}; @@ -94,18 +94,19 @@ private static void GlassBlur() byte[] legacy=Convert.FromHexString("49504c530101020301000000ffffffff000000000000000000000000e5b84949"); Check(IplPreferencesCodec.Decode(legacy,out var migrated,out uint oldGeneration)&&migrated.GlassBlur==0&&migrated.Video.Widescreen&&migrated.Sound==1&&migrated.ReducedMotion&&oldGeneration==uint.MaxValue,"Old settings load unchanged with blur Off"); byte[] rewritten=IplPreferencesCodec.Encode(migrated,0); - Check(rewritten[4]==3&&IplPreferencesCodec.Decode(rewritten,out var next,out uint nextGeneration)&&next.GlassBlur==0&&next.MotionLevel==0&&nextGeneration==0,"Saving legacy settings migrates to the new format across generation wrap"); + Check(rewritten[4]==4&&IplPreferencesCodec.Decode(rewritten,out var next,out uint nextGeneration)&&next.GlassBlur==0&&next.MotionLevel==0&&nextGeneration==0,"Saving legacy settings migrates to the new format across generation wrap"); foreach(string fixture in new[]{ "49504c530101020301010000ffffffff000000000000000000000000bd38ab9e", // v1 reserved byte "49504c530201020301040000ffffffff0000000000000000000000002f1c3ff8", // v2 blur outside 0..3 "49504c530201020301010100ffffffff0000000000000000000000007427e729", // v2 reserved byte - "49504c53040102010102010017000000000000000000000000000000b180d2d6"}) // unknown version + "49504c53050102010103010017000000000000000000000000000000ce651580"}) // unknown version Check(!IplPreferencesCodec.Decode(Convert.FromHexString(fixture),out _,out _),"Valid CRC does not permit invalid fields or unsupported versions"); var store=new Store{Value=new IplPreferences(new VideoModeSettings(1,1,false),0,false,2)}; var s=new IplShell(new FakeOutput(),store);Check(s.GlassBlur==2,"Startup restores glass blur"); - Face(s,ShellFace.Options);Check(s.Rows==3&&s.Label(2)=="Glass Blur"&&s.Value(2)=="Medium","Options retains blur after Storage moves to its own side"); - Move(s,0,1);s.Tick(.18f);Check(s.Row==2&&s.Focus(2)==1,"Final row wraps and gains focus"); + Face(s,ShellFace.Options);Check(s.Rows==4&&s.Label(2)=="Glass Blur"&&s.Value(2)=="Medium"&&s.Label(3)=="UI Sounds","Options retains blur alongside the independent UI sound control"); + Move(s,0,1);s.Tick(.18f);Check(s.Row==3&&s.Focus(3)==1,"Final row wraps and gains focus"); + Move(s,0,1);s.Tick(.18f);Check(s.Row==2&&s.Focus(2)==1,"Blur remains independently selectable"); s.Confirm();Move(s,0,1);Check(s.Editing&&s.GlassBlur==3&&s.Value(2)=="High"&&store.Saves==0,"Blur edits preview without saving"); Move(s,1,0);Check(s.GlassBlur==3,"Horizontal input does not change blur"); Move(s,0,1);Check(s.GlassBlur==0&&s.Value(2)=="Off","Blur increments wrap to Off"); diff --git a/tests/VideoModeMenuTests/IplShellSoundTests.cs b/tests/VideoModeMenuTests/IplShellSoundTests.cs new file mode 100644 index 0000000..abef153 --- /dev/null +++ b/tests/VideoModeMenuTests/IplShellSoundTests.cs @@ -0,0 +1,186 @@ +using System; +using System.Collections.Generic; + +internal static class IplShellSoundTests +{ + private sealed class Sink : IIplUiSoundSink + { + internal readonly List Cues=new List(); + public void Emit(IplUiSound cue)=>Cues.Add(cue); + internal void Expect(params IplUiSound[] expected) + { + Check(Cues.Count==expected.Length,"Expected "+string.Join(",",expected)+"; received "+string.Join(",",Cues)); + for(int i=0;iWritable?"Saved":"Write protected"; + public bool Load(out IplPreferences value){value=Value;return Present;} + public bool Save(IplPreferences value){Saves++;if(Writable)Value=value;return Writable;} + } + private sealed class Clock : IIplConsoleCalendar + { + internal IplCalendarValue Value=new IplCalendarValue(2026,11,14,12,34,56); + internal bool Readable=true,Writable=true; + public string Status=>"Clock unavailable"; + public bool Read(out IplCalendarValue value){value=Value;return Readable;} + public bool Write(IplCalendarValue value){if(Writable)Value=value;return Writable;} + } + private sealed class ConsoleSound : IIplConsoleSound + { + internal bool Readable=true,Writable=true; + internal int Mode; + public string Status=>"Console sound unavailable"; + public bool Read(out int mode){mode=Mode;return Readable;} + public bool Write(int mode){if(Writable)Mode=mode;return Writable;} + } + private sealed class Files : IIplBrowserSource + { + internal bool IsBusy; + public int Total=>2; + public bool Busy=>IsBusy; + public string Status=>"Ready"; + public bool LaunchRequested=>false; + public void Begin(IplBrowserKind kind,string path,int slot,bool rescan){} + public void Tick(){} + public int ReadPage(int start,IplBrowserItem?[] output){for(int i=0;inull; + public string Describe(IplBrowserItem item)=>item.Title; + public void Open(IplBrowserItem item,VideoModeSettings video){} + public void Dispose(){IsBusy=false;} + } + private static void Check(bool value,string message){if(!value)throw new Exception(message);} + private static void Move(IplShell shell,int x,int y,bool stick=false) + {shell.Direction(0,0,0,stick);shell.Direction(x,y,.016f,stick);} + private static void Open(IplShell shell,ShellFace face) + {shell.TurnTo(face);shell.Tick(1);shell.Confirm();} + + private static void Navigation() + { + var sink=new Sink();var shell=new IplShell(new FakeOutput(),uiSounds:sink); + shell.Tick(3);shell.Confirm();shell.Back();Move(shell,0,0);sink.Expect(); + Move(shell,-1,0,true);sink.Expect(IplUiSound.TurnSide); + shell.Confirm();shell.Back();Move(shell,0,1);sink.Expect(); // Turn animation locks all actions. + shell.Tick(1);Move(shell,0,1);sink.Expect(); // Cube side previews are read-only. + shell.Confirm();sink.Expect(IplUiSound.EnterMenu); + Move(shell,1,0);Move(shell,0,0);sink.Expect(); + Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow); + shell.Direction(0,-1,.016f);sink.Expect(); // A held direction waits before its next accepted repeat. + shell.Direction(0,-1,.4f);sink.Expect(IplUiSound.ChangeRow); + shell.Back();sink.Expect(IplUiSound.Back); + shell.Back();sink.Expect(IplUiSound.TurnCenter); + shell.Back();shell.Confirm();sink.Expect(); + shell.Tick(1);Move(shell,1,0,true);shell.Tick(1);sink.Expect(IplUiSound.TurnSide); + Move(shell,-1,0,true);sink.Expect(IplUiSound.TurnCenter); + shell.Direction(-1,0,1,true);sink.Expect(); // Reverse-stick latch never crosses another side. + shell.Tick(1);Move(shell,0,1,true);shell.Tick(1);sink.Expect(IplUiSound.TurnSide); + shell.TurnTo(ShellFace.Memory);sink.Expect(); // No false turn cue when the face is unchanged. + shell.Tick(1);shell.Confirm();sink.Expect(IplUiSound.EnterMenu); + shell.Confirm();sink.Expect(IplUiSound.CancelEdit); // Unavailable browser service. + } + + private static void Volume() + { + var sink=new Sink();var store=new Store();var shell=new IplShell(new FakeOutput(),store,uiSounds:sink); + sink.Expect();Check(shell.UiSoundVolume==2,"Menu audio defaults to Medium without a startup cue"); + Open(shell,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu); + Check(shell.Rows==4&&shell.Label(3)=="UI Sounds"&&shell.Value(3)=="Medium","UI audio is a separate fourth option"); + Move(shell,0,1);sink.Expect(IplUiSound.ChangeRow);Check(shell.Row==3,"Options wraps to its fourth row"); + shell.Confirm();sink.Expect(IplUiSound.OpenEditor); + Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue); + Check(shell.UiSoundVolume==3&&shell.Value(3)=="Full"&&store.Saves==0&&store.Value.UiSoundVolume==2,"Full volume previews without saving"); + Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);Check(shell.UiSoundVolume==0&&shell.Value(3)=="Off","Volume wraps to Off"); + Move(shell,0,-1);sink.Expect(IplUiSound.ChangeValue);Check(shell.UiSoundVolume==3,"Volume wraps back to Full"); + Move(shell,1,0);sink.Expect(); + shell.Back();sink.Expect(IplUiSound.CancelEdit); + Check(shell.UiSoundVolume==2&&store.Saves==0&&shell.Page==ShellPage.Face,"B cancels the volume draft"); + Open(shell,ShellFace.Options);sink.Expect(IplUiSound.EnterMenu);shell.Row=3;shell.Confirm();sink.Expect(IplUiSound.OpenEditor); + Move(shell,0,-1);sink.Expect(IplUiSound.ChangeValue);shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit); + Check(shell.FlatMenu&&shell.UiSoundVolume==1&&store.Value.UiSoundVolume==1&&store.Value.GlassBlur==2&&store.Value.MotionLevel==1,"Confirm persists only the accepted volume alongside other settings"); + var restored=new IplShell(new FakeOutput(),store,uiSounds:sink);sink.Expect();Check(restored.UiSoundVolume==1,"Saved UI volume restores silently"); + shell.Row=1;shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit); + Check(store.Value.MotionLevel==2&&store.Value.UiSoundVolume==1,"Saving another option retains UI audio volume"); + shell.Row=3;shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue); + store.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit); + Check(shell.FlatMenu&&shell.UiSoundVolume==2&&store.Value.UiSoundVolume==1&&shell.SystemStatus=="Write protected","Persistence failure retains session volume and reports failure"); + var absent=new IplShell(new FakeOutput(),new Store{Present=false},uiSounds:sink);sink.Expect();Check(absent.UiSoundVolume==2,"Missing preferences use Medium"); + } + + private static void CalendarAndSound() + { + var sink=new Sink();var clock=new Clock();var console=new ConsoleSound(); + var shell=new IplShell(new FakeOutput(),calendar:clock,soundService:console,uiSounds:sink); + sink.Expect();Open(shell,ShellFace.Calendar);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu); + shell.Confirm();sink.Expect(IplUiSound.OpenEditor); + Move(shell,1,0);sink.Expect(IplUiSound.ChangeField);Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue); + shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(clock.Value.Minute==35,"Accepted clock changes still write real time"); + Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.OpenEditor); + Move(shell,1,0);Move(shell,1,0);Move(shell,0,-1);sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue); + clock.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);Check(shell.Editing,"Clock write failure stays editable"); + clock.Readable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit);shell.Back();sink.Expect(IplUiSound.CancelEdit); + Open(shell,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);shell.Confirm();sink.Expect(IplUiSound.OpenEditor); + Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);console.Writable=false;shell.Confirm();sink.Expect(IplUiSound.CancelEdit); + Check(shell.Editing&&shell.Sound==0,"Console SRAM failure preserves current sound and edit"); + console.Writable=true;shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(shell.Sound==1,"Console SRAM success commits sound"); + var missingClock=new IplShell(new FakeOutput(),calendar:new Clock{Readable=false},uiSounds:sink); + sink.Expect();Open(missingClock,ShellFace.Calendar);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);missingClock.Confirm();sink.Expect(IplUiSound.CancelEdit); + var missingSound=new IplShell(new FakeOutput(),soundService:new ConsoleSound{Readable=false},uiSounds:sink); + sink.Expect();Open(missingSound,ShellFace.Options);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu);missingSound.Confirm();sink.Expect(IplUiSound.CancelEdit); + } + + private static void VideoPreview() + { + var sink=new Sink();var output=new FakeOutput();var shell=new IplShell(output,uiSounds:sink); + Open(shell,ShellFace.Video);sink.Expect(IplUiSound.TurnSide,IplUiSound.OpenEditor); + Move(shell,1,0);Move(shell,1,0);sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField); + Move(shell,0,1);sink.Expect(IplUiSound.ChangeValue);shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit); + Check(shell.Video.Pending,"Applying mode starts the unchanged 12-second preview"); + Move(shell,1,0);Move(shell,0,1);sink.Expect();shell.Tick(11);sink.Expect(); + shell.Confirm();sink.Expect(IplUiSound.ConfirmEdit);Check(!shell.Video.Pending&&shell.Editing,"Keep accepts once and returns to grouped editor"); + Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit); + shell.Tick(13);sink.Expect(IplUiSound.CancelEdit);shell.Tick(13);sink.Expect(); + Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeValue,IplUiSound.ConfirmEdit); + output.Failure=1;shell.Tick(13);sink.Expect(IplUiSound.CancelEdit); + Check(shell.Video.Pending&&shell.Video.Reverting,"Failed automatic rollback remains pending"); + shell.Tick(2);shell.Confirm();shell.Back();sink.Expect(); // Repeated rollback/Keep guards are silent. + output.Failure=0;shell.Tick(2);sink.Expect();Check(!shell.Video.Pending&&shell.Page==ShellPage.Face,"Retry completes the requested return without a second cue"); + Open(shell,ShellFace.Video);sink.Expect(IplUiSound.OpenEditor);Move(shell,1,0);Move(shell,1,0);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue,IplUiSound.ConfirmEdit); + shell.Back();sink.Expect(IplUiSound.CancelEdit);Check(shell.Page==ShellPage.Face&&!shell.Video.Pending,"B preview reverts and returns to cube"); + Open(shell,ShellFace.Video);sink.Expect(IplUiSound.OpenEditor);output.Failure=2;shell.Confirm();sink.Expect(IplUiSound.CancelEdit); + Check(shell.Editing&&!shell.Video.Pending,"Failed mode apply keeps the editor"); + } + + private static void SafeModeAndSaveErrors() + { + var sink=new Sink();var output=new FakeOutput();var store=new Store();var shell=new IplShell(output,store,uiSounds:sink); + shell.SafeMode();sink.Expect(IplUiSound.ConfirmEdit);Check(shell.Face==ShellFace.Video&&store.Saves==1,"Safe mode succeeds without an extra turn cue"); + shell.SafeMode();sink.Expect(IplUiSound.ConfirmEdit); // It is still an accepted hardware command. + output.Failure=1;shell.SafeMode();sink.Expect(IplUiSound.CancelEdit); + output.Failure=0;store.Writable=false;shell.SafeMode();sink.Expect(IplUiSound.CancelEdit); + shell.Tick(1);shell.Confirm();sink.Expect(IplUiSound.OpenEditor);Move(shell,1,0);Move(shell,1,0);Move(shell,0,1);shell.Confirm();sink.Expect(IplUiSound.ChangeField,IplUiSound.ChangeField,IplUiSound.ChangeValue,IplUiSound.ConfirmEdit); + shell.Confirm();sink.Expect(IplUiSound.CancelEdit);Check(!shell.Video.Pending&&shell.SystemStatus=="Write protected","Failed Keep persistence reports failure while retaining the applied session mode"); + } + + private static void BrowserDelegation() + { + var sink=new Sink();var files=new Files();var browser=new IplBrowser(files,sink); + var shell=new IplShell(new FakeOutput(),browser:browser,uiSounds:sink); + Open(shell,ShellFace.Memory);sink.Expect(IplUiSound.TurnSide,IplUiSound.EnterMenu); + Move(shell,0,-1);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.EnterMenu); + Move(shell,1,0);sink.Expect(IplUiSound.ChangeRow);shell.Confirm();sink.Expect(IplUiSound.EnterMenu); + shell.Confirm();sink.Expect(IplUiSound.Back); + files.IsBusy=true;Move(shell,1,0);shell.Confirm();shell.Tick(1);sink.Expect(); + shell.Back();sink.Expect(IplUiSound.Back);Check(shell.Page==ShellPage.Face,"Shell delegates browser cues exactly once and preserves browser exit"); + } + + internal static void Run() + { + Navigation();Volume();CalendarAndSound();VideoPreview();SafeModeAndSaveErrors();BrowserDelegation(); + Console.WriteLine("Shell audio: accepted navigation/field/value cues, silent guards/startup, volume draft/save/reload, hardware errors, preview keep/revert/timeout retries and safe mode passed."); + } +} diff --git a/tests/VideoModeMenuTests/IplShellTests.cs b/tests/VideoModeMenuTests/IplShellTests.cs index b236b55..1d93449 100644 --- a/tests/VideoModeMenuTests/IplShellTests.cs +++ b/tests/VideoModeMenuTests/IplShellTests.cs @@ -60,7 +60,7 @@ internal static void Run() var output=new FakeOutput();var s=new IplShell(output); Flat(s,ShellFace.Calendar);s.Hour=23;s.Minute=59;s.Confirm();Move(s,0,1);Check(s.Segment(0)=="00"&&s.Segment(1)=="59","Hour wraps independently");Move(s,1,0);Move(s,0,1);Check(s.Segment(1)=="00","Minute wraps independently");s.Back();Check(s.Page==ShellPage.Face&&s.Face==ShellFace.Calendar&&s.Hour==23&&s.Minute==59,"B discards all time parts and leaves to cube"); Flat(s,ShellFace.Calendar);s.Year=2024;s.Month=2;s.Day=29;s.Row=1;s.Confirm();Move(s,1,0);Move(s,1,0);Move(s,0,1);s.Confirm();Check(s.FlatMenu&&s.Year==2025&&s.Day==28,"Date commit clamps leap day and returns to flat list"); - Side(s,ShellFace.Options);s.Confirm();Check(s.FlatMenu&&s.Rows==3&&s.Label(1)=="Motion"&&s.Label(2)=="Glass Blur","Options contains settings only after Storage moves to the top");s.Row=1;s.Confirm();Check(s.Editing&&!s.ReducedMotion,"Motion opens the common value editor without changing its default");s.Back(); + Side(s,ShellFace.Options);s.Confirm();Check(s.FlatMenu&&s.Rows==4&&s.Label(1)=="Motion"&&s.Label(2)=="Glass Blur"&&s.Label(3)=="UI Sounds","Options contains settings and UI sound volume");s.Row=1;s.Confirm();Check(s.Editing&&!s.ReducedMotion,"Motion opens the common value editor without changing its default");s.Back(); s.TurnTo(ShellFace.Menu);s.Tick(.7f);Move(s,0,1,true);s.Tick(.7f);Check(s.Face==ShellFace.Memory&&s.Title=="Storage"&&s.Rows==2,"Up opens the dedicated Storage side");s.Confirm();Check(s.FlatMenu&&s.Label(0)=="Memory Card"&&s.Label(1)=="SD Storage","Storage opens its two flat storage actions directly");s.Back();Check(s.Page==ShellPage.Face&&s.Face==ShellFace.Memory,"B returns directly from Storage options to the top cube side");Move(s,0,-1,true);Check(s.Page==ShellPage.Cube,"Down reverses the stick entry to the top Storage side"); var focus=new IplShell(new FakeOutput());Side(focus,ShellFace.Options);Check(focus.Focus(0)==0,"Read-only previews have no active row animation");focus.Confirm();focus.Tick(.18f);Check(focus.Focus(0)==1,"Flat list focus eases in");Move(focus,0,-1);focus.Tick(.09f);Check(focus.Focus(0)>0&&focus.Focus(1)>0,"Flat row focus crossfades");focus.Tick(.09f);Check(focus.Focus(0)==0&&focus.Focus(1)==1,"Flat focus finishes its transition"); Console.WriteLine("IPL shell: read-only sides, flat lists/editors, B-to-cube, guarded rollback, calendar parts, Motion and focus passed."); diff --git a/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs b/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs new file mode 100644 index 0000000..da69300 --- /dev/null +++ b/tests/VideoModeMenuTests/IplUiAudioPolicyTests.cs @@ -0,0 +1,35 @@ +using System; + +internal static class IplUiAudioPolicyTests +{ + private static void Check(bool value,string message) + {if(!value)throw new Exception("UI audio policy: "+message);} + internal static void Run() + { + Check(IplUiAudioPolicy.VolumeForLevel(0)==0&&IplUiAudioPolicy.VolumeForLevel(1)==.25f&& + IplUiAudioPolicy.VolumeForLevel(2)==.5f&&IplUiAudioPolicy.VolumeForLevel(3)==1,"saved volume levels"); + var policy=new IplUiAudioPolicy(); + Check(!policy.Accept(IplUiSound.None,0)&&!policy.Accept((IplUiSound)99,0),"unknown actions stay silent"); + Check(policy.Accept(IplUiSound.ChangeRow,1000),"first movement plays immediately"); + Check(!policy.Accept(IplUiSound.ChangeValue,40999),"movement types share a 40 ms limit"); + Check(policy.Accept(IplUiSound.ConfirmEdit,2000)&&policy.Accept(IplUiSound.Back,3000)&& + policy.Accept(IplUiSound.CancelEdit,4000),"confirmation and back bypass movement throttling"); + Check(policy.Accept(IplUiSound.ChangeField,41000),"movement accepted at the exact boundary"); + Check(!policy.Accept(IplUiSound.TurnSide,41000),"simultaneous movement is suppressed"); + Check(policy.Accept(IplUiSound.TurnCenter,81000),"cube return uses the same bounded movement policy"); + Check(policy.Accept(IplUiSound.ChangeRow,1),"a reset test clock does not mute navigation permanently"); + for(int i=0;i + + From 82d6a4f00cbbf34cf394161709ce198a85ab3539 Mon Sep 17 00:00:00 2001 From: leroy ketelaars Date: Sat, 14 Nov 2026 20:47:41 +0000 Subject: [PATCH 2/6] Cover the SDK sound scratch range and add native audio-controls review --- VideoMode/Design/ui-sounds/action-index.md | 10 +++-- VideoMode/IplUiAudio.cs | 5 ++- ci/profile_interactive_rim.py | 6 ++- ci/review_performance_overlay.py | 50 ++++++++++++++++++---- tests/VideoModeAudioTests/FakeSdk.cs | 5 ++- tests/VideoModeAudioTests/Program.cs | 6 ++- 6 files changed, 63 insertions(+), 19 deletions(-) diff --git a/VideoMode/Design/ui-sounds/action-index.md b/VideoMode/Design/ui-sounds/action-index.md index 7cb4561..25fe51f 100644 --- a/VideoMode/Design/ui-sounds/action-index.md +++ b/VideoMode/Design/ui-sounds/action-index.md @@ -25,8 +25,10 @@ typed operation results distinguish completion from ordinary media probes. Formatting retains both explicit confirmations. No separate error or memory-card-specific effect is invented: failures reuse `OptionCancel`. -Blocked/busy input, unchanged selections, redraws, focus animation, clock ticks, +Ignored input, unchanged selections, redraws, focus animation, clock ticks, transfer percentages, artwork loads and background storage probes stay silent. +An explicit refresh on the file grid can restart an in-progress scan and sounds +once; transfer progress panels reject refresh and remain silent. Each accepted held-direction step can sound after the existing 380 ms delay and 130 ms repeat interval. Navigation/value effects share a 40 ms limiter; open, confirm and cancel effects bypass it. Six tracked voices allow overlap, @@ -49,9 +51,9 @@ remain resident. Shutdown cancels pending preparation, awaits it, and disposes voices before clips. No ROM, PCM, replacement tone or recording is bundled or written to storage. -Each effect uses a 1 MiB preparation budget and the retained bank is capped at -6 MiB of native audio memory. These limits are separate from the 2 MiB firmware -image and SDK-managed extraction data. Reaching `FirmwareImage` makes the SDK +Each effect has a 2 MiB native preparation-scratch budget and the retained bank +is capped at 6 MiB of native audio memory. These limits are separate from the +2 MiB firmware image and SDK-managed extraction data. Reaching `FirmwareImage` makes the SDK select an 8 MiB managed heap, replacing this demo's earlier 256 KiB assumption in audio-enabled builds. Playback performs no firmware reads or effect preparation in the frame loop; the SDK creates a small channel wrapper per diff --git a/VideoMode/IplUiAudio.cs b/VideoMode/IplUiAudio.cs index f469f0c..97ba8d4 100644 --- a/VideoMode/IplUiAudio.cs +++ b/VideoMode/IplUiAudio.cs @@ -14,7 +14,10 @@ internal enum IplUiAudioState { NotStarted,Loading,Ready,Unavailable,Closed } // native clips. No firmware bytes or prepared audio are written to storage. internal sealed class IplUiAudio { - private const int EffectCount=10,PreparationBudget=1024*1024,BankBudget=6*1024*1024; + // The SDK's maximum accepted recipe, decoded sources, PCM and delay lines + // require less than 2 MiB of native scratch. This is separate from the + // retained clip-bank limit and the managed firmware-extraction heap. + private const int EffectCount=10,PreparationBudget=2*1024*1024,BankBudget=6*1024*1024; private readonly CancellationTokenSource cancellation=new CancellationTokenSource(); private readonly IplUiAudioPolicy policy=new IplUiAudioPolicy(); private readonly SoundChannel?[] voices=new SoundChannel?[IplUiAudioPolicy.VoiceLimit]; diff --git a/ci/profile_interactive_rim.py b/ci/profile_interactive_rim.py index eba5ece..5472ec6 100644 --- a/ci/profile_interactive_rim.py +++ b/ci/profile_interactive_rim.py @@ -8,7 +8,7 @@ import time -def collect(frames, dol, root, press, release, observation_seconds=30): +def collect(frames, dol, root, press, release, observation_seconds=30, expected_heap_bytes=262144): from profile_videomode import FIELDS symbols = {} table = subprocess.check_output(['nm', '-a', str(dol.with_suffix('.elf'))], text=True) @@ -67,7 +67,9 @@ def collect(frames, dol, root, press, release, observation_seconds=30): if 'HeapPointer' in symbols: heap = integer(symbols['HeapPointer']) start, capacity, used, blocks, free_list, collections = struct.unpack('>6I', frames.read_bytes(heap, 24)) - assert 0 < used <= capacity <= 262144 + # Keep historical profiles strict; callers using the audio-enabled + # runtime explicitly select its larger managed heap. + assert capacity == expected_heap_bytes and 0 < used <= capacity result['managed_heap'] = {'capacity_bytes': capacity, 'arena_used_bytes': used, 'collections': collections, 'scope': 'post-window arena; not peak or live bytes'} (root / 'profile.json').write_text(json.dumps(result, indent=2) + '\n') diff --git a/ci/review_performance_overlay.py b/ci/review_performance_overlay.py index a313024..f7c494f 100644 --- a/ci/review_performance_overlay.py +++ b/ci/review_performance_overlay.py @@ -33,6 +33,8 @@ parser.add_argument('--detail-profile',action='store_true',help='With --detail-review, measure an uninterrupted High-blur Video cube window') parser.add_argument('--motion-storage-review',action='store_true',help='Native Disabled/Subtle/Pronounced motion pairs, top Storage actions and light/dark blur boundary') parser.add_argument('--motion-storage-profile',action='store_true',help='After motion/storage captures, measure High blur with Pronounced motion on the Video cube') +parser.add_argument('--ui-sounds-review',action='store_true',help='Native four-row Options, UI Sounds Medium/Off drafts, commit/cancel and Storage actions') +parser.add_argument('--ui-sounds-profile',action='store_true',help='After UI-sound captures, measure High blur/Subtle motion/Medium UI volume on the normal Video cube') parser.add_argument('--inner-blur-review',action='store_true',help='Use real Options input to capture all inner-glass blur levels and cancellation') parser.add_argument('--inner-blur-profile',action='store_true',help='With --inner-blur-review, measure each level on the normal interactive Video face') parser.add_argument('--inner-blur-profile-only',action='store_true',help='Skip repeated editor/list captures during the full blur profile') @@ -62,18 +64,21 @@ if args.mockup_corners and (not args.mockup_review or args.mockup_single or args.optics_diagnostic):parser.error('--mockup-corners requires an independent --mockup-review') if args.mockup_review and not args.native_boundaries:parser.error('--mockup-review requires --native-boundaries') if args.library:parser.error('--library is no longer available in the normal shell: the top cube side is Storage. Use an explicit game-library fixture for internal library tests.') -if sum([args.mockup_review,args.rim_review,args.glass_modes,args.detail_review,args.motion_storage_review,args.calendar,args.widescreen,args.selector_motion,args.selector_scan,args.directional_return,args.system_clock,args.library,args.storage,args.flat_pages,args.dense_storage])>1:parser.error('Choose one review sequence') +if sum([args.mockup_review,args.rim_review,args.glass_modes,args.detail_review,args.motion_storage_review,args.ui_sounds_review,args.calendar,args.widescreen,args.selector_motion,args.selector_scan,args.directional_return,args.system_clock,args.library,args.storage,args.flat_pages,args.dense_storage])>1:parser.error('Choose one review sequence') if args.detail_profile and not args.detail_review:parser.error('--detail-profile requires --detail-review') if args.detail_review and not args.native_boundaries:parser.error('--detail-review requires --native-boundaries') if args.detail_review and (args.inner_blur_review or args.inner_blur_high):parser.error('--detail-review independently enables High blur; disable the other blur review modes') if args.motion_storage_profile and not args.motion_storage_review:parser.error('--motion-storage-profile requires --motion-storage-review') if args.motion_storage_review and not args.native_boundaries:parser.error('--motion-storage-review requires --native-boundaries') if args.motion_storage_review and (args.inner_blur_review or args.inner_blur_high):parser.error('--motion-storage-review independently enables High blur; disable the other blur review modes') +if args.ui_sounds_profile and not args.ui_sounds_review:parser.error('--ui-sounds-profile requires --ui-sounds-review') +if args.ui_sounds_review and not args.native_boundaries:parser.error('--ui-sounds-review requires --native-boundaries') +if args.ui_sounds_review and (args.inner_blur_review or args.inner_blur_high):parser.error('--ui-sounds-review independently selects blur during profiling; disable the other blur review modes') if args.glass_profile_only and not args.rim_profile:parser.error('--glass-profile-only requires --glass-profile') if args.inner_blur_profile and (not args.inner_blur_review or args.mockup_review):parser.error('--inner-blur-profile requires --inner-blur-review on a normal DOL') if args.inner_blur_profile_only and not args.inner_blur_profile:parser.error('--inner-blur-profile-only requires --inner-blur-profile') if args.profile_seconds<30 or args.profile_seconds>180:parser.error('--profile-seconds must be between 30 and 180') -if args.quick_input and not (args.inner_blur_review or args.glass_modes or args.detail_review or args.motion_storage_review or args.selector_scan or args.flat_pages or args.widescreen):parser.error('--quick-input is supported for blur, motion/storage and detail/video reviews') +if args.quick_input and not (args.inner_blur_review or args.glass_modes or args.detail_review or args.motion_storage_review or args.ui_sounds_review or args.selector_scan or args.flat_pages or args.widescreen):parser.error('--quick-input is supported for blur, UI sounds, motion/storage and detail/video reviews') if args.inner_blur_cubes and not args.inner_blur_review:parser.error('--inner-blur-cubes requires --inner-blur-review') if (args.inner_blur_review or args.inner_blur_high) and not args.native_boundaries:parser.error('Inner-glass blur review requires --native-boundaries') if args.inner_blur_high and not args.glass_modes:parser.error('--inner-blur-high requires --glass-modes') @@ -169,10 +174,10 @@ def shot(name): info=event['xfb'];expected_scan=2 if name.startswith(('05-','06-','07-')) else 0 if (info['width'],info['height'],info['vi_scan_bits'])!=(640,480,expected_scan): raise RuntimeError(f'{name}: grouped Video preview/keep/rollback has the wrong native VI mode: {info}') - elif args.motion_storage_review: + elif args.motion_storage_review or args.ui_sounds_review: info=event['xfb'] if (info['width'],info['height'],info['vi_scan_bits'])!=(640,480,0): - raise RuntimeError(f'{name}: motion/storage review must stay in native 640x480 interlaced output: {info}') + raise RuntimeError(f'{name}: UI review must stay in native 640x480 interlaced output: {info}') if native_frames.stable_frame()!=boundary:raise RuntimeError('Native frame advanced during framebuffer read') events.append(event) if native_frames is None:p.send_signal(signal.SIGCONT) @@ -180,11 +185,38 @@ def shot(name): if native_frames is None:time.sleep(15) else:wait_frames(frame_count(),60) capture(root/'unused.ppm',True);time.sleep(.3) - if args.motion_storage_review: + if args.ui_sounds_review: + # Normal interactive DOL, default Subtle motion and Medium UI volume. + # Use only controller input. A fresh emulator has no attached GC Loader + # preferences; unavailable IPL audio is honestly reported by the app. + key('x');key('b');key('Left');shot('01-options-cube-medium') + key('a');key('Down');key('Down');key('Down');shot('02-options-ui-sounds-row') + key('a');shot('03-ui-sounds-medium-editor') + key('Down');key('Down');shot('04-ui-sounds-off-draft') + key('a');shot('05-ui-sounds-off-confirmed') + key('a');key('Up');shot('06-ui-sounds-low-draft') + key('b',settle_frames=12);shot('07-ui-sounds-cancel-keeps-off') + key('b');key('i');key('a');shot('08-storage-flat-actions') + if args.ui_sounds_profile: + # Finish captures before diagnostics. Select High blur at row two, + # restore the default Medium volume at row three, retain Subtle, + # then measure the normal Video cube without further screenshots. + key('b',settle_frames=12);key('b');key('Left');key('a') + key('Down');key('Down');key('a');key('Down');key('a') + key('Down');key('a');key('Up');key('Up');key('a') + key('b',settle_frames=12);key('b');key('Right') + from profile_interactive_rim import collect + profile=root/'profile-high-subtle-medium';profile.mkdir() + code=x.XKeysymToKeycode(d,x.XStringToKeysym(b'Y')) + def profile_key(down): + assert xt.XTestFakeKeyEvent(d,code,down,0) + x.XSync(d,0) + collect(native_frames,args.dol.resolve(),profile,lambda:profile_key(1),lambda:profile_key(0),args.profile_seconds,expected_heap_bytes=8388608) + elif args.motion_storage_review: # Establish output and select all values through the ordinary controller - # path. The default Motion is Subtle; Options has three settings rows. + # path. The default Motion is Subtle; Options has four settings rows. key('x');key('b') - key('Left');key('a');key('Up');key('a');key('Down');key('a');key('b',settle_frames=12) + key('Left');key('a');key('Down');key('Down');key('a');key('Down');key('a');key('b',settle_frames=12) key('a');key('Up');key('a');key('Down');key('a');key('b',settle_frames=12) shot('01-disabled-a');native_frames.advance(45);shot('02-disabled-b') key('a');key('a');key('Up');key('a');key('b',settle_frames=12) @@ -212,7 +244,7 @@ def profile_key(down): # its three Calendar-style parts directly. All changes use controller # input, with no native application-state or frame-buffer mutation. key('x');key('b') # Establish 480i and a neutral cube using real safe-mode/back input. - key('Left');key('a');key('Up');key('a');key('Down');key('a');key('b') + key('Left');key('a');key('Down');key('Down');key('a');key('Down');key('a');key('b') shot('01-options-high-blur') key('b');shot('02-crisp-centered-icon') # Inspect the physical frost boundary during a real cube turn. Existing @@ -227,7 +259,7 @@ def profile_key(down): key('Down');key('a');key('b');shot('07-rollback-to-progressive-cube') key('x');key('a');shot('08-safe-interlaced-detail') key('b');key('b');key('Down',settle_frames=40);key('a');key('Down');key('a');shot('09-calendar-date-detail') - key('b');key('b');key('Left');key('a');key('Up');key('a');shot('10-options-blur-value-detail') + key('b');key('b');key('Left');key('a');key('Down');key('Down');key('a');shot('10-options-blur-value-detail') if args.detail_profile: # Complete the product captures before Y enables diagnostic text. # B from the value editor returns instantly to its cube side; diff --git a/tests/VideoModeAudioTests/FakeSdk.cs b/tests/VideoModeAudioTests/FakeSdk.cs index a1654bd..5df4d83 100644 --- a/tests/VideoModeAudioTests/FakeSdk.cs +++ b/tests/VideoModeAudioTests/FakeSdk.cs @@ -9,14 +9,14 @@ // same calls against the actual published SDK. internal static class AudioFixture { - internal static int Initialized,Read,ImagesDisposed,CatalogsDisposed,Created,Disposed,FailAt=-1; + internal static int Initialized,Read,ImagesDisposed,CatalogsDisposed,Created,Disposed,FailAt=-1,RequiredPreparationBytes; internal static bool Unsupported; internal static ManualResetEventSlim Entered=new(false),Continue=new(true); internal static List Voices=new(); internal static List DisposalOrder=new(); internal static void Reset() { - Initialized=Read=ImagesDisposed=CatalogsDisposed=Created=Disposed=0;FailAt=-1;Unsupported=false; + Initialized=Read=ImagesDisposed=CatalogsDisposed=Created=Disposed=RequiredPreparationBytes=0;FailAt=-1;Unsupported=false; Entered.Dispose();Continue.Dispose();Entered=new(false);Continue=new(true); Voices=new();DisposalOrder=new();Dolphin.Timing.Clock.Timestamp=0; } @@ -108,6 +108,7 @@ public static Dolphin.Audio.Sound CreateMenuSound(FirmwareCatalog catalog,System CancellationToken token=default,int nativeBudgetBytes=8*1024*1024) { token.ThrowIfCancellationRequested(); + if(nativeBudgetBytes Date: Sat, 14 Nov 2026 20:58:22 +0000 Subject: [PATCH 3/6] Preserve native UI-sound controls, timings and memory-budget evidence --- VideoMode/Design/ui-sounds/README.md | 90 +++++++ VideoMode/Design/ui-sounds/action-index.md | 6 +- .../Design/ui-sounds/baseline-high/frames.csv | 97 ++++++++ .../ui-sounds/baseline-high/profile.json | 31 +++ VideoMode/Design/ui-sounds/budget-audit.md | 62 +++++ .../ui-sounds/capture-tool-snapshot.json | 14 ++ .../native/01-options-cube-medium-xfb.png | Bin 0 -> 99845 bytes .../native/02-options-ui-sounds-row-xfb.png | Bin 0 -> 113310 bytes .../native/03-ui-sounds-medium-editor-xfb.png | Bin 0 -> 61185 bytes .../native/04-ui-sounds-off-draft-xfb.png | Bin 0 -> 59856 bytes .../native/05-ui-sounds-off-confirmed-xfb.png | Bin 0 -> 111984 bytes .../native/06-ui-sounds-low-draft-xfb.png | Bin 0 -> 58516 bytes .../07-ui-sounds-cancel-keeps-off-xfb.png | Bin 0 -> 100272 bytes .../native/08-storage-flat-actions-xfb.png | Bin 0 -> 78767 bytes VideoMode/Design/ui-sounds/native/events.json | 162 +++++++++++++ .../Design/ui-sounds/profile-comparison.json | 14 ++ .../profile-high-subtle-medium/frames.csv | 97 ++++++++ .../profile-high-subtle-medium/profile.json | 31 +++ VideoMode/Design/ui-sounds/provenance.json | 220 ++++++++++++++++++ .../ui-sounds/toolchain-provenance.json | 51 ++++ 20 files changed, 874 insertions(+), 1 deletion(-) create mode 100644 VideoMode/Design/ui-sounds/README.md create mode 100644 VideoMode/Design/ui-sounds/baseline-high/frames.csv create mode 100644 VideoMode/Design/ui-sounds/baseline-high/profile.json create mode 100644 VideoMode/Design/ui-sounds/budget-audit.md create mode 100644 VideoMode/Design/ui-sounds/capture-tool-snapshot.json create mode 100644 VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/02-options-ui-sounds-row-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/03-ui-sounds-medium-editor-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/04-ui-sounds-off-draft-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/05-ui-sounds-off-confirmed-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/06-ui-sounds-low-draft-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/07-ui-sounds-cancel-keeps-off-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/08-storage-flat-actions-xfb.png create mode 100644 VideoMode/Design/ui-sounds/native/events.json create mode 100644 VideoMode/Design/ui-sounds/profile-comparison.json create mode 100644 VideoMode/Design/ui-sounds/profile-high-subtle-medium/frames.csv create mode 100644 VideoMode/Design/ui-sounds/profile-high-subtle-medium/profile.json create mode 100644 VideoMode/Design/ui-sounds/provenance.json create mode 100644 VideoMode/Design/ui-sounds/toolchain-provenance.json diff --git a/VideoMode/Design/ui-sounds/README.md b/VideoMode/Design/ui-sounds/README.md new file mode 100644 index 0000000..a000aa1 --- /dev/null +++ b/VideoMode/Design/ui-sounds/README.md @@ -0,0 +1,90 @@ +# Native UI-sound integration review + +The [action index](action-index.md) records the ten original IPL effects and +their controller actions. UI Sounds adds Off / Low / Medium / Full, defaults to +Medium, previews drafts and saves confirmed values. This review exercises its +four-row Options layout, draft/commit/cancel paths and Storage navigation. + +## Native frames + +All eight images are completed GameCube DOL output from cloud-local Dolphin +2503, OpenGL/Mesa software rendering and Xvfb. Each 614400-byte GX_CopyDisp XFB +was read after GX_DrawDone at a completed presentation boundary. All frames +are native 640x480 interlaced VI output. The only conversion is BT.601 YUYV422 +to RGB: no crop, resize, compositing or generated replacement. Source and PNG +hashes and actual native frame counters are preserved in [events](native/events.json). + +- [01-options-cube-medium](native/01-options-cube-medium-xfb.png) +- [02-options-ui-sounds-row](native/02-options-ui-sounds-row-xfb.png) +- [03-ui-sounds-medium-editor](native/03-ui-sounds-medium-editor-xfb.png) +- [04-ui-sounds-off-draft](native/04-ui-sounds-off-draft-xfb.png) +- [05-ui-sounds-off-confirmed](native/05-ui-sounds-off-confirmed-xfb.png) +- [06-ui-sounds-low-draft](native/06-ui-sounds-low-draft-xfb.png) +- [07-ui-sounds-cancel-keeps-off](native/07-ui-sounds-cancel-keeps-off-xfb.png) +- [08-storage-flat-actions](native/08-storage-flat-actions-xfb.png) + +Frame 03 visibly reports unavailable menu sounds; no original IPL is configured +in this Cloud emulator. The replay uses NoAudioOutput, and Dolphin reports the +unsupported AESND HLE ucode CRC `8d527c50` and forces AX. These captures verify +graceful unavailability and normal interaction. They do **not** qualify audible +output, the ten original effects, overlapping active voices or physical-console +playback. The missing GC Loader SD also means session values can change while +the app honestly reports that saving failed. Host fixtures cover persistence. + +## Quiet-case timing + +Both windows use the normal interactive Video cube with High blur, Subtle +motion and VSync: 30 warmup frames followed by 96 uninterrupted samples. The +current UI sound level is Medium, but IPL assets are unavailable and no effects +are mixing. No capture/debugger stop or storage write interrupts sampling. +These are Dolphin guest-clock measurements, not physical GameCube timings. + +| Build | Frame ms | Active ms | Prepare ms | Submit ms | Draws / triangles | +| --- | ---: | ---: | ---: | ---: | ---: | +| Previous SDK / High / Subtle | 16.681 | 4.508 | 0.781 | 3.675 | 103 / 45234 | +| SDK 347 / High / Subtle / quiet audio | 16.681 | 4.513 | 0.781 | 3.676 | 103 / 45234 | + +The active-work difference is **+0.005 ms**. +SDK and heap differences prevent isolating audio cost. Active time is frame +time minus retrace wait; copy scopes include prior GPU work. Original rows and +summaries are retained in `profile-high-subtle-medium/` and `baseline-high/`. +The current post-window arena is 2254320 of 8388608 +bytes, with 0 collections. This is neither peak nor live usage. + +## Build and replay + +Normal runtime source: `82d6a4f00cbbf34cf394161709ce198a85ab3539`. SDK/runtime/compiler come from public +NuGet `0.1.0-preview.347.1`, source `8f5870f68ec7f5eb1e8103c13af42ce082a3516f`. Optimized cached icons, selectors, +grid, footer and numbers retain their defaults; shared glass, batched blur/text, +retained tint, console and memory-card services are enabled explicitly. The +final backend caps each effect at 2 MiB of native preparation scratch and the +retained clip bank at 6 MiB, independently of the 8 MiB managed heap. The +[budget audit](budget-audit.md) bounds the preparation scratch for every accepted +SDK recipe; the actual sum of all ten supported-ROM clips remains unqualified. +The retained cap is an intentional MEM1 ceiling with graceful cleanup on overflow: + +```sh +dotnet build VideoMode/VideoMode.csproj -c Release -p:DndBuildNative=true -p:DndBuildBackend=Docker -p:IplNextSdk=true -p:IplSharedGlass=true -p:IplBatchedBlur=true -p:IplBatchedText=true -p:IplRetainedTint=true -p:IplConsoleServices=true -p:IplMemoryCardServices=true +``` + +The captured Cloud build ran the same optimized flags with +`DndBuildNative=false`, then the published compiler +`--bundle VideoMode/bin/Release/net8.0/VideoMode.dll VideoMode/obj/Release/net8.0/native --sample-controls`. +Its unchanged generated Makefile was linked with `make -j2` using devkitPPC/libogc2 +binaries extracted from the exact pinned image into `/tmp/ui-sounds-toolchain`. +This keeps the toolchain on `/tmp` because Docker's VFS copy exceeded workspace +space during initial setup. The [toolchain record](toolchain-provenance.json) +preserves the image and layers. No SDK, generated C or native runtime was patched. +AOT and DOL/ELF checks passed. + +```sh +python3 ci/review_performance_overlay.py --dol /path/to/VideoMode.dol \ + --sdk /path/to/DolphinDotNet --logs /path/to/fresh-review \ + --native-boundaries --ui-sounds-review --ui-sounds-profile \ + --quick-input --profile-seconds 90 +``` + +Use matching DOL/ELF files from the same build. DOL SHA-256: +`8c41e4909effeda13357c74ad79420001113e26a4ff13a62773321d1d5829e3c`. [Provenance](provenance.json) includes runtime, helper, build and +frame hashes. Raw DOL/ELF/YUV/PPM and logs remain in task artifacts. No firmware +or audio asset is included in this evidence. diff --git a/VideoMode/Design/ui-sounds/action-index.md b/VideoMode/Design/ui-sounds/action-index.md index 25fe51f..e9ca23b 100644 --- a/VideoMode/Design/ui-sounds/action-index.md +++ b/VideoMode/Design/ui-sounds/action-index.md @@ -52,7 +52,11 @@ voices before clips. No ROM, PCM, replacement tone or recording is bundled or written to storage. Each effect has a 2 MiB native preparation-scratch budget and the retained bank -is capped at 6 MiB of native audio memory. These limits are separate from the +is capped at 6 MiB of native audio memory. The [budget audit](budget-audit.md) +bounds every SDK-accepted recipe's scratch charge below 2 MiB; the actual sum +of all ten clips on a supported ROM remains unqualified here. The retained-bank +limit is an intentional MEM1 ceiling, with partial clips disposed if exceeded. +These limits are separate from the 2 MiB firmware image and SDK-managed extraction data. Reaching `FirmwareImage` makes the SDK select an 8 MiB managed heap, replacing this demo's earlier 256 KiB assumption in audio-enabled builds. Playback performs no firmware reads or effect diff --git a/VideoMode/Design/ui-sounds/baseline-high/frames.csv b/VideoMode/Design/ui-sounds/baseline-high/frames.csv new file mode 100644 index 0000000..37f2eda --- /dev/null +++ b/VideoMode/Design/ui-sounds/baseline-high/frames.csv @@ -0,0 +1,97 @@ +frame_us,prepare_us,submit_us,end_us,gpu_wait_us,retrace_us,capture_us,blur_us,draws,triangles,begin_copy_us,gate_us,width,height,scan,face,editing +16683,780,3675,12196,8,12175,2480,150,103,45234,3,0,640,480,1,1,0 +16679,778,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,782,3675,12194,8,12172,2480,151,103,45234,3,0,640,480,1,1,0 +16680,779,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12194,8,12172,2480,151,103,45234,3,0,640,480,1,1,0 +16681,780,3676,12195,8,12174,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12196,8,12174,2479,151,103,45234,3,0,640,480,1,1,0 +16683,779,3675,12195,8,12174,2479,150,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12192,8,12172,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,779,3675,12195,8,12174,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16684,781,3675,12194,8,12173,2480,153,103,45234,3,0,640,480,1,1,0 +16679,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,4,12177,2480,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12195,8,12174,2479,150,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16678,781,3674,12195,8,12174,2481,151,103,45234,3,0,640,480,1,1,0 +16681,779,3676,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16681,782,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12195,8,12174,2480,150,103,45234,3,0,640,480,1,1,0 +16683,779,3677,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16678,780,3674,12194,8,12174,2480,150,103,45234,3,0,640,480,1,1,0 +16681,782,3676,12194,8,12172,2481,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16679,782,3676,12193,8,12172,2481,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12195,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12193,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12193,8,12172,2480,149,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12187,8,12166,2479,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16679,782,3675,12193,8,12172,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12195,8,12174,2478,151,103,45234,3,0,640,480,1,1,0 +16681,782,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16681,781,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16681,779,3674,12194,8,12173,2478,152,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12196,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16679,782,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0 +16681,780,3673,12197,8,12176,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,4,12177,2481,150,103,45234,3,0,640,480,1,1,0 +16684,779,3675,12194,8,12174,2479,149,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12193,8,12172,2480,149,103,45234,3,0,640,480,1,1,0 +16681,781,3676,12194,8,12173,2481,152,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12195,8,12174,2479,152,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,152,103,45234,3,0,640,480,1,1,0 +16683,781,3675,12194,8,12173,2480,152,103,45234,3,0,640,480,1,1,0 +16678,779,3675,12194,8,12174,2479,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12172,2480,151,103,45234,3,0,640,480,1,1,0 +16681,779,3675,12194,8,12174,2478,151,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12196,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16679,781,3675,12193,8,12172,2481,150,103,45234,3,0,640,480,1,1,0 +16681,780,3676,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16681,782,3676,12194,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12195,8,12174,2480,152,103,45234,3,0,640,480,1,1,0 +16684,779,3677,12197,8,12173,2481,151,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12195,8,12174,2481,151,103,45234,3,0,640,480,1,1,0 +16681,779,3676,12194,8,12174,2480,150,103,45234,4,0,640,480,1,1,0 +16681,780,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16679,781,3675,12193,8,12172,2480,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,149,103,45234,3,0,640,480,1,1,0 +16681,781,3674,12195,8,12174,2478,151,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12193,8,12173,2481,149,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12193,8,12172,2480,150,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12194,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16681,782,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16678,780,3675,12193,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,4,12177,2480,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12193,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16684,779,3675,12194,8,12173,2479,149,103,45234,3,0,640,480,1,1,0 +16679,781,3675,12193,8,12172,2481,149,103,45234,3,0,640,480,1,1,0 +16682,781,3675,12195,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16680,780,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2480,150,103,45234,3,0,640,480,1,1,0 +16684,780,3675,12194,8,12173,2479,151,103,45234,3,0,640,480,1,1,0 +16678,780,3675,12194,8,12173,2479,150,103,45234,3,0,640,480,1,1,0 +16681,781,3675,12194,8,12173,2481,150,103,45234,3,0,640,480,1,1,0 +16681,781,3676,12194,8,12173,2481,152,103,45234,3,0,640,480,1,1,0 +16681,780,3675,12196,8,12175,2479,152,103,45234,3,0,640,480,1,1,0 +16683,781,3675,12194,8,12173,2480,151,103,45234,3,0,640,480,1,1,0 +16678,781,3675,12193,8,12172,2479,151,103,45234,3,0,640,480,1,1,0 diff --git a/VideoMode/Design/ui-sounds/baseline-high/profile.json b/VideoMode/Design/ui-sounds/baseline-high/profile.json new file mode 100644 index 0000000..1e34c3c --- /dev/null +++ b/VideoMode/Design/ui-sounds/baseline-high/profile.json @@ -0,0 +1,31 @@ +{ + "scope": "Dolphin guest clock; normal interactive Video face, idle motion enabled; not hardware", + "samples": 96, + "warmup": 30, + "vsync": true, + "interrupted_during_sampling": false, + "observation_seconds": 90, + "dol_sha256": "2942fffaf07bd70a92a9aa3bc75273150e9ee0c690305f0ba3b6044c2e3bbd51", + "mean_us": { + "frame_us": 16680.895833333332, + "prepare_us": 780.5625, + "submit_us": 3675.0416666666665, + "end_us": 12193.96875, + "gpu_wait_us": 7.875, + "retrace_us": 12173.135416666666, + "capture_us": 2479.8229166666665, + "blur_us": 150.44791666666666, + "draws": 103, + "triangles": 45234, + "begin_copy_us": 3.0104166666666665, + "gate_us": 0 + }, + "frame_p95_us": 16684, + "active_mean_us": 4507.760416666667, + "managed_heap": { + "capacity_bytes": 262144, + "arena_used_bytes": 220168, + "collections": 0, + "scope": "post-window arena; not peak or live bytes" + } +} diff --git a/VideoMode/Design/ui-sounds/budget-audit.md b/VideoMode/Design/ui-sounds/budget-audit.md new file mode 100644 index 0000000..09cc04a --- /dev/null +++ b/VideoMode/Design/ui-sounds/budget-audit.md @@ -0,0 +1,62 @@ +# IPL UI audio preparation budget audit + +SDK: published `0.1.0-preview.347.1`, source +`8f5870f68ec7f5eb1e8103c13af42ce082a3516f`. + +## Per-effect preparation charge + +The SDK's `dnd_audio_begin_menu` rejects a preparation when its running native +charge exceeds the caller's budget. Its accepted bounds give the following +conservative maximum, including the early profile's 96,000-frame feedback tail +within the output-frame bound: + +| Component | Upper charge in bytes | +| --- | ---: | +| Stereo PCM16, at most 256,000 frames, aligned to 32 bytes | 1,024,000 | +| Complete recipe packet | 262,144 | +| Two decoded mono sources, each at most 100,000 PCM16 frames | 400,000 | +| Two reverb rings, each at most 100 × 80 PCM16 samples | 32,000 | +| Two flat-source spans, 48 bytes each on the target ABI | 96 | +| `MenuPreparation` on the pinned PowerPC ABI | 1,744 | +| **Total maximum SDK preparation charge** | **1,719,984** | + +Therefore **2 MiB (2,097,152 bytes) covers every recipe accepted by these +structural limits**, with a 377,168-byte charge margin. A 1 MiB budget is not +proved by the structural limits or the published modern-profile measurements. +The calculation bounds the SDK's charge, excluding allocator metadata and +unrelated application/AESND state. This is native preparation memory; the +separate managed heap is 8 MiB. + +Target sizes were checked without changing application/SDK sources: a temporary +translation unit included the exact bundled `source/audio.c` and emitted +`sizeof` constants with the relocated pinned GCC 16.1.0 and the same PowerPC ABI. +`MenuPreparation=1744`, `DndAudioSpan=48`, `DndAudioSource=196`, +`DndAudioDecoder=344`. The output is `/tmp/ui-sounds-audio-sizes.s`. + +Relevant source: + +- [Budget checks, output, rings and source allocations](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/source/audio_menu.inc#L74) +- [JAudio flat-source parsing](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/source/audio_formats.inc#L552) +- [Source/span/decoder ABI types](https://github.com/capz/DolphinDotNet/blob/8f5870f68ec7f5eb1e8103c13af42ce082a3516f/include/dnd_audio_codec.h#L8) + +## Resident bank + +Prepared menu sounds retain only aligned stereo PCM16. `Sound.NativeBytes` +reports that aligned retained length (`audio.c`, `dnd_audio_stat`, kind 8). +The 6 MiB bank budget is an intentional application MEM1 ceiling, distinct from +the transient per-preparation charge. + +The generic SDK bound for ten clips is 10 × 1,024,000 = 10,240,000 bytes, so it +does **not** prove that all ten qualified early effects fit the app's 6 MiB cap. +Published research documents do not list all ten exact early output lengths; +the public test fixtures use synthetic recipes. No private qualified early ROM +was available to this audit to independently enumerate those metadata values. +Thus an exact early-bank total is not established by this audit. + +Do not raise the resident cap blindly. The catalog exposes each qualified +effect's `SampleFrameCount` and `Channels`; summing +`(SampleFrameCount * Channels * 2 + 31) & ~31` before preparation can report the +actual bank requirement and reject a bank exceeding 6 MiB before allocating it. +The existing backend checks actual `NativeBytes` and cleans up the partial bank +on failure. An eventual real-console or private early-profile run should record +all ten metadata lengths and the final resident total to close this limitation. diff --git a/VideoMode/Design/ui-sounds/capture-tool-snapshot.json b/VideoMode/Design/ui-sounds/capture-tool-snapshot.json new file mode 100644 index 0000000..bee6d83 --- /dev/null +++ b/VideoMode/Design/ui-sounds/capture-tool-snapshot.json @@ -0,0 +1,14 @@ +{ + "base_head": "82d6a4f00cbbf34cf394161709ce198a85ab3539", + "files_sha256": { + "ci/review_performance_overlay.py": "3fe62901c1df0ff17d81e4f369db66ce14a9987a0ad2634a6b2df8f191c5a1a1", + "ci/native_frame_boundary.py": "036dc217532253b1dd499cbd66f57526983ef5319f7245e4f4a266b0c6778bac", + "ci/profile_interactive_rim.py": "7708e80d5051a25d34f19660e20e2a3f6cfcfd525c6f4855a2dca4acb12bd83b", + "ci/decode_native_xfb.py": "1a560cbb4ba252a8ca05d335b619161eb54e54058cc3a9d4755b55260aa6358a", + "ci/capture_x11.py": "4a41c7bef8a22d64ac0fffc648ed046121c89f5ce8c71eeb67f1c0b6ebdf18e3" + }, + "dirty_files": [], + "diff_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "runtime_patches": "None: normal interactive DOL, controller input; no application-state or framebuffer writes", + "snapshot_scope": "Capture helpers committed cleanly with the runtime source before review-02." +} diff --git a/VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png b/VideoMode/Design/ui-sounds/native/01-options-cube-medium-xfb.png new file mode 100644 index 0000000000000000000000000000000000000000..76321fbe34a3f44ed236a9856e564fb352fc4bfb GIT binary patch literal 99845 zcmeEtWmg+a*L9$@xECo!gS!=X2v#WWE=7tLe@j{2mnL9GFR z1^}pnJD7fsD;t8k5T@ zoC4fW5s=bGW&={`(ZTS@&}cIT8#k8%&be<*Tn>R}3W}=LI`i;C5w@ z(&zVNsyUkU;nD4_;MUgO&SFS@C=S#AAOG*{!2Nc_V}&ODx*vYE!P4D8ALzpLgmKfd zS5@GARm1>pxh+q8Oq5#>7?q3VCjfo@cw`pkQm|0p`!x{qw|ZVvGQf%^OqE5N zE}C(bePr!f%Cp+vd!jo|k#5cHfsc~mh_I(Sg!3deHuLIQjUYo|A4TU$l$powRN*H& zTCw2wp`j@YvDXz9>^Q+jt1W}He+fPplB^)glYXLm=;c z#i`SqeOP#g{N0HF^(&XHlQdZ2(c~$C7Of!oXf>&!?T-Uq4BApxppHJn`-$i169Pe< z2GE6wzy`GNAsSH+SulV)CmS#%(G7^j0z}cpe{$W@D&^!AXu@PXw3ew zvj}U?TH_GR32(%KcC9V1?Pb)DtNefCf*5Q9exZdyML!L*c#hFiT-0UN7`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