English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 30 May 2016, 12:35   #1
neoman
titan sucks!
 
Join Date: Dec 2012
Location: munich/germany
Posts: 45
Audio stuttering/jittering/distortion/crackling

(Just tested this in WinUAE yet)

Built some demo code here which fires up Kalms ADPCM and then goes into endless loop. Before that loop I register a VB-Handler which decodes and feeds the audio samples (using Kalms library)

When I, in my endless loop, put a Wait for VBL or even Wait(0) or Delay(1), the audio is sounding OK. If I don't do that the audio starts to stutter and plays very slowly.

I disabled all interrupts except VB, disabled all DMAs except Master/Audio, and disabled task switching.

Why is that? What is happening here? Is Audio DMA "slowed" down while CPU is running my endless loop?

I'm coding some demo at the moment and got some effects which take longer than a frame but I still need to feed audio data every frame (that's why I use the VBI).

Any idea how to proceed? Using Audio Interrupts?
neoman is offline  
Old 30 May 2016, 15:40   #2
neoman
titan sucks!
 
Join Date: Dec 2012
Location: munich/germany
Posts: 45
I tested it on H/W now and it works.
So it seems to be some issue with WinUAE. I'm using the latest version.
neoman is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jittering screen -- but only in UAE? idrougge Coders. Asm / Hardware 10 06 February 2016 22:40
Audio Popping and Stuttering EightTrackMind support.FS-UAE 10 01 March 2014 19:50
Crackling sounds :( Edwooger New to Emulation or Amiga scene 3 23 July 2013 19:53
Sound crackling plasmatron support.WinUAE 59 15 May 2013 21:27
AUDxDAT audio distortion Nut support.WinUAE 19 10 December 2012 11:52

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 17:36.


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