本文整理汇总了C++中OutputStream::setPitchShift方法的典型用法代码示例。如果您正苦于以下问题:C++ OutputStream::setPitchShift方法的具体用法?C++ OutputStream::setPitchShift怎么用?C++ OutputStream::setPitchShift使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OutputStream
的用法示例。
在下文中一共展示了OutputStream::setPitchShift方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wrap_setPitchShift
static int wrap_setPitchShift(lua_State* L) {
lua_settop(L, 2);
OutputStream* self = luaAudiere_checkOutputStream(L, 1);
float shift = float(luaL_checknumber(L, 2));
self->setPitchShift(shift);
return 0;
}
示例2:
void D3DCore_Impl::Channel_SetPitch(HCHANNEL chn, float pitch)
{
if(!m_pADevice) return;
OutputStream* OStream = (OutputStream*)chn;
for( Channel* I = channels; I != NULL; I = I->next )
{
if( I->Handler == chn )
{
OStream->setPitchShift( pitch );
return;
}
}
//Recorrer los stream
for( CStreamList* I = streams; I != NULL; I = I->next )
{
if( I->hstream == chn )
{
OStream->setPitchShift( pitch );
return;
}
}
}
示例3: OpenSound
HCHANNEL D3DCore_Impl::Effect_PlayEx(HEFFECT eff, int volume, int pan, float pitch, bool loop)
{
if(m_pADevice && eff != 0)
{
SampleSource* SSource = (SampleSource*)eff;
OutputStream* OStream = OpenSound( m_pADevice, SSource, false );
OStream->setVolume( m_VolFX * (volume/100.0f) );
OStream->setPan( pan/100.0f );
OStream->setPitchShift( pitch );
OStream->setRepeat( loop );
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;
}