I only use locally sourced, gold-plated memcpy, for warmth.
playing wav files from a ramdisk gave best sound
then moved on to memory play, initially SQ was worse.
found that a function called memcpy was the culprit, most memory players use memcpy and this is one of the reasons why memory play sounds worse ie digital sounding. Fortunately there is an optimised version of memcpy, using this version removes the hard edge produced by memcpy. the other thing I did was to close the file after reading into the buffer.
also most players use malloc to get memory while new is the c++ method and sounds better.
Important update about chainsaws.

Mr Britton said he raised his chainsaw and met the lion head-on as it pounced - a collision he described as feeling like a grown man running directly into him.
"It batted me three or four times with its front paws and as quick as I hit it with that saw it just turned away," he told the Associated Press.
The wounded animal retreated after Mr Britton inflicted a six to eight-inch gash on the lion's shoulder. Mr Britton was left with only a small puncture wound on his forearm.
"You would think if you hit an animal with a chainsaw it would dig right in," he said. "I might as well have hit it with a hockey stick."
Previously, previously, previously, previously, previously, previously.