mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Add some notes for the new resampler.
This commit is contained in:
@@ -25,6 +25,14 @@ Requirements:
|
|||||||
- Must have different modes on how to handle the last of the input samples. Certain situations (streaming) requires
|
- Must have different modes on how to handle the last of the input samples. Certain situations (streaming) requires
|
||||||
the last input samples to be cached in the internal structure for the windowing algorithm. Other situations require
|
the last input samples to be cached in the internal structure for the windowing algorithm. Other situations require
|
||||||
all of the input samples to be consumed in order to output the correct total sample count.
|
all of the input samples to be consumed in order to output the correct total sample count.
|
||||||
|
- Need to support converting input samples directly passed in as parameters without using a callback.
|
||||||
|
- mal_resampler_read(pResampler, &inputFrameCount, pInputFrames, &outputFrameCount, pOutputFrames). Returns a
|
||||||
|
result code. inputFrameCount and outputFrameCount are both input and output.
|
||||||
|
- Need to support using a ring buffer as the backing data.
|
||||||
|
- mal_resampler_read_from_pcm_rb(pResampler, frameCount, pFramesOut, &ringBuffer). May need an option to control
|
||||||
|
how to handle underruns - should it stop processing or should it pad with zeroes?
|
||||||
|
- Need to support reading from a callback.
|
||||||
|
- mal_resampler_read_from_callback(pResampler, frameCount, pFramesOut, resampler_callback, pUserData)
|
||||||
|
|
||||||
|
|
||||||
Other Notes:
|
Other Notes:
|
||||||
|
|||||||
Reference in New Issue
Block a user