float AllegroMusicSample5::GetPitch() const
{
	if ( !m_pInstance )
	    return 0;
	return al_get_audio_stream_speed( m_pInstance );
}
Exemple #2
0
static int allua_audio_stream_get_speed(lua_State * L)
{
   ALLUA_audio_stream audio_stream = allua_check_audio_stream(L, 1);
   lua_pushnumber(L, al_get_audio_stream_speed(audio_stream));
   return 1;
}
Exemple #3
0
float
get_sound_pitch(sound_t* sound)
{
	return al_get_audio_stream_speed(sound->stream);
}