Aurora is a modern Windows desktop audio player built with WPF and .NET 8. The current release is version 1.0.10.
- Plays physical audio CDs through the Windows CD audio device
- Reads disc title, artist, track titles, and track artists from CD-Text when the drive and disc expose it
- Fills missing disc and track metadata through MusicBrainz and GnuDB while preserving CD-Text and higher-priority provider fields
- Lets you choose between multiple installed optical drives
- Detects audio CDs at startup and automatically loads newly inserted discs
- Detects disc removal and returns the player to its ready state
- Retries short drive spin-up/readiness failures without repeatedly reloading failed media
- Probes a detected disc in the background and preserves current playback unless the disc is confirmed as playable audio
- Keeps every MCI command for a CD device on one dedicated owner thread, allowing reliable background detection and foreground playback controls
- Filters data tracks from mixed-mode CDs
- Plays WAV, MP3, and FLAC files
- Follows Windows' default audio output, preserving and automatically resuming local-file playback when Bluetooth or other speakers reconnect
- Shows a selectable, double-clickable song list with duration and source
- Plays only the tracks you select, in list order, without disturbing ordinary album playback
- Play/pause, previous/next, mouse and keyboard seeking, working local-file and CD-session volume, and CD tray eject controls
- Reports local-file playback failures without accidentally advancing the queue
- Borderless resizable interface with custom window controls
Tick the tracks you want and press Play selected. Aurora plays exactly those, in list order, and then reports Selection complete. While a selection is playing, Next and Previous move within it. The tick in the column header takes or clears them all.
Ticks decide what plays; the row highlight is only a cursor, so it follows the music without disturbing your choice. Double-clicking any track ignores the ticks and plays the album through from that point.
The repeat button plays the current track over and over instead of moving on. It takes effect straight away, whether it is turned on before playing or part-way through a song, and turning it off lets playback continue normally from wherever it is.
An audio CD carries no filenames, so Aurora names it from two kinds of sources, in order.
CD-Text, when the disc has it: read straight from the lead-in, offline and instant. Most commercially pressed discs do not carry it.
Online databases, when the disc does not. Aurora reads the disc's table of contents and tries an exact MusicBrainz disc-ID match, a conservative MusicBrainz table-of-contents match, and finally the freedb-compatible GnuDB service. Ambiguous matches are rejected instead of attaching metadata from the wrong album.
This happens in the background after the disc has loaded and is already playable—the track list appears immediately as numbered tracks, and titles replace them a moment later if the disc is known. Playback never waits for metadata, and each network request has an eight-second timeout. If every lookup fails, the numbered tracks remain.
Online lookup runs only for discs without CD-Text. It sends the disc geometry needed to identify the album; it does not send audio or personal information.
Install the .NET 8 SDK or newer, then run:
dotnet restore AuroraCDPlayer.slnx
dotnet run --project AuroraCDPlayer.csproj -c Releasedotnet build AuroraCDPlayer.slnx -c Release
dotnet test AuroraCDPlayer.slnx -c Release
dotnet publish AuroraCDPlayer.csproj -c Release -r win-x64 --self-contained falseThe published application is written to bin/Release/net8.0-windows/win-x64/publish/.
To create the self-contained installer, install Inno Setup 6 and run:
dotnet publish AuroraCDPlayer.csproj -c Release -r win-x64 --self-contained true -o dist\publish
& "$env:LOCALAPPDATA\Programs\Inno Setup 6\ISCC.exe" installer\AuroraCDPlayer.issThe installer is written to dist/AuroraCDPlayerSetup.exe. It installs Aurora for all
users, so Windows requests administrator approval during setup; the player itself runs
without elevation.
- FLAC playback uses Windows Media Foundation through NAudio. Current Windows 10 and Windows 11 installations include the required FLAC decoder.
- Audio-output changes are driven by Windows endpoint notifications and debounced because Bluetooth devices commonly raise several state/default-device events while connecting. Local-file recovery preserves its resume position and only completes while the restarted output remains the available default. Playback retries are bounded; if notification registration is unavailable, a slower five-second registration probe remains active. CD audio stays on Windows' own stream-routing path.
- CD status, pause, stop, close, seek, and playback requests run asynchronously from the window. Each queued MCI request has a 15-second deadline. A timeout retires the service and discards pending transport commands; an outstanding native call cannot be forcibly interrupted, but a late seek cannot subsequently issue play. Reloading the disc opens a fresh service.
- CD start failures leave a stopped state, and pausing at a physical track boundary preserves the pause until the user resumes. Completed local files retain their final progress display. Replacing the library clears the previous Now Playing presentation.
- Session-volume changes use one serialized writer that coalesces newer requests. Failed drive-enumeration snapshots do not clear an existing library. Fuzzy metadata lookup rejects ambiguous discs within a multidisc release.
- CD-Text is read directly with
IOCTL_CDROM_READ_TOC_EX. Some discs contain no CD-Text, and some USB optical drives do not pass CD-Text data through to Windows; Aurora falls back to numbered tracks in either case. - A lead-in read asks for a 4-byte header first and then for exactly the length that header declares. The driver accepts far less than the header's 2-byte length field allows — 0x8002 on a PX-891SAF PLUS — and does not document the limit, so a fixed large buffer is rejected outright with
ERROR_INVALID_PARAMETER. Because every failure produces an empty result, that rejection is indistinguishable from a disc with nothing on it, which is exactly how it went unnoticed. - Aurora distinguishes a disc that carries no CD-Text from a drive that refused to answer, and says so. Only the first is a statement about the disc.
- The MusicBrainz disc ID is computed from the raw TOC read with
CDROM_READ_TOC_EX_FORMAT_TOC, since MCI reports track lengths but discards the frame offsets the ID is built from. - For physical CDs, Aurora applies the slider to the Windows audio session created for its MCI playback. The slider remains enabled and retries briefly while Windows creates that session.
- CD pause is implemented as an exact track/frame stop-and-resume operation because some optical drives do not expose a reliable paused MCI state.
- Playing a selection that skips tracks gives each track an explicit MCI end point, which costs a short re-cue gap between tracks. Whenever the rest of the queue is simply the rest of the disc in order, Aurora issues one unbounded play instead and the drive runs on gaplessly, so ordinary album playback keeps that path unchanged. The test reads the disc's own track numbering rather than list order, so it also stops in front of a data track that was filtered out of the list rather than running into it.
- An MCI end point is approximate: drives overshoot it by a few frames and park just inside the following track, reporting that track rather than the tail of the requested one. Aurora therefore ends a bounded track when the reported track passes the requested one.
- A drive keeps reporting
playingafter a disc runs out, and after a bounded end point, with only the position standing still. Transport state alone cannot detect the end of a disc, so Aurora watches for the position holding still at the end of the track instead. Both behaviours were measured on a PLEXTOR PX-891SAF PLUS. - Previous restarts the current track once more than three seconds have elapsed, and steps back only near a track's start. CD replays and resumes wait for the physical seek to finish before issuing play, preventing the two transport commands from racing on a slow seek. The wait stays on the MCI owner thread while the UI remains responsive; transport and status polling resume once the start completes.
- Repeat leaves CD playback unbounded because some drives stutter throughout an MCI play that carries an explicit end point. Aurora watches for the drive to enter the next track (or for the final track to stall at the end) and then re-cues the repeated track, polling more closely only during the final two seconds to minimize bleed from the following track. The button changes only that decision and the polling cadence; toggling it mid-song does not seek or restart the active playback. Turning repeat off also returns to the queued track order, including selections that skip physical disc tracks.
- CD playback requires a physical optical drive and a music CD.
The automated suite includes injected drive/audio failures and WPF state-transition tests for command timeouts, late seek completion, stale status replies, pause at track boundaries, failed starts, local completion, output recovery, registration retry, volume ordering, capture lifecycle, and metadata merging. These tests do not require an optical drive or live audio output. The physical-device observations below predate these audit fixes and should be repeated before release.
The release was functionally tested on a PLEXTOR PX-891SAF PLUS with an 18-track audio CD. The tests exercised real position advancement, pause/resume, seek, track selection, live CD-session volume readback, stop, physical eject/close, removal detection, automatic reinsertion and track-list reload. WAV, MP3 and FLAC files were each decoded and exercised through play, pause, resume, seek, volume and stop. The WPF window was also checked for control clipping, distinct transport/window controls, readable drive-picker items and automatic CD loading.
Selected-track playback was exercised on the same drive and disc. A 3, 7, 12 selection played each track in order and stopped at that track's own boundary without running into an unselected track. Seeking a paused disc was confirmed to move the resume point without restarting, and to resume from the point it was moved to. End-of-disc detection fires as the last track runs out, and stays silent through steady playback and while paused. Optical-drive enumeration holds its handle count across 400 sweeps, roughly thirteen minutes of the drive monitor's polling.
Online lookup was exercised end to end on the same drive. The 18-track test disc, which carries no CD-Text, loaded and became playable as numbered tracks, and was then named from MusicBrainz in the background; all 18 tracks took their real titles and artists while the UI stayed responsive. The disc ID calculation reproduces MusicBrainz's own published example exactly. Every shape of broken connection was checked against the timeout: an unresolvable host fails in 0.1s, a refused port in 2.0s, and a black-holed address is cut off at the 8s bound; each raises an error the lookup treats as "no titles" rather than as a fault.
Some paths remain unexercised. No disc carrying CD-Text was available, so the parser itself is still only reasoned about — what was fixed and proven is that the read was being rejected before any parsing could happen. Double-byte (non-Latin) CD-Text is untested for the same reason. No mixed-mode disc was available, so stopping in front of a filtered-out data track follows from the track numbering rather than from a measurement.