Some more stuff about libmixerAPI:
- void* MixerOpenPlay(int rate, int channels, int sampleSize, const char* something)
- Note: something is "Music" if null, idk exactly what it's being used for yet.
- void MixerClose(void* mixer)
- int MixerGetBufPlay(void* mixer, uint8_t** buf_ptr_out, int* buf_size_out)
- Returns 0 on success, 1 on failure.
- void MixerReleaseBufPlay(void* mixer, int n_written, uint8_t* buf_ptr)
- These params are mostly just educated guesses (I haven't gone through the disassembly in detail yet).
- void* MixerWaitTillAudioProcessed(void* mixer)
- I haven't figured out the return type yet.
- void MixerDrain(void* mixer)
- void MixerFlush(???)
- I haven't figured out the params yet.
Note: This is purely based on static analysis, so it's all untested. Even so, this should be enough to link with (or dlopen) libmixerAPI and play raw PCM signed integer samples.
Last edited by geek1011; 04-11-2020 at 04:05 AM.
|