![]() |
Ryle Radio 1.0.0
An open-source "radio" system for Unity, allowing tracks, tuning, broadcasters, and more!
|
A RadioTrack that can be played as part of a station. More...
Properties | |
| bool | IsInStation [get, set] |
| Whether or not this track is part of a station. | |
| Properties inherited from RyleRadio.Tracks.IRadioTrack | |
| float | SampleRate [get, set] |
| The samples per second of this track right now. Can be changed at runtime, e.g: StationRadioTrack. | |
| int | SampleCount [get, set] |
| The total number of samples in this track right now. Can be changed at runtime, e.g: StationRadioTrack. | |
Additional Inherited Members | |
| Public Member Functions inherited from RyleRadio.Tracks.IRadioTrack | |
| void | Init () |
| Initializes this track. | |
| float | GetSample (int _sampleIndex) |
| Get a sample at the provided index. This is the core method of a track- whatever you return here defines the audio that the track will play when selected. | |
| virtual void | AddToPlayerEndCallback (ref Action< RadioTrackPlayer > _callback) |
| Update a RadioTrackPlayer when this current track ends. Used in StationRadioTrack. | |
A RadioTrack that can be played as part of a station.
This may end up being useless in future if all tracks can be used as part of a station- currently only other StationRadioTrack s don't have this (so you can't nest stations) but that could be changed in future.
Definition at line 10 of file IStationTrack.cs.
|
getset |
Whether or not this track is part of a station.
Implemented in RyleRadio.Tracks.ClipRadioTrack, and RyleRadio.Tracks.ProceduralRadioTrack.
Definition at line 15 of file IStationTrack.cs.