25 May 2019, 18:26 | #1 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
CD32 resume from save state: CD audio delay?
Currently using WinUAE 4.2.1 and I noticed that when using a CD32 config and resuming from a save state there's a brief delay until the CD audio resumes playback (yet the game carries on playing).
If I'm using AVI capture then this results in a sudden gap in the music, which I'm trying to avoid. I'm guessing this might be because the audio is coming from an external wav file associated with the disc image, rather than being audio data inside the virtual machine's sound buffer, but I wondered if there was any way to work around this? |
25 May 2019, 20:18 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
It is optionally mixed with Paula audio (Sound panel Include CD and FMV audio ticked) but reason for delay was too simple: state restore started CD audio play like it was normal start of playback = hardware delays emulated.
winuae.7z should fix it. |
25 May 2019, 20:28 | #3 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Thanks, Toni - is the hyperlink missing from winuae.7z in your post?
|
25 May 2019, 20:29 | #4 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
No. You need to search
|
25 May 2019, 20:37 | #5 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Found it! Just tried it out and it works!
Thanks again Toni, much appreciated!! |
26 May 2019, 04:39 | #6 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
I did some more experimenting and although the playback appears to be instant when resuming from a save state, the output is dropping about 1 frame's worth of audio.
It's very subtle, but if you listen closely you can hear a slight hiccup in the music. Rep Steps: 1) Record avi clip 1 2) Hit F12 - create save state 3) Load save state 4) Record avi clip 2 5) Join clips together in editor I've added an image of the audio wave form for reference. Last edited by Al82; 26 May 2019 at 04:46. |
26 May 2019, 18:28 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
This is more tricky problem because sound init happens after statefile load. I'll try to fix it later..
|
27 May 2019, 12:28 | #8 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Thanks, Toni - really appreciate you taking the time to look at this!
|
16 July 2019, 20:50 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Possibly fixed now.
|
20 July 2019, 14:01 | #10 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Thanks, Toni - I'll check out the latest build!
|
21 July 2019, 23:02 | #11 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Unfortunately, it appears to be the same - just tested using the 16.07.2019 build and there's still a gap in the CD audio clips when resuming from a state.
Strange thing is, I did some CD32 videos some time ago using a much older build and I don't recall having the problem then, at least not when I reviewed the footage. Going to experiment... * Edit * Looks like it was there before, just that it depends on the nature of the sound being played; sometimes you don't notice it. Last edited by Al82; 21 July 2019 at 23:56. |
17 August 2019, 21:45 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
Another fix attempt done..
|
28 August 2019, 16:51 | #13 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Hi Toni - It looks like it might just have worked; no gap at the beginning of the CD audio when restoring from state!
I'll do so more test and get back to you. |
29 August 2019, 17:10 | #14 |
Registered User
Join Date: Sep 2017
Location: UK
Posts: 95
|
Did some testing and although the CD music starts instantly from resume state (no gap in the audio), the synchronisation in terms of actual position from where one clip ends and another begins when resuming from state isn't quite right - it's extremely close, but you can hear a couple of frames of the audio repeat itself when joining video segments together.
It sounds (to my ears) like the music has been rewound ever so briefly. |
31 August 2019, 20:17 | #15 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
|
I am not sure if perfect sync is possible. CDA runs in separate thread and is not synced with main emulation.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
save game and save state problems | markyboy147 | support.FS-UAE | 12 | 05 October 2022 20:31 |
WinUAE "save state" to include the current state of floppies. | seuden | request.UAE Wishlist | 2 | 03 February 2012 09:36 |
Save state | hrafnkellg | New to Emulation or Amiga scene | 5 | 06 May 2009 18:05 |
CD32 - save state problem! | RickyC | support.WinUAE | 8 | 13 August 2007 03:55 |
Save-State and Load State don't work | Klownk | support.WinUAE | 15 | 27 December 2002 14:24 |
|
|