proteaaudio 0.9.1 → 0.9.2
raw patch · 4 files changed
+8/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +3/−0
- Sound/ProteaAudio.chs +2/−2
- cbits/proAudio.cpp +2/−0
- proteaaudio.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,6 @@+# 0.9.2+- fix a sample format conversion bug that caused pitch problems in `sampleFromMemoryPcm`+ # 0.9.1 - fix a Cabal C/C++ compiler flag handling bug, now should compile with GHC 8.10 and above also.
Sound/ProteaAudio.chs view
@@ -88,7 +88,7 @@ , `Int' -- ^ memory buffer size in bytes , `Int' -- ^ number of channels, e.g. 1 for mono, 2 for stereo. , `Int' -- ^ sample rate, i.e. 44100 Hz- , `Int' -- ^ bits per sample, i.e. 8/16/32+ , `Int' -- ^ bits per sample, i.e. 8, 16, 32 , `Float' -- ^ volume } -> `Sample' Sample -- ^ returns handle #}@@ -113,7 +113,7 @@ sampleFromMemoryPcm :: ByteString -- ^ pcm sample data; array of pcm samples (signed 8 bit int, signed 16 bit int or 32 bit float) -> Int -- ^ number of channels, e.g. 1 for mono, 2 for stereo. -> Int -- ^ sample rate, i.e. 44100 Hz- -> Int -- ^ bits per sample, i.e. 8/16/32+ -> Int -- ^ bits per sample, i.e. 8, 16, 32 -> Float -- ^ volume -> IO Sample -- ^ return sample handle sampleFromMemoryPcm pcmData channels sampleRate bitsPerSample volume =
cbits/proAudio.cpp view
@@ -23,6 +23,7 @@ delete [] m_data; m_data = data; m_size*=2;+ m_bitsPerSample=16; return true; } else if(m_bitsPerSample==16) {@@ -38,6 +39,7 @@ delete [] m_data; m_data = data; m_size/=2;+ m_bitsPerSample=16; return true; } }
proteaaudio.cabal view
@@ -1,6 +1,6 @@ Cabal-Version: 2.2 Name: proteaaudio-Version: 0.9.1+Version: 0.9.2 Synopsis: Simple audio library for Windows, Linux, OSX. Description: Simple audio library for Windows, Linux, OSX. Supports PCM, Ogg and Wav playback and multichannel mixing. License: BSD-3-Clause