Bernhard Gerlach wrote:
> How do create a pointer and allocate memory to variables of type
> snd_seq_event to generate events by software? The function
> snd_seq_create_event doesn't exist anymore...

Use a standard pointer, and malloc/calloc/whateveralloc.
You can allocate events directly on the stack (without pointers), too.

> snd_seq_event * event;
> snd_seq_event_input( handle, &event );
>
> This allocates memory, but how do I release it? The function
> snd_seq_free_event is marked as deprecated and seems to be empty.

The event lives in some internal buffer managed by the ALSA library.
Simply don't do anything to free it.

The event buffer may be reused by the next snd_seq_event_input() call.


HTH
Clemens




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to