Skip to content

Add scriptable processor seeking example - #1

Open
nis-unity wants to merge 14 commits into
mainfrom
scriptable-processor-seeking
Open

Add scriptable processor seeking example#1
nis-unity wants to merge 14 commits into
mainfrom
scriptable-processor-seeking

Conversation

@nis-unity

@nis-unity nis-unity commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Adds a second example project, scriptable-processor-seeking, demonstrating sample-accurate seeking of a playing generator via SeekMessage.

Contents:

  • Assets/Scripts/ClipPlayerGenerator.cs — an IAudioGenerator that plays an AudioClip through the sample-provider path, which is the path that handles seeks. It mirrors the clip's own generator metadata so the wrapper stays consistent with the instance it produces.
  • Assets/Scripts/SeekTester.cs — an IMGUI transport for staging seeks and sending them to the live instance.
  • Assets/Scenes/Seeking.unity — a Seek Tester object plus a Main Camera for its AudioListener.
  • Assets/AudioClips/Count1To10.wav — counts one through ten over ten seconds, so each seek is verifiable by ear.

Two .gitignore additions come along, in their own commits, for files Unity 6.7 generates that the 6.5 project has no equivalent of:

Verification

  • Every scene GUID reference resolves, including the clip assignment.
  • No orphan or missing .meta files.
  • Count1To10.wav is committed as an LFS pointer, per .gitattributes.
  • EditorBuildSettings.asset lists only Assets/Scenes/Seeking.unity.

Note: Targets Unity 6.7.

Comment thread scriptable-processor-seeking/README.md Outdated
Comment thread scriptable-processor-seeking/Assets/Scripts/SeekTester.cs Outdated
Comment thread scriptable-processor-seeking/Assets/Scripts/SeekTester.cs Outdated
Comment thread scriptable-processor-seeking/README.md Outdated
Comment thread scriptable-processor-seeking/README.md Outdated
Comment thread scriptable-processor-seeking/Assets/Scripts/SeekTester.cs
Comment thread scriptable-processor-seeking/Assets/Scripts/SeekTester.cs Outdated
Comment thread scriptable-processor-seeking/Assets/Scripts/SeekTester.cs
Comment thread scriptable-processor-seeking/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants