diff options
author | Chris Robinson <[email protected]> | 2018-11-17 07:35:11 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-17 07:35:11 -0800 |
commit | 6e6a0240580c3a474a199be45ba0748add860d3b (patch) | |
tree | 8ebdc5ed72ba1934ddc6aa25b35134a14b7970b4 /Alc/converter.h | |
parent | 13478126cb7d41e8f6efebf020fb5a387c303f2d (diff) |
Convert converter.c to C++
Diffstat (limited to 'Alc/converter.h')
-rw-r--r-- | Alc/converter.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Alc/converter.h b/Alc/converter.h index 3f0c6304..78cbdf64 100644 --- a/Alc/converter.h +++ b/Alc/converter.h @@ -4,11 +4,7 @@ #include "alMain.h" #include "alu.h" -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct SampleConverter { +struct SampleConverter { enum DevFmtType mSrcType; enum DevFmtType mDstType; ALsizei mNumChannels; @@ -28,7 +24,7 @@ typedef struct SampleConverter { struct { alignas(16) ALfloat mPrevSamples[MAX_RESAMPLE_PADDING*2]; } Chan[]; -} SampleConverter; +}; SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType dstType, ALsizei numchans, ALsizei srcRate, ALsizei dstRate); void DestroySampleConverter(SampleConverter **converter); @@ -37,19 +33,15 @@ ALsizei SampleConverterInput(SampleConverter *converter, const ALvoid **src, ALs ALsizei SampleConverterAvailableOut(SampleConverter *converter, ALsizei srcframes); -typedef struct ChannelConverter { +struct ChannelConverter { enum DevFmtType mSrcType; enum DevFmtChannels mSrcChans; enum DevFmtChannels mDstChans; -} ChannelConverter; +}; ChannelConverter *CreateChannelConverter(enum DevFmtType srcType, enum DevFmtChannels srcChans, enum DevFmtChannels dstChans); void DestroyChannelConverter(ChannelConverter **converter); void ChannelConverterInput(ChannelConverter *converter, const ALvoid *src, ALfloat *dst, ALsizei frames); -#ifdef __cplusplus -} -#endif - #endif /* CONVERTER_H */ |