sdl_audioin_internal.h
来自「spec5xx for xp in terminal 在xp下编译过的摄像头驱」· C头文件 代码 · 共 47 行
H
47 行
/*************************************************************************** * Copyright (C) 2004 by Tyler Montbriand * * tsm@accesscomm.ca * * * * Released under the GNU LGPL * ***************************************************************************/#ifndef __SDL_AUDIOIN_INTERNAL_H__#define __SDL_AUDIOIN_INTERNAL_H__#include <SDL_audio.h>typedef union UniPtr{ Uint8 *u8ptr; Sint8 *s8ptr; Uint16 *u16ptr; Sint16 *s16ptr; Uint32 *u32ptr; Sint32 *s32ptr; float *fptr; double *dptr; long double *ldptr; void *vptr; } UniPtr;/** * Returns 1 if audiospec is valid, 0 if not. * Outputs more verbose errorcodes to SDL_GetError. * ignores samples and silence. */DECLSPEC int SDLCALL AudioSpecValid(const SDL_AudioSpec *spec);/*! \brief Calculates the byte size of the buffer. */DECLSPEC int SDLCALL AudioSpecSize(const SDL_AudioSpec *spec);/*! \brief Returns the # of milliseconds of sound in one buffer. */DECLSPEC int SDLCALL AudioSpecTicks(const SDL_AudioSpec *spec);DECLSPEC int SDLCALL null_init(void);DECLSPEC void SDLCALL null_quit(void);extern volatile SDL_audiostatus audioin_status;#endif/*__SDL_AUDIOIN_INTERNAL_H__*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?