ALSA

Hello!
I’ve to write rec. sound an app. under QNX4.
It has to detect begining and the end of speeker.
Can i use ALSA 0.5 drivers?
Does anyone has some example sources which show
how to use alsa drivers and how to get sample and make
calculation ex. of signal begining?
Please help,
Krystian