I remember on the official wiki, only 8bit PCM was listed.
I kinda gotten worried that my 16ch. PSG + 8FM + 8BIT PCM wouldn't fly.
the zsm is about 170kbs.
So I included a special version where all precautions are gone.
And how much CPU would it cost to have all channels play at the same time.
Do VERA support DPCM?
Re: Do VERA support DPCM?
The PCM channel on the VERA is just a buffer that you fill with the raw sample data you want it to output.
How you fill that buffer is completely up to you; so if you want to store your digital samples as DPCM (or ADPCM or any number of other compressed formats), it'll be up to your program to decode that compressed data into plain samples when it goes to fill the PCM buffer on the VERA, but you could do it.
How you fill that buffer is completely up to you; so if you want to store your digital samples as DPCM (or ADPCM or any number of other compressed formats), it'll be up to your program to decode that compressed data into plain samples when it goes to fill the PCM buffer on the VERA, but you could do it.
Re: Do VERA support DPCM?
thanks.DragWx wrote: ↑Thu Apr 20, 2023 4:28 pm The PCM channel on the VERA is just a buffer that you fill with the raw sample data you want it to output.
How you fill that buffer is completely up to you; so if you want to store your digital samples as DPCM (or ADPCM or any number of other compressed formats), it'll be up to your program to decode that compressed data into plain samples when it goes to fill the PCM buffer on the VERA, but you could do it.
I only programmed for it from higher levels as now.
All examples I can find are using 16bit or 8bit PCM.
So I got confused.
Re: Do VERA support DPCM?
It's a buffer that feeds the PCM data at the specified rate. The data can be 8 bit or 16bit, and can be mono or stereo, but what you put into the Vera First-In, First-Out buffer is the raw data, so for a given rate, you have to feed it four times faster for 16bit stereo than for 8bit mono.GTR3QQ wrote: ↑Fri Apr 21, 2023 3:58 pmthanks.DragWx wrote: ↑Thu Apr 20, 2023 4:28 pm The PCM channel on the VERA is just a buffer that you fill with the raw sample data you want it to output.
How you fill that buffer is completely up to you; so if you want to store your digital samples as DPCM (or ADPCM or any number of other compressed formats), it'll be up to your program to decode that compressed data into plain samples when it goes to fill the PCM buffer on the VERA, but you could do it.
I only programmed for it from higher levels as now.
All examples I can find are using 16bit or 8bit PCM.
So I got confused.
Extracting the raw data from any given compressed PCM file format is "left as an exercise for the reader", but the routines from open source tools are handy guidance for the required process.
Re: Do VERA support DPCM?
Hey there!BruceRMcF wrote: ↑Fri Apr 21, 2023 5:00 pmIt's a buffer that feeds the PCM data at the specified rate. The data can be 8 bit or 16bit, and can be mono or stereo, but what you put into the Vera First-In, First-Out buffer is the raw data, so for a given rate, you have to feed it four times faster for 16bit stereo than for 8bit mono.GTR3QQ wrote: ↑Fri Apr 21, 2023 3:58 pmthanks.DragWx wrote: ↑Thu Apr 20, 2023 4:28 pm The PCM channel on the VERA is just a buffer that you fill with the raw sample data you want it to output.
How you fill that buffer is completely up to you; so if you want to store your digital samples as DPCM (or ADPCM or any number of other compressed formats), it'll be up to your program to decode that compressed data into plain samples when it goes to fill the PCM buffer on the VERA, but you could do it.
I only programmed for it from higher levels as now.
All examples I can find are using 16bit or 8bit PCM.
So I got confused.
Extracting the raw data from any given compressed PCM file format is "left as an exercise for the reader", but the routines from open source tools are handy guidance for the required process.
I think I understand now the compress or not is a me problem.
Cool. I'll be using 8 bit PCM until I can't or looking for Famicom Flavor inside.
-
- Posts: 503
- Joined: Sat Jul 11, 2020 3:30 pm
Re: Do VERA support DPCM?
To get my PCM audio, I used Audacity to record audio at a ridiculous bit rate, then used Audacity to resample at the desired frequency and to save as a RAW audio file (no header).
Re: Do VERA support DPCM?
May I ask why?Ed Minchau wrote: ↑Sat Apr 22, 2023 12:59 amTo get my PCM audio, I used Audacity to record audio at a ridiculous bit rate, then used Audacity to resample at the desired frequency and to save as a RAW audio file (no header).
To avoid aliasing? Some unknown voodoo magic?
-
- Posts: 503
- Joined: Sat Jul 11, 2020 3:30 pm
Re: Do VERA support DPCM?
Because it was easy. Audacity lets you sample audio an then resample at a different rate. You can get it to output 8 bit or 16 bit, stereo or mono, and at any rate you desire.GTR3QQ wrote: ↑Sat Apr 22, 2023 6:31 pmMay I ask why?Ed Minchau wrote: ↑Sat Apr 22, 2023 12:59 amTo get my PCM audio, I used Audacity to record audio at a ridiculous bit rate, then used Audacity to resample at the desired frequency and to save as a RAW audio file (no header).
To avoid aliasing? Some unknown voodoo magic?
Re: Do VERA support DPCM?
Easy is good!Ed Minchau wrote: ↑Sat Apr 22, 2023 11:54 pmBecause it was easy. Audacity lets you sample audio an then resample at a different rate. You can get it to output 8 bit or 16 bit, stereo or mono, and at any rate you desire.
Also, sampling at a high rate does in fact help avoid aliasing if you try one rate and decide later to try a higher one for better sound or a lower one for smaller memory footprint and lower CPU burden.