At Mon, 24 Nov 2003 16:11:57 +0100, Alfons Adriaensen wrote: > > Hello list, > > I heard rumours of a new pcm API in the latest releases of ALSA. > Searched on the ALSA site for 'new api', nothing found. > > Is there any document that describes this new API and the rationale > for it ?
the doxygen output, i.e. online manual on web, is already based on the new API. basically, the difference is found only in some snd_pcm_hw_params_xxx and snd_pcm_sw_params_xxx functions, such as snd_pcm_hw_params_get_access(). these functions returned non-integer value as the value itself, e.g. int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params); with the new API, they return always the error code and store the value in the given pointer uniformly, e.g. int snd_pcm_hw_params_get_access(const snd_pcm_hw_params_t *params, snd_pcm_access_t *access); so that you can check the error condition safely. btw, you can still use the old codes by defining #define ALSA_PCM_OLD_HW_PARAMS_API #define ALSA_PCM_OLD_SW_PARAMS_API before inclusion of asound/asoundlib.h. Takashi ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user