Files
pspsdk/src/audio/pspaudio_kernel.h
2020-10-03 13:02:09 -07:00

49 lines
1.1 KiB
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspaudio.h - Prototypes for the sceAudio library.
*
* Copyright (c) 2005 Adresd
* Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
* Copyright (c) 2007 cooleyes
* Copyright (c) 2007 Alexander Berl <raphael@fx-world.org>
*
*/
#ifndef PSPAUDIO_KERNEL_H
#define PSPAUDIO_KERNEL_H
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup Audio User Audio Library */
/** @addtogroup Audio */
/**@{*/
enum PspAudioFrequencies {
/** Sampling frequency set to 44100Hz. */
PSP_AUDIO_FREQ_44K = 44100,
/** Sampling frequency set to 48000Hz. */
PSP_AUDIO_FREQ_48K = 48000
};
/**
* Set audio sampling frequency
*
* @param frequency - Sampling frequency to set audio output to - either 44100 or 48000.
*
* @return 0 on success, an error if less than 0.
*/
int sceAudioSetFrequency(int frequency);
/**@}*/
#ifdef __cplusplus
}
#endif
#endif /* PSPAUDIO_KERNEL_H */