diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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.
 
diff --git a/Sound/ProteaAudio.chs b/Sound/ProteaAudio.chs
--- a/Sound/ProteaAudio.chs
+++ b/Sound/ProteaAudio.chs
@@ -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 =
diff --git a/cbits/proAudio.cpp b/cbits/proAudio.cpp
--- a/cbits/proAudio.cpp
+++ b/cbits/proAudio.cpp
@@ -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;
         }
     }
diff --git a/proteaaudio.cabal b/proteaaudio.cabal
--- a/proteaaudio.cabal
+++ b/proteaaudio.cabal
@@ -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
