This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:orx:tutorials:sound [2012/11/14 10:37 (12 years ago)] – iarwain | en:tutorials:audio:sound [2020/08/31 08:31 (4 years ago)] (current) – ↷ Links adapted because of a move operation 40.77.167.232 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Summary ===== | ===== Summary ===== | ||
- | See previous | + | See previous basic tutorials for more info about basic [[..:objects:object|object creation]], [[..:clocks:clock|clock handling]], [[..:objects:frame|frames hierarchy]], |
This tutorial shows how to play sounds (samples) and musics (streams).\\ | This tutorial shows how to play sounds (samples) and musics (streams).\\ | ||
Line 32: | Line 32: | ||
===== Details ===== | ===== Details ===== | ||
- | As usual, we begin by loading our config file, getting the main clock and registering our '' | + | As usual, we begin by creating a viewport, getting the main clock and registering our '' |
- | Please refer to the [[main# | + | Please refer to the previous tutorials for more details. |
We then create a music and play it. | We then create a music and play it. | ||
Line 130: | Line 130: | ||
Same as for the pitch, nothing unusual. | Same as for the pitch, nothing unusual. | ||
- | //NB: We can notice that only our object rotation will be time-consistent (cf. [[clock|clock tutorial]]).\\ | + | //NB: We can notice that only our object rotation will be time-consistent (cf. [[..:clocks:clock|clock tutorial]]).\\ |
The music' | The music' | ||
To fix this we'd only need to use the clock' | To fix this we'd only need to use the clock' | ||
Line 168: | Line 168: | ||
===== Resources ===== | ===== Resources ===== | ||
- | Source code: [[https://orx.svn.sourceforge.net/svnroot/orx/trunk/ | + | Source code: [[https://github.com/orx/orx/blob/master/ |
- | + | ||
- | Config file: [[https:// | + | |
+ | Config file: [[https:// |