Timer.c does not compile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to understand what is the right functions
to get the time
stamp related to the PCM frames.

Searching in Alsa code I found the file "timer.c"

http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2timer_8c-example.html

and I suppose it is related to what I need to do.

So I tried to compile it, but I get an error, it seem
to me, the
compiler can't find the
"snd_async_add_timer_handler"..
The output:

dhcp78:~# gcc -Wall -lasound test_timer.c -o
test_timer
test_timer.c: In function `async_callback':
test_timer.c:60: warning: implicit declaration of
function
`snd_async_handler_get_timer'
test_timer.c:60: warning: initialization makes pointer
from integer
without a cast
test_timer.c: In function `main':
test_timer.c:171: warning: implicit declaration of
function
`snd_async_add_timer_handler'
/tmp/ccw926SP.o(.text 0x285): In function
`async_callback':
: undefined reference to `snd_async_handler_get_timer'
/tmp/ccw926SP.o(.text 0x9e3): In function `main':
: undefined reference to `snd_async_add_timer_handler'
collect2: ld returned 1 exit status
dhcp78:~#


I tried to perform a grep into Alsa source code but I
did not found the
function "snd_async_add_timer_handler"...

Can someone help me...it is not trivial try to look
into Alsa code for a
newb like me..

Thanks a lot
Agata

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux