diff options
Diffstat (limited to 'alc/converter.h')
-rw-r--r-- | alc/converter.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/converter.h b/alc/converter.h index 5842df07..b3ceea9a 100644 --- a/alc/converter.h +++ b/alc/converter.h @@ -20,24 +20,24 @@ struct SampleConverter { ALuint mSrcTypeSize{}; ALuint mDstTypeSize{}; - ALint mSrcPrepCount{}; + int mSrcPrepCount{}; ALuint mFracOffset{}; ALuint mIncrement{}; InterpState mState{}; ResamplerFunc mResample{}; - alignas(16) ALfloat mSrcSamples[BUFFERSIZE]{}; - alignas(16) ALfloat mDstSamples[BUFFERSIZE]{}; + alignas(16) float mSrcSamples[BUFFERSIZE]{}; + alignas(16) float mDstSamples[BUFFERSIZE]{}; struct ChanSamples { - alignas(16) ALfloat PrevSamples[MAX_RESAMPLER_PADDING]; + alignas(16) float PrevSamples[MAX_RESAMPLER_PADDING]; }; al::FlexArray<ChanSamples> mChan; SampleConverter(size_t numchans) : mChan{numchans} { } - ALuint convert(const ALvoid **src, ALuint *srcframes, ALvoid *dst, ALuint dstframes); + ALuint convert(const void **src, ALuint *srcframes, void *dst, ALuint dstframes); ALuint availableOut(ALuint srcframes) const; DEF_FAM_NEWDEL(SampleConverter, mChan) @@ -55,7 +55,7 @@ struct ChannelConverter { bool is_active() const noexcept { return mSrcChans != mDstChans; } - void convert(const ALvoid *src, ALfloat *dst, ALuint frames) const; + void convert(const void *src, float *dst, ALuint frames) const; }; #endif /* CONVERTER_H */ |