Sound Input

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Dylen.

For a project I want to work on I need some functions for sound input as well as sound output. (Essentially, I need to trigger a timer when significant sound is detected trhough a mic). Hence I also need some way of measuring elapsed time, for which I can't find the functions, e.g.:

start.l = CurrentTime()

[wait for input]

end.l = CurrentTime()

duration.l = end.l - start.l


Any plans for these?

D
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

You can use the API function GetTickCount_() which returns the number of mlliseconds since Windows has started.

Fred - AlphaSND
Post Reply