PSPSDK 2024-12-24
Loading...
Searching...
No Matches
pspvaudio.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspvaudio.h - Prototypes for the sceVaudio library.
7 *
8 * Copyright (c) 2024 Sergey Galushko
9 *
10 */
11#ifndef PSPVAUDIO_H
12#define PSPVAUDIO_H
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
19#define PSP_VAUDIO_VOLUME_MAX 0x8000
20
23#define PSP_VAUDIO_SAMPLE_MAX 2048
24
26#define PSP_VAUDIO_SAMPLE_MIN 256
27
28
30#define PSP_VAUDIO_FORMAT_MONO 1
31
33#define PSP_VAUDIO_FORMAT_STEREO 2
34
36#define PSP_VAUDIO_EFFECT_OFF 0
37#define PSP_VAUDIO_EFFECT_HEAVY 1
38#define PSP_VAUDIO_EFFECT_POPS 2
39#define PSP_VAUDIO_EFFECT_JAZZ 3
40#define PSP_VAUDIO_EFFECT_UNIQUE 4
41#define PSP_VAUDIO_EFFECT_MAX 5
42
44#define PSP_VAUDIO_ALC_OFF 0
45#define PSP_VAUDIO_ALC_MODE1 1
46#define PSP_VAUDIO_ALC_MODE_MAX 2
47
57
70
77
87
95int sceVaudioSetAlcMode(int mode);
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* PSPVAUDIO_H */
float x
Definition psptypes.h:0
int sceVaudioChRelease(void)
Release a virtual output channel.
int sceVaudioChReserve(int samplecount, int frequency, int format)
Allocate and initialize a virtual output channel.
int sceVaudioSetEffectType(int effect, int volume)
Set effect type.
int sceVaudioOutputBlocking(int volume, void *buffer)
Output audio (blocking)
int sceVaudioSetAlcMode(int mode)
Set ALC(dynamic normalizer)