I Did the same. i first copy the code for the playing the file with DirectX7 and then put a command button to play it. Then as per your instructions i Copied the function if the converwave16Resample function and passed the arguments to this function like this

resultbuffer = ConvertWave16ReSample(DSSecBuffer, 22500, 14700, False)

which gives me the error to type mismatch:array or user defined type should be used for DSSecBuffer

Can you help me?