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

Go to the source code of this file.

Data Structures

struct  SceAudioencInitStreamParam
 Initialization structure to provide to SceAudioencInitParam. More...
 
struct  SceAudioencInfoCelp
 Information structure for CELP. More...
 
struct  SceAudioencOptInfoCelp
 Optional information structure for CELP. More...
 
union  SceAudioencInitParam
 Initialization structure to pass as argument to sceAudioencInitLibrary. More...
 
union  SceAudioencInfo
 Audio encoder info. More...
 
union  SceAudioencOptInfo
 Audio encoder optional info. More...
 
struct  SceAudioencCtrl
 

Macros

#define SCE_AUDIOENC_WORD_LENGTH_16BITS   16
 Definition of wordlength. More...
 
#define SCE_AUDIOENC_TYPE_CELP   0x2006U
 Audio encoder type. More...
 
#define SCE_AUDIOENC_CELP_MAX_STREAMS   1
 Max number of streams. More...
 
#define SCE_AUDIOENC_CELP_MAX_SAMPLES   320
 Max number of samples. More...
 
#define SCE_AUDIOENC_CELP_MAX_ES_SIZE   24
 Max elementary stream size. More...
 
#define SCE_AUDIOENC_CELP_MPE   (0)
 CELP encoder default excitation mode. More...
 
#define SCE_AUDIOENC_CELP_SAMPLING_RATE_8KHZ   (8000)
 CELP encoder default sampling rate. More...
 

Enumerations

enum  SceAudioencErrorCode {
  SCE_AUDIOENC_ERROR_API_FAIL = 0x80860000 , SCE_AUDIOENC_ERROR_INVALID_TYPE = 0x80860001 , SCE_AUDIOENC_ERROR_INVALID_INIT_PARAM = 0x80860002 , SCE_AUDIOENC_ERROR_ALREADY_INITIALIZED = 0x80860003 ,
  SCE_AUDIOENC_ERROR_OUT_OF_MEMORY = 0x80860004 , SCE_AUDIOENC_ERROR_NOT_INITIALIZED = 0x80860005 , SCE_AUDIOENC_ERROR_A_HANDLE_IN_USE = 0x80860006 , SCE_AUDIOENC_ERROR_ALL_HANDLES_IN_USE = 0x80860007 ,
  SCE_AUDIOENC_ERROR_INVALID_PTR = 0x80860008 , SCE_AUDIOENC_ERROR_INVALID_HANDLE = 0x80860009 , SCE_AUDIOENC_ERROR_NOT_HANDLE_IN_USE = 0x8086000A , SCE_AUDIOENC_ERROR_CH_SHORTAGE = 0x8086000B ,
  SCE_AUDIOENC_ERROR_INVALID_WORD_LENGTH = 0x8086000C , SCE_AUDIOENC_ERROR_INVALID_SIZE = 0x8086000D , SCE_AUDIOENC_ERROR_INVALID_ALIGNMENT = 0x8086000E , SCE_AUDIOENC_ERROR_UNSUPPORTED = 0x8086000F
}
 
enum  SceAudioencCelpErrorCode { SCE_AUDIOENC_CELP_ERROR_INVALID_CONFIG = 0x80861001 }
 
enum  SceAudioencCelpBitrate {
  SCE_AUDIOENC_CELP_BIT_RATE_3850BPS = 3850 , SCE_AUDIOENC_CELP_BIT_RATE_4650BPS = 4650 , SCE_AUDIOENC_CELP_BIT_RATE_5700BPS = 5700 , SCE_AUDIOENC_CELP_BIT_RATE_6600BPS = 6600 ,
  SCE_AUDIOENC_CELP_BIT_RATE_7300BPS = 7300 , SCE_AUDIOENC_CELP_BIT_RATE_8700BPS = 8700 , SCE_AUDIOENC_CELP_BIT_RATE_9900BPS = 9900 , SCE_AUDIOENC_CELP_BIT_RATE_10700BPS = 10700 ,
  SCE_AUDIOENC_CELP_BIT_RATE_11800BPS = 11800 , SCE_AUDIOENC_CELP_BIT_RATE_12200BPS = 12200
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (8, SceAudioencInitStreamParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAudioencInfoCelp)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencOptInfoCelp)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceAudioencInitParam)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceAudioencInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencOptInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x2C, SceAudioencCtrl)
 
int sceAudioencInitLibrary (int codecType, SceAudioencInitParam *pInitParam)
 
int sceAudioencTermLibrary (unsigned int codecType)
 
int sceAudioencCreateEncoder (SceAudioencCtrl *pCtrl, int codecType)
 
int sceAudioencDeleteEncoder (SceAudioencCtrl *pCtrl)
 
int sceAudioencEncode (SceAudioencCtrl *pCtrl)
 
int sceAudioencClearContext (SceAudioencCtrl *pCtrl)
 
int sceAudioencGetOptInfo (SceAudioencCtrl *pCtrl)
 
int sceAudioencGetInternalError (SceAudioencCtrl *pCtrl, int *pInternalError)