09 March 2024, 16:03 | #1 |
Registered User
Join Date: May 2023
Location: essex
Posts: 512
|
What is the maximum size of memory Paula can play under a DMA interrupt?
What I mean is you point a single DAC to an area of RAM and it will play a certain size of data before needing to be instructed to play again. Is it 64kb or 64bytes? Or is there no limit, you tell it to start playing at address ####### etc and it will move through the memory until you tell it to stop?
I'm sure there was a 64 in it but can't remember and it isn't an obvious answer from google search except that it looks like DMA data exchange max size is 64kb so maybe that's what I am remembering. |
09 March 2024, 16:07 | #2 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
64 K-words (128 Kbytes)
|
09 March 2024, 17:04 | #3 |
Registered User
Join Date: May 2023
Location: essex
Posts: 512
|
|
09 March 2024, 18:11 | #4 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,200
|
It loops by default.
|
09 March 2024, 21:54 | #5 |
Registered User
Join Date: May 2023
Location: essex
Posts: 512
|
|
10 March 2024, 01:39 | #6 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
|
Hey CCCP_Alert! This belongs in the Asm/Hardware forum as this is the perfect forum for a question like this one.
Humm. DMA is instead of interrupts, so there's no such thing as a DMA interrupt. There are audio interrupts, though, which are triggered when a sample window is about to loop. This is not what you asked, but you could set up a chain of such interrupts to play a sample that occupies all 2MB Chip RAM-256 bytes (and then stops, if you wish). You can also play a 128K sample by starting the first 64K, then when the hardware has read the first sample you can write a sample window 64K higher in memory. But this last window will loop unless you (when THAT has been read) set a silent sample window. |
10 March 2024, 10:55 | #7 | |
Registered User
Join Date: May 2023
Location: essex
Posts: 512
|
Quote:
Thanks for the info. Sorry it's in the wrong section, I saw the 'how much CPU time does C2P take" thread here so I thought it could go here. |
|
10 March 2024, 16:11 | #8 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,660
|
|
10 March 2024, 22:15 | #9 |
Registered User
Join Date: May 2023
Location: essex
Posts: 512
|
It is an interesting feature though, I need to do some calculations but 64kb for 4 seconds of mono, if not stereo, music sample sections to be looped has some interesting potential for a game with 'unlimited' sound channel music. Good enough for decent TV speaker of 16khz 8bit 4 second loop = 62.4kb and most of the music I make is about 4 second sections you can repeatedly loop and swap out for the 'next bit' this leaves 3 channels for SFX on top.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A4000 with 3.1.4. Maximum CF card size? | hawkeye | support.Hardware | 0 | 16 February 2019 20:30 |
Setting up maximum-size playfield | mark_k | Coders. Asm / Hardware | 28 | 06 May 2018 21:51 |
Maximum Size Disk and Partition | AMIGASYSTEM | support.WinUAE | 3 | 09 November 2017 21:04 |
Hard Maximum File Size | AMIGASYSTEM | support.WinUAE | 6 | 13 August 2016 15:41 |
Maximum partition size for a 1.3 setup | coze | support.Hardware | 2 | 23 August 2006 17:26 |
|
|