[EMAIL PROTECTED] wrote: > I wanted to get the tempo, so I did this: > > snd_seq_queue_tempo_t *qt; > snd_seq_queue_tempo_alloca(&qt); > snd_seq_get_queue_tempo(seq,id,qt); > return qt->tempo;//line 91 > > and the compiler told me this: > > alsa.cpp:91: invalid use of undefined type `struct _snd_seq_queue_tempo' > /usr/include/alsa/seq.h:382: forward declaration of `struct > _snd_seq_queue_tempo'
The real definition of snd_seq_queue_tempo_t is hidden deep inside the ALSA library. Applications are not allowed to access its fields directly to allow binary compatibility with future versions of ALSA. To get the tempo, call snd_seq_queue_tempo_get_tempo(qt). HTH Clemens ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel