Determining the Position of a Sampled Audio Player To create a DataLine object, see ``Loading and Playing Sampled Audio'' and ``Playing Streaming Sampled Audio''. double timeInSeconds = dataline.getMicrosecondPosition()/1000000.0d;