Browse Source

fixed rate resampling

Cary Sandvig 25 years ago
parent
commit
a7c2814465
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/audio/audio_load_st.cxx

+ 3 - 1
panda/src/audio/audio_load_st.cxx

@@ -28,7 +28,9 @@ extern "C" {
 #define COPYFORMAT copyformat
 #define UPDATEEFFECT(a, b, c, d) \
   (a)->ininfo.channels = (b)->info.channels; \
-  (a)->outinfo.channels = (c)->info.channels;
+  (a)->outinfo.channels = (c)->info.channels; \
+  (a)->ininfo.rate = (b)->info.rate; \
+  (a)->outinfo.rate = (c)->info.rate;
 #else /* PATCHLEVEL != 16 */
 #define FORMATS st_formats
 #define ENCODEFIELD encoding