Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ALSA9Dynamic.h

Go to the documentation of this file.
00001 #ifndef ALSA9_DYNAMIC_H 00002 00003 #include <alsa/asoundlib.h> 00004 00005 /* typedef int (*foo_f)(char c) */ 00006 #define FUNC(ret, name, proto) typedef ret (*name##_f) proto 00007 #include "ALSA9Functions.h" 00008 #undef FUNC 00009 00010 /* extern foo_f dfoo */ 00011 #define FUNC(ret, name, proto) extern name##_f d##name 00012 #include "ALSA9Functions.h" 00013 #undef FUNC 00014 00015 #define dsnd_pcm_hw_params_alloca(ptr) { assert(ptr); *ptr = (snd_pcm_hw_params_t *) alloca(dsnd_pcm_hw_params_sizeof()); memset(*ptr, 0, dsnd_pcm_hw_params_sizeof()); } 00016 #define dsnd_pcm_sw_params_alloca(ptr) { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(dsnd_pcm_sw_params_sizeof()); memset(*ptr, 0, dsnd_pcm_sw_params_sizeof()); } 00017 #define dsnd_pcm_info_alloca(ptr) { assert(ptr); *ptr = (snd_pcm_info_t *) alloca(dsnd_pcm_info_sizeof()); memset(*ptr, 0, dsnd_pcm_info_sizeof()); } 00018 #define dsnd_ctl_card_info_alloca(ptr) { assert(ptr); *ptr = (snd_ctl_card_info_t *) alloca(dsnd_ctl_card_info_sizeof()); memset(*ptr, 0, dsnd_ctl_card_info_sizeof()); } 00019 #define dsnd_pcm_status_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_status_t *) alloca(dsnd_pcm_status_sizeof()); memset(*ptr, 0, dsnd_pcm_status_sizeof()); } while (0) 00020 00021 CString LoadALSA(); 00022 void UnloadALSA(); 00023 00024 #endif 00025 00026 /* 00027 * (c) 2003-2004 Glenn Maynard 00028 * All rights reserved. 00029 * 00030 * Permission is hereby granted, free of charge, to any person obtaining a 00031 * copy of this software and associated documentation files (the 00032 * "Software"), to deal in the Software without restriction, including 00033 * without limitation the rights to use, copy, modify, merge, publish, 00034 * distribute, and/or sell copies of the Software, and to permit persons to 00035 * whom the Software is furnished to do so, provided that the above 00036 * copyright notice(s) and this permission notice appear in all copies of 00037 * the Software and that both the above copyright notice(s) and this 00038 * permission notice appear in supporting documentation. 00039 * 00040 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00041 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00042 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00043 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00044 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00045 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00046 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00047 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00048 * PERFORMANCE OF THIS SOFTWARE. 00049 */

Generated on Thu Jan 27 20:57:17 2005 for StepMania by doxygen 1.3.7