As cilu points out, you have to do this in a loop. For normal 16bit LE PCM, your stream should be of samples each 32 bits where HIWORD is the right channel and LOWORD is the left channel.