-
Notifications
You must be signed in to change notification settings - Fork 55
Audio
chrisd1100 edited this page Aug 25, 2022
·
2 revisions
Simple audio playback and resampling.
This is a very minimal interface that assumes 2-channel, 16-bit signed PCM submitted by pushing to a queue. This module also includes a straightforward resampler.
Name | Brief |
---|---|
MTY_AudioCreate | Create an MTY_Audio context for playback. |
MTY_AudioDestroy | Destroy an MTY_Audio context. |
MTY_AudioReset | Flush the context and reset it as though it was just created. |
MTY_AudioGetQueued | Get the number of milliseconds currently queued for playback. |
MTY_AudioQueue | Queue 16-bit signed PCM audio for playback. |
MTY_ResamplerCreate | Create and MTY_Resampler for sample rate conversion. |
MTY_ResamplerDestroy | Destroy an MTY_Resampler . |
MTY_Resample | Resample 2-channel, 16-bit signed PCM audio. |
MTY_ResamplerReset | Reset all internal state as though the MTY_Resampler was just created. |