本文整理汇总了C++中OutputStream::play方法的典型用法代码示例。如果您正苦于以下问题:C++ OutputStream::play方法的具体用法?C++ OutputStream::play怎么用?C++ OutputStream::play使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OutputStream
的用法示例。
在下文中一共展示了OutputStream::play方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
HCHANNEL D3DCore_Impl::Stream_Play(HSTREAM stream, bool loop, int volume)
{
if(m_pADevice && stream != 0)
{
OutputStream* OStream = (OutputStream*)stream;
OStream->setRepeat( loop );
OStream->setVolume( m_VolStream * (volume/100.0f) );
OStream->reset();
OStream->play();
// StreamChannelList.insert(stream);
return stream;
}
else return 0;
}
示例2: OpenSound
HCHANNEL D3DCore_Impl::Effect_Play(HEFFECT eff)
{
if(m_pADevice && eff != 0)
{
SampleSource* SSource = (SampleSource*)eff;
OutputStream* OStream = OpenSound( m_pADevice, SSource, false );
OStream->setVolume( m_VolFX );
OStream->play();
OStream->ref();
// EffectChannelList.insert((HCHANNEL)OStream);
Channel* chn = new Channel;
chn->Handler = (HCHANNEL)OStream;
chn->Type = CT_EFFECT;
chn->next = channels;
channels = chn;
return (HCHANNEL)OStream;
}
else return 0;
}
示例3: wrap_play
static int wrap_play(lua_State* L) {
lua_settop(L, 1);
OutputStream* self = luaAudiere_checkOutputStream(L, 1);
self->play();
return 0;
}