AvieMix Wiki
Transfer files between Creative Zen Audio Players and Windows 11.
Status: Pre-Alpha
Brought to you by:
custardtoad
Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
AvieMix
AvieMix browses a Creative NOMAD Jukebox, Creative Zen or Dell jukebox on Windows 11, copies its tracks to the PC
and sends MP3/WAV tracks to the player. It is built on libnjb 2.2.7 and libusb-win32, and supports the 13 players
libnjb handles in their normal (non-MTP) firmware, listed in
setup\players.ps1. It has been tested with a CreativeZen Touch (USB
041E:411B). The project also includeszentest, a command-line tool for the same players.gui\AvieMix\AvieMix.exe, C# WinForms, .NET Framework 4.8): browse the player, copy and send tracks.gui\native\zennjb.czentest.ccheck-zen.ps1build.ps1build\zentest.exe,build\zennjb.dllandbuild\gui\AvieMix.exe(MSVC, .NET SDK; x64).win32\usb.h<usb.h>, libusb-win32 calls itlusb0_usb.h.setup\players.ps1) and the README for the setup kit.driver\aviemix_libusb0.infmake-dist.ps1builds and signs its catalog.make-dist.ps1dist\AvieMixSetup(+.zip) for other PCs.docs\Zen Touch Test Guide.pdfdeps\libnjb\libnjb-2.2.7.tar.gzfrom SourceForge (MD5 verified) and its extracted, patched source.deps\libusb-win32\libusb-win32-bin-1.4.0.2.zipfrom github.com/mcuee/libusb-win32 (SHA-256 verified), extracted.One-time setup
041E 411B),pick libusb-win32 (not WinUSB: libnjb uses the libusb-0.1 API) and click Install Driver.
check-zen.ps1should then reportDriver: libusb0. Zadig also putslibusb0.dllin System32.To undo: Device Manager → the player → Uninstall device, ticking "delete the driver".
Or skip Zadig: build the setup kit (below) and run its
install.cmd, which covers every supported player.(MSVC headers and the Windows SDK). AvieMix also needs the .NET SDK.
Build and run
Copied files are named
Artist - Title.mp3(or.wma/.wav), and a clash with a different track of the samename gets
(track ID)added. A file that is already there with the right size is skipped, so an interrupted-g allcan just be run again. Ctrl+C cancels the current transfer cleanly with the player and deletes the partialfile. Copying runs at roughly 8–10 MB/s, plus a few seconds up front to read the track list.
The original filenames aren't used: the player only reports them as "extended tags", which libnjb warns make
reading the track list much slower.
AvieMix (the program)
build.ps1buildsbuild\gui\AvieMix.exewhen the .NET SDK is installed. It connects on start-up and showsthe player's details, all tracks (sortable, searchable), playlists and data files, and copies selected or listed
tracks to a folder with progress and Cancel. Naming and skip rules are the same as zentest's, so each tool skips
tracks the other already copied.
Send to player… (or dragging MP3/WAV files or folders onto the track list) puts tracks on the player.
AudioFile.csreads each file's length (MPEG frame headers with Xing/Info/VBRI for VBR; WAV fmt/data chunks)and tags (ID3v2.2–2.4, ID3v1, WAV LIST INFO; otherwise an "Artist - Title" file name). Only PCM WAV is accepted.
Empty artist/album/genre become
<Unknown>, like the player's existing library. Tracks already on the player(same title, artist and size) are skipped; it checks free space and asks first, shows progress, and Cancel leaves
nothing half-sent. Afterwards it re-reads the player and selects the new tracks. It never deletes or changes
existing tracks (
ZenDevice.DeleteTrackexists for tests only).gui\AvieMix\Resources\AvieMix.ico) is the program and window icon; the About box(toolbar, far right) shows
Resources\aviemixlogo.jpg. Both are embedded in AvieMix.exe, so no extra files ship.gui\native\zennjb.cbuildsbuild\zennjb.dll: libnjb flattened into fixed-size structs and simple calls.gui\AvieMix\Native.csP/Invokes it;ZenDevice.cswraps it and serialises calls with a lock(libnjb isn't thread-safe);
TrackNaming.csports zentest's file naming;MainForm.csis the window.MainForm.Designer.csandAboutForm.Designer.csare in Visual Studio designer format, so the layouts can beedited in the form designer: open
gui\AvieMix\AvieMix.csprojin Visual Studio. Buildzennjb.dllwithbuild.ps1first.Setup kit for other PCs
Other PCs don't need Zadig or Visual Studio: give them
dist\AvieMixSetup.zip. Itsinstall.cmdtrusts thekit's signing certificate and installs the driver package with
pnputil(one admin prompt);uninstall.cmdreverses both, and also removes the Zen Touch-only package that earlier kits (and Zadig) installed. Build the kit
after changing the code; no player or Zadig is needed:
make-dist.ps1builds the driver package itself, the way Zadig does:driver\aviemix_libusb0.infand the libusb-win32 1.4.0.2 files (libusb0.sys,libusb0.dll,libusb0_x86.dll, all signed by Microsoft), after checking that the INF lists exactly the players insetup\players.ps1.makecat(Windows SDK).CN=AvieMix driver package (libusb-win32),valid 20 years), then deletes the certificate's private key, so it can't sign anything else.
driver\aviemix-driver.cer.Each build gets its own certificate. The package is x64-only.
Changes to libnjb
All in
deps\libnjb\libnjb-2.2.7\src\, markedAvieMix patch:libnjb.h:#define snprintf _snprintfonly for compilers older than VS2015 (newer ones reject it with a hard error).libnjb.h: on Windows theu_intN_ttypes come from<stdint.h>, replacing libnjb's ownint8_t/int16_t/...typedefs, which clash with
<stdint.h>(included byusb_io.c).procedure.c: includes<io.h>under MSVC so theopen/read/write/closecalls used for track and filetransfers are properly declared.
procedure.c(NJB_Get_Track_fd): asks for exactly the bytes left in the last block (rounded up to even).Asking for more made the USB read wait for a zero-length packet the player never sends when that remainder is a
multiple of 512 smaller than the request, so about 4% of tracks (16 of 390 here, all with sizes that are exact
multiples of 512) timed out after ~80 s and could not be copied. Write-up and patch:
docs\.zennjb.dllalso sets its own C runtime to UTF-8 (setlocale(LC_CTYPE, ".UTF8")) so libnjb's narrowopen()andstat()accept any file name when sending; this needs Windows 10 1803 or later.The remaining compiler warnings are upstream size/sign conversions and debug-only
printfformats; they don'taffect reading from the player.