vitasdk
Documentation of the vitasdk
usbaudioin.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_USBAUDIOIN_H_
8 #define _PSP2_USBAUDIOIN_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef enum SceUsbAudioInErrorCode {
34 
35 typedef struct SceUsbAudioInDeviceInfo {
36  uint16_t vendor;
37  uint16_t product;
41 
46 
56 SceInt32 sceUsbAudioInOpenDevice(SceUInt32 device_id, int bits, int rate);
57 
66 
79 
89 
101 
113 
125 
138 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* _PSP2_USBAUDIOIN_H_ */
void * buffer
Definition: bt.h:6
int32_t SceInt32
Definition: types.h:44
uint32_t SceUInt32
Definition: types.h:45
uint16_t vendor
Definition: usbaudioin.h:36
SceInt32 sceUsbAudioInCloseDevice(SceUInt32 device_id)
Close usb audio device.
SceUsbAudioInErrorCode
Definition: usbaudioin.h:17
SceUInt32 device_id
Definition: usbaudioin.h:43
VITASDK_BUILD_ASSERT_EQ(0x18, SceUsbAudioInDeviceInfo)
SceInt32 sceUsbAudioInGetMaxValueOfVolume(SceUInt32 device_id, SceUInt32 *volume)
Get usb audio device max volume.
SceInt32 sceUsbAudioInOpenDevice(SceUInt32 device_id, int bits, int rate)
Open usb audio device.
SceInt32 sceUsbAudioInInput(SceUInt32 device_id, void *buffer)
Receive sound data from usb device.
SceUInt32 _reserved[5]
Definition: usbaudioin.h:38
SceInt32 sceUsbAudioInGetDeviceInformation(SceUInt32 device_id, SceUsbAudioInDeviceInfo *info)
Get usb audio device info.
SceInt32 sceUsbAudioInGetMinValueOfVolume(SceUInt32 device_id, SceUInt32 *volume)
Get usb audio device min volume.
SceInt32 sceUsbAudioInGetDeviceIdList(SceUsbAudioInDeviceListItem *list, SceUInt32 *device_count, SceUInt32 list_size)
Get available audio usb devices.
SceInt32 sceUsbAudioInSetCurrentValueOfVolume(SceUInt32 device_id, SceUInt32 volume)
Set usb audio device volume.
uint16_t product
Definition: usbaudioin.h:37
@ SCE_USBAUDIO_IN_ERROR_PORT_IS_ALREADY_OPENED
Definition: usbaudioin.h:24
@ SCE_USBAUDIO_IN_ERROR_INVALID_ARGUMENT
Definition: usbaudioin.h:18
@ SCE_USBAUDIO_IN_ERROR_FAILED_TO_READ_STREAM
Definition: usbaudioin.h:26
@ SCE_USBAUDIO_IN_ERROR_PROCESS_HAS_NOT_A_DEVICE_OWNERSHIP
Definition: usbaudioin.h:25
@ SCE_USBAUDIO_IN_ERROR_NOT_SUPPORTED
Definition: usbaudioin.h:22
@ SCE_USBAUDIO_IN_ERROR_FAILED_TO_COPY_BUFFER
Definition: usbaudioin.h:29
@ SCE_USBAUDIO_IN_ERROR_DEVICE_WAS_HALTED
Definition: usbaudioin.h:27
@ SCE_USBAUDIO_IN_ERROR_NO_MEMORY
Definition: usbaudioin.h:20
@ SCE_USBAUDIO_IN_ERROR_DEVICE_NOT_FOUND
Definition: usbaudioin.h:21
@ SCE_USBAUDIO_IN_ERROR_TIMEOUT
Definition: usbaudioin.h:31
@ SCE_USBAUDIO_IN_ERROR_FAILED_TO_REQUEST_ISOCHRONOUS
Definition: usbaudioin.h:30
@ SCE_USBAUDIO_IN_ERROR_NO_DATA_TO_READ
Definition: usbaudioin.h:28
@ SCE_USBAUDIO_IN_ERROR_PROCESS_CANNOT_OPEN_MORE_DEVICE
Definition: usbaudioin.h:32
@ SCE_USBAUDIO_IN_ERROR_DUPLICATE_ID
Definition: usbaudioin.h:19
@ SCE_USBAUDIO_IN_ERROR_CANNOT_GET_PORT_OWNERSHIP
Definition: usbaudioin.h:23
Definition: usbaudioin.h:35
Definition: usbaudioin.h:42