2016-11-21 21:47:29 +00:00
|
|
|
|
|
|
|
#ifndef _MULTIVOICE_H_
|
|
|
|
#define _MULTIVOICE_H_
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
bool running;
|
|
|
|
uint32_t channels;
|
|
|
|
AXVoice *v[];
|
|
|
|
} AXMVoice;
|
|
|
|
|
|
|
|
void AXAcquireMultiVoice(uint32_t prio, void *cb, uint32_t cbarg, void *setup, AXMVoice **mvoice);
|
2016-11-21 23:37:22 +00:00
|
|
|
void AXSetMultiVoiceDeviceMix(AXMVoice *mvoice, AXDeviceType type, uint32_t id, uint32_t bus, uint16_t vol, int16_t delta);
|
|
|
|
void AXSetMultiVoiceOffsets(AXMVoice *mvoice, AXVoiceOffsets *offsets);
|
2016-11-21 21:47:29 +00:00
|
|
|
void AXSetMultiVoiceState(AXMVoice *mvoice, AXVoiceState state);
|
|
|
|
void AXSetMultiVoiceVe(AXMVoice *mvoice, AXVoiceVeData *veData);
|
|
|
|
void AXSetMultiVoiceSrcType(AXMVoice *mvoice, AXVoiceSrcType type);
|
|
|
|
void AXSetMultiVoiceSrcRatio(AXMVoice *mvoice, float ratio);
|
|
|
|
bool AXIsMultiVoiceRunning(AXMVoice *mvoice);
|
|
|
|
void AXFreeMultiVoice(AXMVoice *mvoice);
|
|
|
|
|
|
|
|
#endif
|