PSP2SDK
dirty-f9e4f2d
The free SDK for PSP2
|
00001 00012 #ifndef _PSP2_AUDIOIN_H_ 00013 #define _PSP2_AUDIOIN_H_ 00014 00015 #ifdef __cplusplus 00016 extern "C" { 00017 #endif 00018 00019 enum { 00021 SCE_AUDIO_IN_ERROR_FATAL = 0x80260100, 00022 00024 SCE_AUDIO_IN_ERROR_INVALID_PORT = 0x80260101, 00025 00027 SCE_AUDIO_IN_ERROR_INVALID_SIZE = 0x80260102, 00028 00030 SCE_AUDIO_IN_ERROR_INVALID_SAMPLE_FREQ = 0x80260103, 00031 00033 SCE_AUDIO_IN_ERROR_INVALID_PORT_TYPE = 0x80260104, 00034 00036 SCE_AUDIO_IN_ERROR_INVALID_POINTER = 0x80260105, 00037 00039 SCE_AUDIO_IN_ERROR_INVALID_PORT_PARAM = 0x80260106, 00040 00042 SCE_AUDIO_IN_ERROR_PORT_FULL = 0x80260107, 00043 00045 SCE_AUDIO_IN_ERROR_OUT_OF_MEMORY = 0x80260108, 00046 00048 SCE_AUDIO_IN_ERROR_NOT_OPENED = 0x80260109, 00049 00051 SCE_AUDIO_IN_ERROR_BUSY = 0x8026010A 00052 }; 00053 00054 enum { 00055 PSP2_AUDIO_IN_PORT_TYPE_VOICE = 0, 00056 PSP2_AUDIO_IN_PORT_TYPE_RAW = 0x0002 00057 }; 00058 00059 enum { 00060 PSP2_AUDIO_IN_PARAM_FORMAT_S16_MONO = 0, 00061 PSP2_AUDIO_IN_GETSTATUS_MUTE = 1 00062 }; 00063 00065 int sceAudioInOpenPort(int portType, int grain, int freq, int param); 00066 00068 int sceAudioInReleasePort(int port); 00069 00070 int sceAudioInInput(int port, void *destPtr); 00071 00072 /* get status */ 00073 int sceAudioInGetAdopt(int portType); 00074 int sceAudioInGetStatus(int select); 00075 00076 #ifdef __cplusplus 00077 } 00078 #endif 00079 00080 #endif /* _PSP2_AUDIOIN_H_ */