preloadScanBeep
Preloads the scan completion sound into a shared SoundPool.
Call this before scanning starts to reduce playback latency when a scan result is captured. If the requested soundResId is already loaded, this function is a no-op.
Parameters
context
Context used to access the raw sound resource.
soundResId
Raw resource ID of the sound to preload.