wiki.sine.space | sinespace

Difference between revisions of "Components/SceneBackgroundMusic"

From wiki.sine.space
Jump to: navigation, search
(Changed entry to describe local music asset, with link to how to stream from Shoutcast.)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
|above=SceneBackgroundMusic
 
|above=SceneBackgroundMusic
 
|subheader=Component
 
|subheader=Component
 +
|image=[[File:Shoutcast.jpg|300px]]
 +
|caption=Component's Inspector
 +
| label1 = Server
 +
|  data1 = URL of the shout cast server
 +
| label2 = Port
 +
|  data2 = port of the shoutcast
 +
| label3 = Playing
 +
|  data3 = Check this to stream music.
 
}}
 
}}
  
 +
== Using an audio file that is in your Project Assets ==
  
You can also stream music from Shoutcast into your region. See [[Components/SceneBackgroundMusicShoutcast]]
 
  
Create an empty object in your scene that will go in your region. Under the Inspector window, click on '''Add Component''' and add an '''Audio Source'''.  
+
Create an empty object in your scene that will be used for your region.
  
Add in a suitable audio clip from your Project assets.  Select the output as "Music" (if its left as "None" it may play but at a educed volume level).
+
Under the Inspector window, click on '''Add Component''' and add an '''Audio Source'''.  
  
If you want the audio clip to repeat, tick "Loop"
+
Add in a suitable audio clip from your Project assets.
 +
 
 +
Select the output as "Music" (if its left as "None" it may play but at a reduced volume level).
 +
 
 +
If you want the audio clip to repeat, tick "Loop".
 +
 
 +
== Using audio from Shoutcast ==
 +
 
 +
You can also stream music from Shoutcast into your region.
 +
 
 +
Create an empty object in your scene that will go in your region. Under the Inspector window, click on '''Add Component.''' Search in the search bar for '''Shoutcast Streaming''' and click on it.
 +
 
 +
Add in the server and port from Shoutcast and check the box '''playing''' to have the music playing in your region after uploading.
  
 
{{Component Navbox}}
 
{{Component Navbox}}

Latest revision as of 13:49, 16 February 2017


SceneBackgroundMusic
Component
Shoutcast.jpg

Component's Inspector

Server URL of the shout cast server
Port port of the shoutcast
Playing Check this to stream music.

Using an audio file that is in your Project Assets

Create an empty object in your scene that will be used for your region.

Under the Inspector window, click on Add Component and add an Audio Source.

Add in a suitable audio clip from your Project assets.

Select the output as "Music" (if its left as "None" it may play but at a reduced volume level).

If you want the audio clip to repeat, tick "Loop".

Using audio from Shoutcast

You can also stream music from Shoutcast into your region.

Create an empty object in your scene that will go in your region. Under the Inspector window, click on Add Component. Search in the search bar for Shoutcast Streaming and click on it.

Add in the server and port from Shoutcast and check the box playing to have the music playing in your region after uploading.