Huli's Blog

Learning by sharing

Lidemy 鋰學院是一個為初學者而生的線上程式課程平台,希望能以淺顯易懂的教學,帶領初學者更快速地入門程式設計。你可以直接到網站註冊,或者是追蹤 Lidemy 的粉絲專頁,就能搶先得知課程的最新消息

[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