本文整理汇总了C++中AUD_JackDevice类的典型用法代码示例。如果您正苦于以下问题:C++ AUD_JackDevice类的具体用法?C++ AUD_JackDevice怎么用?C++ AUD_JackDevice使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AUD_JackDevice类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AUD_setSyncCallback
void AUD_setSyncCallback(AUD_syncFunction function, void *data)
{
AUD_JackDevice *device = dynamic_cast<AUD_JackDevice *>(AUD_device.get());
if (device) {
device->setSyncCallback(function, data);
}
}
示例2: AUD_stopPlayback
void AUD_stopPlayback()
{
#ifdef WITH_JACK
AUD_JackDevice* device = dynamic_cast<AUD_JackDevice*>(AUD_device.get());
if(device)
device->stopPlayback();
#endif
}
示例3: AUD_doesPlayback
int AUD_doesPlayback()
{
#ifdef WITH_JACK
AUD_JackDevice* device = dynamic_cast<AUD_JackDevice*>(AUD_device.get());
if(device)
return device->doesPlayback();
#endif
return -1;
}
示例4: AUD_playSynchronizer
void AUD_playSynchronizer()
{
#ifdef WITH_JACK
AUD_JackDevice *device = dynamic_cast<AUD_JackDevice *>(AUD_device.get());
if (device) {
device->startPlayback();
}
#endif
}
示例5: AUD_isSynchronizerPlaying
int AUD_isSynchronizerPlaying()
{
#ifdef WITH_JACK
AUD_JackDevice *device = dynamic_cast<AUD_JackDevice *>(AUD_device.get());
if (device) {
return device->doesPlayback();
}
#endif
return -1;
}
示例6: AUD_getSequencerPosition
float AUD_getSequencerPosition(AUD_Handle* handle)
{
#ifdef WITH_JACK
AUD_JackDevice* device = dynamic_cast<AUD_JackDevice*>(AUD_device.get());
if(device)
return device->getPlaybackPosition();
else
#endif
{
assert(handle);
return (*handle)->getPosition();
}
}
示例7: AUD_seekSequencer
void AUD_seekSequencer(AUD_Handle* handle, float time)
{
#ifdef WITH_JACK
AUD_JackDevice* device = dynamic_cast<AUD_JackDevice*>(AUD_device.get());
if(device)
device->seekPlayback(time);
else
#endif
{
assert(handle);
(*handle)->seek(time);
}
}