First post, by Malvineous
- Rank
- Oldbie
Hi all,
I'd like to take the new OPL synth used by DOSBox and incorporate it in some other license-compatible programs, however I'm a little unsure about the format of the samples that the synth produces.
The samples come out in 32-bit unsigned integers, however as best as I can tell they are only 16-bit values. However if I output these samples as 16-bit audio they are very quiet (much quieter than in DOSBox), which makes me think the full dynamic range available in a 16-bit sample is not used.
I don't really want to assume the samples are smaller (e.g. 14-bit) because then I will get clipping if a sample ever arrives that it outside this range, and unfortunately looking at the mixer code it's not immediately obvious what's going on.
Can anyone shed some light on what type of samples are produced by the OPL synth, and how DOSBox is able to amplify it to normal levels?