vitasdk
Documentation of the vitasdk
usbaudioin.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>

Go to the source code of this file.

Data Structures

struct  SceUsbAudioInDeviceInfo
 
struct  SceUsbAudioInDeviceListItem
 

Enumerations

enum  SceUsbAudioInErrorCode {
  SCE_USBAUDIO_IN_ERROR_INVALID_ARGUMENT = 0x803e0001 , SCE_USBAUDIO_IN_ERROR_DUPLICATE_ID = 0x803e0002 , SCE_USBAUDIO_IN_ERROR_NO_MEMORY = 0x803e0003 , SCE_USBAUDIO_IN_ERROR_DEVICE_NOT_FOUND = 0x803e0004 ,
  SCE_USBAUDIO_IN_ERROR_NOT_SUPPORTED = 0x803e0005 , SCE_USBAUDIO_IN_ERROR_CANNOT_GET_PORT_OWNERSHIP = 0x803e0006 , SCE_USBAUDIO_IN_ERROR_PORT_IS_ALREADY_OPENED = 0x803e0007 , SCE_USBAUDIO_IN_ERROR_PROCESS_HAS_NOT_A_DEVICE_OWNERSHIP = 0x803e0008 ,
  SCE_USBAUDIO_IN_ERROR_FAILED_TO_READ_STREAM = 0x803e0009 , SCE_USBAUDIO_IN_ERROR_DEVICE_WAS_HALTED = 0x803e000a , SCE_USBAUDIO_IN_ERROR_NO_DATA_TO_READ = 0x803e000b , SCE_USBAUDIO_IN_ERROR_FAILED_TO_COPY_BUFFER = 0x803e000c ,
  SCE_USBAUDIO_IN_ERROR_FAILED_TO_REQUEST_ISOCHRONOUS = 0x803e000d , SCE_USBAUDIO_IN_ERROR_TIMEOUT = 0x803e000e , SCE_USBAUDIO_IN_ERROR_PROCESS_CANNOT_OPEN_MORE_DEVICE = 0x803e000f
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x18, SceUsbAudioInDeviceInfo)
 
 VITASDK_BUILD_ASSERT_EQ (4, SceUsbAudioInDeviceListItem)
 
SceInt32 sceUsbAudioInOpenDevice (SceUInt32 device_id, int bits, int rate)
 Open usb audio device. More...
 
SceInt32 sceUsbAudioInCloseDevice (SceUInt32 device_id)
 Close usb audio device. More...
 
SceInt32 sceUsbAudioInGetDeviceIdList (SceUsbAudioInDeviceListItem *list, SceUInt32 *device_count, SceUInt32 list_size)
 Get available audio usb devices. More...
 
SceInt32 sceUsbAudioInGetDeviceInformation (SceUInt32 device_id, SceUsbAudioInDeviceInfo *info)
 Get usb audio device info. More...
 
SceInt32 sceUsbAudioInGetMaxValueOfVolume (SceUInt32 device_id, SceUInt32 *volume)
 Get usb audio device max volume. More...
 
SceInt32 sceUsbAudioInGetMinValueOfVolume (SceUInt32 device_id, SceUInt32 *volume)
 Get usb audio device min volume. More...
 
SceInt32 sceUsbAudioInSetCurrentValueOfVolume (SceUInt32 device_id, SceUInt32 volume)
 Set usb audio device volume. More...
 
SceInt32 sceUsbAudioInInput (SceUInt32 device_id, void *buffer)
 Receive sound data from usb device. More...