What is "aplay" ? A uos demo ?
Have you try with different configuration, example with 16 or 32 or float 32 sample format ?
function AddIntoDevOut(Device: LongInt; Latency: CDouble;
SampleRate: LongInt; Channels: LongInt; SampleFormat: LongInt ; FramesCount: LongInt ): LongInt;
////// Add a Output into Device Output
//////////// Device ( -1 is default device )
//////////// Latency ( -1 is latency suggested ) )
//////////// SampleRate : delault : -1 (44100)
//////////// Channels : delault : -1 (2:stereo) (0: no channels, 1:mono, 2:stereo, ...)
//////////// SampleFormat : default : -1 (1:Int16) (0: Float32, 1:Int32, 2:Int16)
//////////// FramesCount : default : -1 (= 65536)
// result : Output Index in array -1 = error
/// example : OutputIndex1 := AddIntoDevOut(-1,-1,-1,-1,0);
function AddFromFile(Filename: Pchar; OutputIndex: LongInt;
SampleFormat: LongInt ; FramesCount: LongInt): LongInt;
/////// Add a input from audio file with custom parameters
////////// FileName : filename of audio file
////////// OutputIndex : Output index of used output// -1: all output, -2: no output, other LongInt refer to a existing OutputIndex (if multi-output then OutName = name of each output separeted by ';')
//////////// SampleFormat : default : -1 (1:Int16) (0: Float32, 1:Int32, 2:Int16)
//////////// FramesCount : default : -1 (65536)
// result : Input Index in array -1 = error
//////////// example : InputIndex1 := AddFromFile(edit5.Text,-1,0,-1);
FreD