PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
Data Structures | Defines | Typedefs | Enumerations | Functions
include/psp2/audioenc.h File Reference

Header file which defines encoding audio library related variables and functions. More...

#include <psp2/types.h>
#include <stdint.h>
Include dependency graph for audioenc.h:

Go to the source code of this file.

Data Structures

struct  SceAudioencInitStreamParam
struct  SceAudioencInfoCelp
struct  SceAudioencOptInfoCelp
union  SceAudioencInitParam
union  SceAudioencInfo
union  SceAudioencOptInfo
struct  SceAudioencCtrl

Defines

#define PSP2_AUDIOENC_WORD_LENGTH_16BITS   16
 Definition of wordlength.
#define PSP2_AUDIOENC_TYPE_CELP   0x2006U
 Audio encoder type.
#define PSP2_AUDIOENC_CELP_MAX_STREAMS   1
 Max number of streams.
#define PSP2_AUDIOENC_CELP_MAX_SAMPLES   320
 Max number of samples.
#define PSP2_AUDIOENC_CELP_MAX_ES_SIZE   24
 Max elementary stream size.
#define PSP2_AUDIOENC_CELP_MPE   (0)
 CELP encoder default excitation mode.
#define PSP2_AUDIOENC_CELP_SAMPLING_RATE_8KHZ   (8000)
 CELP encoder default sampling rate.

Typedefs

typedef struct
SceAudioencInitStreamParam 
SceAudioencInitStreamParam
typedef struct SceAudioencInfoCelp SceAudioencInfoCelp
typedef struct
SceAudioencOptInfoCelp 
SceAudioencOptInfoCelp
typedef union SceAudioencInitParam SceAudioencInitParam
typedef union SceAudioencInfo SceAudioencInfo
typedef union SceAudioencOptInfo SceAudioencOptInfo
typedef struct SceAudioencCtrl SceAudioencCtrl

Enumerations

enum  {
  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
}
enum  { SCE_AUDIOENC_CELP_ERROR_INVALID_CONFIG = 0x80861001 }
enum  { PSP2_AUDIOENC_CELP_BIT_RATE_3850BPS = 3850, PSP2_AUDIOENC_CELP_BIT_RATE_4650BPS = 4650, PSP2_AUDIOENC_CELP_BIT_RATE_5700BPS = 5700, PSP2_AUDIOENC_CELP_BIT_RATE_7300BPS = 7300 }

Functions

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)

Detailed Description

Header file which defines encoding audio library related variables and functions.

Copyright (C) 2015 PSP2SDK Project

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


Typedef Documentation

Audio encoder info

Information structure for CELP

Initialization structure to pass as argument to ::sceAudioencInitLibrary

Initialization structure to provide to SceAudioencInitParam

Audio encoder optional info

Optional information structure for CELP

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines