Skip to content

Sound is not reversed when winding back action replay #594

Description

@madebr

Reproducer:

  • start race
  • enter action replay
  • rewind

This probably needs support in the miniaudio backend

Apply the following patch to start hitting unimplemented functions:

--- a/src/S3/s3sound.c
+++ b/src/S3/s3sound.c
@@ -432,6 +432,15 @@ int S3SyncSampleRate(tS3_channel* chan) {
 
 // FUNCTION: CARM95 0x004C946D
 int S3RegisterSampleFilters(tS3_sample_filter* filter1, tS3_sample_filter* filter2) {
-    STUB_ONCE();
+
+    if (filter1 != NULL) {
+        gS3_sample_filter_func = filter1;
+    }
+    if (filter2 != NULL) {
+        gS3_sample_filter_disable_func = filter2;
+    } else {
+        gS3_sample_filter_disable_func = filter1;
+    }
+    gS3_sample_filter_funcs_registered = filter1 != NULL;
     return 0;
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions