add structure picture
This commit is contained in:
parent
813f28f7e1
commit
fe0a289011
|
@ -26,6 +26,10 @@ pod "ResourcePackage"
|
|||
|
||||
## Usage
|
||||
|
||||
|
||||
## Structure
|
||||
![Structure](structure.png)
|
||||
|
||||
## Author
|
||||
|
||||
[Alfred Gao](http://alfredg.org), [alfredg@alfredg.cn](mailto:alfredg@alfredg.cn)
|
||||
|
|
|
@ -73,7 +73,7 @@ extension ResourcePackageReader {
|
|||
/// 播放音乐
|
||||
///
|
||||
/// play music
|
||||
func playMusic(_ key: String, loops: Int = 1, volume: Float = 100) {
|
||||
public func playMusic(_ key: String, loops: Int = 1, volume: Float = 100) {
|
||||
stopMusic()
|
||||
|
||||
// load music data
|
||||
|
@ -103,7 +103,7 @@ extension ResourcePackageReader {
|
|||
/// 停止音乐播放
|
||||
///
|
||||
/// stop music
|
||||
func stopMusic() {
|
||||
public func stopMusic() {
|
||||
musicPlayer?.stop()
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue