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

Go to the source code of this file.

Macros

#define SCE_AUDIO_MIN_LEN   64
 Minimum granularity. More...
 
#define SCE_AUDIO_MAX_LEN   65472
 Maximum granularity. More...
 
#define SCE_AUDIO_OUT_MAX_VOL   32768
 Maximum output port volume. More...
 
#define SCE_AUDIO_VOLUME_0DB   SCE_AUDIO_OUT_MAX_VOL
 Maximum output port volume. More...
 

Enumerations

enum  SceAudioOutErrorCode {
  SCE_AUDIO_OUT_ERROR_NOT_OPENED = 0x80260001 , SCE_AUDIO_OUT_ERROR_BUSY = 0x80260002 , SCE_AUDIO_OUT_ERROR_INVALID_PORT = 0x80260003 , SCE_AUDIO_OUT_ERROR_INVALID_POINTER = 0x80260004 ,
  SCE_AUDIO_OUT_ERROR_PORT_FULL = 0x80260005 , SCE_AUDIO_OUT_ERROR_INVALID_SIZE = 0x80260006 , SCE_AUDIO_OUT_ERROR_INVALID_FORMAT = 0x80260007 , SCE_AUDIO_OUT_ERROR_INVALID_SAMPLE_FREQ = 0x80260008 ,
  SCE_AUDIO_OUT_ERROR_INVALID_VOLUME = 0x80260009 , SCE_AUDIO_OUT_ERROR_INVALID_PORT_TYPE = 0x8026000A , SCE_AUDIO_OUT_ERROR_INVALID_FX_TYPE = 0x8026000B , SCE_AUDIO_OUT_ERROR_INVALID_CONF_TYPE = 0x8026000C ,
  SCE_AUDIO_OUT_ERROR_OUT_OF_MEMORY = 0x8026000D
}
 
enum  SceAudioOutParam { SCE_AUDIO_OUT_PARAM_FORMAT_S16_MONO = 0 , SCE_AUDIO_OUT_PARAM_FORMAT_S16_STEREO = 1 }
 
enum  SceAudioOutPortType { SCE_AUDIO_OUT_PORT_TYPE_MAIN = 0 , SCE_AUDIO_OUT_PORT_TYPE_BGM = 1 , SCE_AUDIO_OUT_PORT_TYPE_VOICE = 2 }
 
enum  SceAudioOutMode { SCE_AUDIO_OUT_MODE_MONO = 0 , SCE_AUDIO_OUT_MODE_STEREO = 1 }
 
enum  SceAudioOutChannelFlag { SCE_AUDIO_VOLUME_FLAG_L_CH = 1 , SCE_AUDIO_VOLUME_FLAG_R_CH = 2 }
 Flags to use as 'ch' argument for sceAudioOutSetVolume. More...
 
enum  SceAudioOutConfigType { SCE_AUDIO_OUT_CONFIG_TYPE_LEN = 0 , SCE_AUDIO_OUT_CONFIG_TYPE_FREQ = 1 , SCE_AUDIO_OUT_CONFIG_TYPE_MODE = 2 }
 Config type values to specify to sceAudioOutGetConfig. More...
 
enum  SceAudioOutAlcMode { SCE_AUDIO_ALC_OFF = 0 , SCE_AUDIO_ALC_MODE1 = 1 , SCE_AUDIO_ALC_MODE_MAX = 2 }
 Argument 'mode' to specify to sceAudioOutSetAlcMode. More...
 

Functions

int sceAudioOutOpenPort (SceAudioOutPortType type, int len, int freq, SceAudioOutMode mode)
 Initialize audio port. More...
 
int sceAudioOutReleasePort (int port)
 Release an audio port. More...
 
int sceAudioOutOutput (int port, const void *buf)
 Output audio (blocking function) More...
 
int sceAudioOutSetVolume (int port, SceAudioOutChannelFlag ch, int *vol)
 Set volume of specified output audio port. More...
 
int sceAudioOutSetConfig (int port, SceSize len, int freq, SceAudioOutMode mode)
 Change configuration of specified output port. More...
 
int sceAudioOutGetConfig (int port, SceAudioOutConfigType type)
 Get a parameter value of specified output port. More...
 
int sceAudioOutSetAlcMode (SceAudioOutAlcMode mode)
 Set 'Automatic Level Control' mode on the BGM port ALC is also known as 'Dynamic Normalizer'. More...
 
int sceAudioOutGetRestSample (int port)
 Get the number of remaining samples to be output on the specified port. More...
 
int sceAudioOutGetAdopt (SceAudioOutPortType type)
 Get status of port type Return different value on whether the port type is used for sound generation or not. More...