View Single Post
Old 20 March 2021, 10:34   #5
leonard
Registered User
 
leonard's Avatar
 
Join Date: Apr 2013
Location: paris
Posts: 133
ok I simulated to worst case ever ( highest playing rate with smallest loop len ) and at least it produces audio glitches in WinUAE ( I didn't tested on real amiga ).

I'm still interested by Toni's view on that

Code:
		
lea		$dff000,a6
			move.w	#$f,$96(a6)
			move.w	#1,$a4(a6)			; smallest sample len
			move.w	#1,$a6(a6)			; highest replay rate
			move.w	#64,$a8(a6)			; highest volume

			clr.w	$50000				; clear two samples at $50000
			move.w	#$807f,$50010		; write worst audio glitch at $50010

			clr.w	$60010				; write dummy sound at $60010
			move.w	#$807f,$60000		; write worst audio glitch at $60000
			
			move.w	#$8001,$96(a6)		; start DMA play
			
			lea		addrt(pc),a1
			lea		addrt+4(pc),a2			
mainl:		move.l	(a1),$a0(a6)		; non atomic write $60010 (if it fails, audio will play $60000)
			move.l	(a2),$a0(a6)		; non atomic write $50000 (if it fails, audio will play $50010)
			bra.s	mainl

addrt:		dc.l	$60010
			dc.l	$50000
leonard is offline  
 
Page generated in 0.04751 seconds with 11 queries