|
1 | 1 | # SoundEffect |
2 | 2 | Sample class for quickly incorporating sound effects in iOS, OS X and tvOS apps. |
3 | 3 |
|
4 | | -#Usage |
| 4 | +##Usage |
5 | 5 |
|
6 | 6 | ```swift |
7 | 7 | // Initialize Options |
8 | | -let soundEffect = SoundEffect("sound", fileType: ".mp3", enableSound: true, enableLooping: true, defaultVolume: 0.5) |
| 8 | +let soundEffect = SoundEffect("sound", fileType: "mp3", enableSound: true, enableLooping: true, defaultVolume: 0.5) |
9 | 9 |
|
10 | | -let soundEffect2 = SoundEffect("sound", fileType: ".mp3", enableSound: true, enableLooping: true, loopTotal: 20, defaultVolume: 1.0) |
| 10 | +let soundEffect2 = SoundEffect("sound", fileType: "mp3", enableSound: true, enableLooping: true, loopTotal: 20, defaultVolume: 1.0) |
11 | 11 |
|
12 | | -let soundEffect3 = SoundEffect("sound", fileType: ".mp3", enableSound: true, enableLooping: false) |
| 12 | +let soundEffect3 = SoundEffect("sound", fileType: "mp3", enableSound: true, enableLooping: false) |
13 | 13 |
|
14 | | -let soundEffect4 = SoundEffect("sound", fileType: ".mp3") |
| 14 | +let soundEffect4 = SoundEffect("sound", fileType: "mp3") |
15 | 15 |
|
16 | 16 | // Prepare to Play |
17 | 17 | soundEffect.prepareToPlay() |
@@ -39,25 +39,25 @@ soundEffect.setVolume(1.0) // Float 0.0-1.0 |
39 | 39 |
|
40 | 40 | ``` |
41 | 41 |
|
42 | | -#Related Projects: |
| 42 | +##Related Projects: |
43 | 43 |
|
44 | 44 | ###Example Swift Apps by Mark Hamilton, Dryverless |
45 | 45 | Collection of example applications written in Swift / Objective-C for iOS 9.x (developed under 9.2.1 SDK - will be migrated to 9.3 when released) |
46 | 46 | ######https://github.com/TheDarkCode/Example-Swift-Apps |
47 | 47 |
|
48 | | -#Support: |
| 48 | +##Support: |
49 | 49 |
|
50 | 50 | #####Send any questions or requests to: [email protected] |
51 | 51 |
|
52 | | -# Contributing in 5 Easy Steps |
| 52 | +## Contributing |
53 | 53 |
|
54 | 54 | - 1) Fork this repository! |
55 | 55 | - 2) Create your feature branch: ```git checkout -b Your-New-Feature``` |
56 | 56 | - 3) Commit your changes: ```git commit -am 'Adding some super awesome update'``` |
57 | 57 | - 4) Push to the branch: ```git push origin Your-New-Feature``` |
58 | 58 | - 5) Submit a pull request! |
59 | 59 |
|
60 | | -# License |
| 60 | +## License |
61 | 61 | Copyright (c) 2016 Mark Hamilton / dryverless (http://www.dryverless.com) |
62 | 62 |
|
63 | 63 | Permission is hereby granted, free of charge, to any person obtaining a copy |
|
0 commit comments