Commit Graph

39 Commits

Author SHA1 Message Date
Daniel Harvey 02d146ce02 Fix streaming majors: PCM-only validation, stream-from-disk, ConcatStream offset, AsyncDisposable, HTTP cancellation, await ensureReady, seekBeyondBuffer offset-0 guard, negative WAV chunk guard 2026-05-17 16:57:20 -04:00
Daniel Harvey dd96caa709 Fix Critical: streaming race, dirty buffer, dropped tail, fragmented header
- SeekBeyondBuffer and LoadTrackStreaming assign _activeStreamingTask before
  awaiting; DrainActiveStreamingTaskAsync awaits previous task before new
  stream starts, closing the concurrent-seek race on the JS StreamDecoder
- Always slice ArrayPool buffer to currentBytes before sending to JS interop;
  eliminates stale bytes from prior rentals reaching the audio decoder
- getSampleAlignedChunkSize accepts streamComplete flag; bypasses minimum
  chunk guard on final tail so trailing bytes are decoded, not dropped
- StreamDecoder accumulates headerSearchChunks until parseHeader succeeds,
  with 256 KB MAX_HEADER_SEARCH_BYTES bound; handles fragmented first chunks
  and extended WAV headers with LIST/INFO/JUNK chunks
- markStreamComplete early-returns when streamComplete already set to prevent
  double-drain and incorrect streamingCompleted flag after partial failure
- processedBytes advances only after successful decode; failed segments leave
  cursor in place rather than permanently skipping audio
- AudioInteropService.MarkStreamCompleteAsync wires C# loop exit to JS decoder
  ensuring tail drain fires even when Content-Length header is absent
2026-05-17 11:28:53 -04:00
Daniel Harvey 7cf3d965b6 Rewrite all folder-level CLAUDE.md files; update root
net10.0 throughout; corrected EntryKey field name; documented *.Services split.
Two new files (DeepDrftWeb.Services, DeepDrftContent.Services). FileDatabase
README inaccuracies fixed (ImageVault, project target).
2026-05-16 21:45:56 -04:00
daniel-c-harvey 51cef436d7 style simplification and publish upgrades for dotnet 10 2026-01-22 08:59:48 -05:00
daniel-c-harvey bc521d5b29 Styles & Home Page Content Cleanup
Mobile Menu System & Dark Mode Cookie
Theme Draft
2025-12-09 16:46:07 -05:00
daniel-c-harvey bb3551a248 Theming Draft 2 2025-12-08 20:30:41 -05:00
daniel-c-harvey a68dc37012 2026 Deep DRFT Theme Draft 1 WIP 2025-12-07 18:41:09 -05:00
daniel-c-harvey 75456a59ce Spectrum Visualizer for player & Layout 2025-12-07 11:18:32 -05:00
daniel-c-harvey 20db222a0f Streaming Seek Support 2025-12-07 04:44:54 -05:00
daniel-c-harvey 8c58edd5f9 File Database Index watching 2025-12-07 04:40:52 -05:00
daniel-c-harvey 2baf0575bc Streaming Bug Fixes 2025-12-06 06:41:32 -05:00
daniel-c-harvey 605fc94fbb True Streaming Support Draft 2025-09-15 17:03:36 -04:00
daniel-c-harvey 0fa8ac7379 Front End Streaming Playback Improvements 2025-09-13 15:22:26 -04:00
daniel-c-harvey 9ac2c9182a Player Client and Visual Enhancements
- Redesigned audio player bar to be mobile-friendly
 - Added unloading for track switching (needs to be fixed)
 - Added IsLoading status so loading spinner isn't hanging around when it shouldn't be
 - Normalized styles with scoped files (will further reduce)
 - Layout Cleanup
 - EF fixes (migrations now function for deployment)
 - deploy script updates (new dedicated host)
2025-09-12 20:37:17 -04:00
daniel-c-harvey 73d4b0a9c5 Front End Audio Player Always Available 2025-09-08 18:42:07 -04:00
daniel-c-harvey a25d067dff AUdio Player Service refactor 2025-09-08 14:20:38 -04:00
daniel-c-harvey bf054f3d1b API Connection Cleanup & Bugfixes 2025-09-08 11:10:23 -04:00
daniel-c-harvey c6f4ffc1fe Cleanup & Bug Fixes
- WebAssembly fix (missing app.Run)
 - API comms cleanup
2025-09-08 09:53:13 -04:00
daniel-c-harvey b16bcfc6cd Backend Services Split into separate projects for reference from other front ends 2025-09-07 12:56:52 -04:00
daniel-c-harvey a5b7ab041e Deployment Configuration and Script
- Front End Cleanup
2025-09-06 18:40:32 -04:00
daniel-c-harvey 0951514778 Front End Work
- Colors & Styles
 - Fonts
 - Small Layout Adjustments
2025-09-06 15:21:03 -04:00
daniel-c-harvey 5a8a2da842 Front End Work
- Home Page
 - Custom Site Styles & Mud Theme Adjustments
2025-09-06 14:19:09 -04:00
daniel-c-harvey 66d800bd26 Front End Work
- Redesign component wiring for audio playback
 - Removed playback logic from the player control and moved it to injectable audio player engine service
 - Chunked/buffered stream loading from Content API passed to Web Audio API playback in 8K blocks
2025-09-06 13:39:26 -04:00
daniel-c-harvey 3766d4e010 Front End
- MudBlazor Theme Manager tryout
 - Navigation bar rework
 - Icons and styles rework
 - Track Gallery & Card layout redesign for SPA
 - Track Player bottom bar
2025-09-05 22:27:12 -04:00
daniel-c-harvey 7f78545a02 *Audio Playback*
Content API:
 - Enabling CORS for access from Blazor app
Web Server:
 - Content API URL environment config
 - Web Audio API JS Interop layer in TypeScript
 - HttpClient configs
Web Client:
 - Audio Tack player controls
 - Audio Player example page
 - Audio Interop Service Layer
 - Named HttpClients
2025-09-05 10:48:07 -04:00
daniel-c-harvey 624974a93c Migrations 2025-09-04 19:58:46 -04:00
daniel-c-harvey 9de2063ea3 Infrastructure upgrades 2025-09-04 19:58:00 -04:00
daniel-c-harvey 5e02d004e3 CLAUDE.md files 2025-09-04 19:57:05 -04:00
daniel-c-harvey 27522c1e1c Front End Track Gallery Controls
- Theming adjustments (still needs a lot of work)
2025-09-04 14:18:35 -04:00
daniel-c-harvey d556d32829 Inject framework HttpClient to support prerendering behavior on server instead of baking in the HttpClient on the client project 2025-09-04 09:48:58 -04:00
daniel f0d60190cc Track Gallery front end
- For now uses a table but will replace with graphical media cards
2025-09-01 16:50:08 -04:00
daniel 77856cbe26 Unnesting the Blazor and moving the database to root 2025-08-30 22:16:46 -04:00
daniel 91ab145b85 DeepDrftWeb startup & setup 2025-08-30 22:02:29 -04:00
daniel 3a11c75e5a DeepDrftWeb Track Controller
- Only provides Paged GET for now (will require auth for write ops)
2025-08-30 21:55:40 -04:00
daniel bda86d018a Track Service (Main business logic, Exception handling layer)
- Uses repo to provide full CRUD
2025-08-30 21:54:32 -04:00
daniel c6f02fb3e8 DeepDrftWeb Dependencies 2025-08-30 21:51:07 -04:00
daniel a7bef818e0 DeepDrftWeb.Client References Models 2025-08-30 21:49:16 -04:00
daniel 0e37cbf712 Inital DeepDrftWeb Entity Framework setup
- DeepDrft DbContext
 - Inital Migration for Track Entity model
 - Track Repository
   - Full CRUD
2025-08-30 21:48:21 -04:00
daniel 4448378bcf Initial MudBlazor app 2025-08-30 01:04:19 -04:00