From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: creating/deleting MIDI events Date: Tue, 21 Oct 2003 11:25:49 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3F93E3ED.8080807@emt.iis.fhg.de> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3F93E3ED.8080807@emt.iis.fhg.de> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Bernhard Gerlach Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 20 Oct 2003 15:32:29 +0200, Bernhard Gerlach wrote: > > > Hello, > > Question 1: > > 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... simply use malloc. it's one of few exceptions that the struct is defined explicitly. > Question 2: > > 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. you don't need to free it since it doesn't allocate the memory but give the pointer in the buffer in fact. Takashi ------------------------------------------------------- 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