English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 25 May 2019, 18:26   #1
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
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?
Al82 is offline  
Old 25 May 2019, 20:18   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
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.
Toni Wilen is online now  
Old 25 May 2019, 20:28   #3
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
Thanks, Toni - is the hyperlink missing from winuae.7z in your post?
Al82 is offline  
Old 25 May 2019, 20:29   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
No. You need to search
Toni Wilen is online now  
Old 25 May 2019, 20:37   #5
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
Found it! Just tried it out and it works!

Thanks again Toni, much appreciated!!
Al82 is offline  
Old 26 May 2019, 04:39   #6
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
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.
Al82 is offline  
Old 26 May 2019, 18:28   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
This is more tricky problem because sound init happens after statefile load. I'll try to fix it later..
Toni Wilen is online now  
Old 27 May 2019, 12:28   #8
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
Thanks, Toni - really appreciate you taking the time to look at this!
Al82 is offline  
Old 16 July 2019, 20:50   #9
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
Possibly fixed now.
Toni Wilen is online now  
Old 20 July 2019, 14:01   #10
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
Thanks, Toni - I'll check out the latest build!
Al82 is offline  
Old 21 July 2019, 23:02   #11
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
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.
Al82 is offline  
Old 17 August 2019, 21:45   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
Another fix attempt done..
Toni Wilen is online now  
Old 28 August 2019, 16:51   #13
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
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.
Al82 is offline  
Old 29 August 2019, 17:10   #14
Al82
Registered User
Al82's Avatar
 
Join Date: Sep 2017
Location: UK
Posts: 87
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.
Al82 is offline  
Old 31 August 2019, 20:17   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,130
I am not sure if perfect sync is possible. CDA runs in separate thread and is not synced with main emulation.
Toni Wilen is online now  
 


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 4 16 January 2016 11:05
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.08563 seconds with 13 queries