INNER CODE UNIT · Python
getOutputOffset
google/oboe · apps/OboeTester/scripts/dsp_timing.py:72
def getOutputOffset():
offsetText = getAndroidProperty(kPropertyOutputOffset).strip()
if len(offsetText) == 0:
return 0;
return int(offsetText)
def loadNameValuePairsFromFile(filename):
myvars = {}
with open(filename) as myfile:
for line in myfile:
name, var = line.partition("=")[::2]
myvars[name.strip()] = var
return myvars
def loadNameValuePairsFromString(text):
myvars = {}
listOutput = text.splitlines()
for line in listOutput: