Huli's Blog

Learning by sharing

[Corona] 隱藏版Audio

| Comments

The secret/undocumented audio APIs in Corona SDK

某些不太穩定的audio API,提供了更多的功能
例如說可以調pitch,而使用的方式很簡單

local music = audio.loadSound("sounds/a.mp3",system.ResourcesDirectory)
local channel, music_play = audio.play(music)
al.Source(music_play, al.PITCH, 2.0);

Comments

comments powered by Disqus