Page 1 of 1

What a difference a keystroke makes ...

Posted: Sun Nov 04, 2012 3:11 pm
by George
I have written a HDA audio player for DOS in assembler. This player basically works but there is a problem I cannot understand. The HDA will not start to output sound when I load the program for the first time, just on the second, third and further time. Then, after compiling or opening the editor it will not play on the first time again.

It will output sound on the first time though if I include a "press any key" function or just hit a key while the program loads without a query for a key.

What could be a possible cause for this problem?