Decouple <cstdint>

This commit is contained in:
Martin Natano
2023-04-21 22:13:41 +02:00
parent bcea05dd67
commit aa87f85eef
167 changed files with 1533 additions and 1307 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
#ifndef RAGE_SOUND_UTIL_H
#define RAGE_SOUND_UTIL_H
#include <cstdint>
/** @brief Simple utilities that operate on sound buffers. */
namespace RageSoundUtil
{
@@ -7,8 +10,8 @@ namespace RageSoundUtil
void Pan( float *pBuffer, int iFrames, float fPos );
void Fade( float *pBuffer, int iFrames, int iChannels, float fStartVolume, float fEndVolume );
void ConvertMonoToStereoInPlace( float *pBuffer, int iFrames );
void ConvertNativeInt16ToFloat( const int16_t *pFrom, float *pTo, int iSamples );
void ConvertFloatToNativeInt16( const float *pFrom, int16_t *pTo, int iSamples );
void ConvertNativeInt16ToFloat( const std::int16_t *pFrom, float *pTo, int iSamples );
void ConvertFloatToNativeInt16( const float *pFrom, std::int16_t *pTo, int iSamples );
};
#endif