[Corona] 隱藏版Audio

Posted by Huli on 2014-04-23

The secret/undocumented audio APIs in Corona SDK

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

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