OSDN Git Service

[VM][PCENGINE][ADPCM] Fix around ADPCM (more).
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 20 Feb 2019 18:24:27 +0000 (03:24 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 20 Feb 2019 18:24:27 +0000 (03:24 +0900)
source/src/vm/pcengine/adpcm.cpp

index 2df286b..32ec81f 100644 (file)
@@ -498,10 +498,10 @@ void ADPCM::do_vclk(bool flag)
                                                }
                                        }
                                                                
-                               if((written_size > 0) /*&& !(adpcm_stopped)*/) written_size--;
                           
                                __skip0:
                                        if(!(need_wait)) {
+                                               if((written_size > 0) /*&& !(adpcm_stopped)*/) written_size--;
                                                
                                                msm_ptr++;
                                                read_ptr = msm_ptr & 0xffff;