172 lines
5.4 KiB
C#
172 lines
5.4 KiB
C#
using System;
|
|
using System.IO;
|
|
using Crosstales.Radio.Model.Enum;
|
|
|
|
namespace Crosstales.Radio.Util
|
|
{
|
|
public static class Constants
|
|
{
|
|
public static readonly bool isPro = true;
|
|
|
|
public const string ASSET_NAME = "Radio PRO";
|
|
|
|
public const string ASSET_VERSION = "2.9.2";
|
|
|
|
public const int ASSET_BUILD = 292;
|
|
|
|
public static readonly DateTime ASSET_CREATED = new DateTime(2015, 2, 25);
|
|
|
|
public static readonly DateTime ASSET_CHANGED = new DateTime(2017, 12, 4);
|
|
|
|
public const string ASSET_AUTHOR = "crosstales LLC";
|
|
|
|
public const string ASSET_AUTHOR_URL = "https://www.crosstales.com";
|
|
|
|
public const string ASSET_CT_URL = "https://www.assetstore.unity3d.com/#!/list/42213-crosstales?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_PRO_URL = "https://www.assetstore.unity3d.com/#!/content/32034?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_3P_URL = "https://www.assetstore.unity3d.com/#!/list/42211-radio-friends?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_UPDATE_CHECK_URL = "https://www.crosstales.com/media/assets/radio_versions.txt";
|
|
|
|
public const string ASSET_CONTACT = "radio@crosstales.com";
|
|
|
|
public const string ASSET_MANUAL_URL = "https://www.crosstales.com/media/data/assets/radio/Radio-doc.pdf";
|
|
|
|
public const string ASSET_API_URL = "http://goo.gl/G0hu6n";
|
|
|
|
public const string ASSET_FORUM_URL = "http://goo.gl/HxgngH";
|
|
|
|
public const string ASSET_WEB_URL = "https://www.crosstales.com/en/portfolio/radio/";
|
|
|
|
public const string ASSET_VIDEO_PROMO = "https://youtu.be/1ZsxY788w-w?list=PLgtonIOr6Tb41XTMeeZ836tjHlKgOO84S";
|
|
|
|
public const string ASSET_VIDEO_TUTORIAL = "https://youtu.be/E0s0NVRX-ec?list=PLgtonIOr6Tb41XTMeeZ836tjHlKgOO84S";
|
|
|
|
public const string ASSET_SOCIAL_FACEBOOK = "https://www.facebook.com/crosstales/";
|
|
|
|
public const string ASSET_SOCIAL_TWITTER = "https://twitter.com/crosstales";
|
|
|
|
public const string ASSET_SOCIAL_YOUTUBE = "https://www.youtube.com/c/Crosstales";
|
|
|
|
public const string ASSET_SOCIAL_LINKEDIN = "https://www.linkedin.com/company/crosstales";
|
|
|
|
public const string ASSET_SOCIAL_XING = "https://www.xing.com/companies/crosstales";
|
|
|
|
public const string ASSET_3P_PLAYMAKER = "https://www.assetstore.unity3d.com/#!/content/368?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_3P_AUDIO_VISUALIZER = "https://www.assetstore.unity3d.com/#!/content/47866?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_3P_SOUND_SUITE = "https://www.assetstore.unity3d.com/#!/content/19994?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const string ASSET_3P_VISUALIZER_STUDIO = "https://www.assetstore.unity3d.com/#!/content/1761?aid=1011lNGT&pubref=Radio PRO";
|
|
|
|
public const int FACTOR_KB = 1024;
|
|
|
|
public const int FACTOR_MB = 1048576;
|
|
|
|
public const int FACTOR_GB = 1073741824;
|
|
|
|
public const float FLOAT_32768 = 32768f;
|
|
|
|
public const string FORMAT_TWO_DECIMAL_PLACES = "0.00";
|
|
|
|
public const string FORMAT_NO_DECIMAL_PLACES = "0";
|
|
|
|
public const string FORMAT_PERCENT = "0%";
|
|
|
|
public const string KEY_PREFIX = "RADIO_CFG_";
|
|
|
|
public const string KEY_ASSET_PATH = "RADIO_CFG_ASSET_PATH";
|
|
|
|
public const string KEY_DEBUG = "RADIO_CFG_DEBUG";
|
|
|
|
public const string KEY_DEFAULT_BITRATE = "RADIO_CFG_DEFAULT_BITRATE";
|
|
|
|
public const string KEY_DEFAULT_CHUNKSIZE = "RADIO_CFG_DEFAULT_CHUNKSIZE";
|
|
|
|
public const string KEY_DEFAULT_BUFFERSIZE = "RADIO_CFG_DEFAULT_BUFFERSIZE";
|
|
|
|
public const string KEY_DEFAULT_CACHESTREAMSIZE = "RADIO_CFG_DEFAULT_CACHESTREAMSIZE";
|
|
|
|
public const string KEY_MAX_CACHESTREAMSIZE = "RADIO_CFG_MAX_CACHESTREAMSIZE";
|
|
|
|
public const bool DEFAULT_DEBUG = false;
|
|
|
|
public const int DEFAULT_DEFAULT_BITRATE = 128;
|
|
|
|
public const int DEFAULT_DEFAULT_CHUNKSIZE = 64;
|
|
|
|
public const int DEFAULT_DEFAULT_BUFFERSIZE = 128;
|
|
|
|
public const int DEFAULT_DEFAULT_CACHESTREAMSIZE = 512;
|
|
|
|
public const int DEFAULT_MAX_CACHESTREAMSIZE = 262144;
|
|
|
|
public const int MIN_OGG_BUFFERSIZE = 64;
|
|
|
|
public const string PATH_DELIMITER_WINDOWS = "\\";
|
|
|
|
public const string PATH_DELIMITER_UNIX = "/";
|
|
|
|
public const string SURVIVOR_SCENE_OBJECT_NAME = "SurviveSceneSwitch";
|
|
|
|
public static bool DEV_DEBUG = false;
|
|
|
|
public static AudioCodec DEFAULT_CODEC_MP3 = AudioCodec.MP3_NLayer;
|
|
|
|
public static AudioCodec DEFAULT_CODEC_MP3_WINDOWS = AudioCodec.MP3_NAudio;
|
|
|
|
public static string SHOUTCAST = "http://yp.shoutcast.com/sbin/tunein-station.pls?id=";
|
|
|
|
public const float INVOKE_DELAY = 0.4f;
|
|
|
|
public static float MAX_LOAD_WAIT_TIME = 5f;
|
|
|
|
public static float MAX_WEB_LOAD_WAIT_TIME = 5f;
|
|
|
|
public static float MAX_SHOUTCAST_LOAD_WAIT_TIME = 5f;
|
|
|
|
public static float PLAY_CALL_SPEED = 0.6f;
|
|
|
|
public static int OGG_CLEAN_INTERVAL_MIN = 1000;
|
|
|
|
public static int OGG_CLEAN_INTERVAL_MAX = 5000;
|
|
|
|
public static int INITIAL_LIST_SIZE = 250;
|
|
|
|
public static string TEXT_TOSTRING_END = "}";
|
|
|
|
public static string TEXT_TOSTRING_DELIMITER = "', ";
|
|
|
|
public static string TEXT_TOSTRING_DELIMITER_END = "'";
|
|
|
|
public static string TEXT_TOSTRING_START = " {";
|
|
|
|
public static string TEXT_BUFFER = "Buffer: ";
|
|
|
|
public static string TEXT_STOPPED = "stopped";
|
|
|
|
public static string TEXT_QUESTIONMARKS = "???";
|
|
|
|
public static string PREFIX_HTTP = "http://";
|
|
|
|
public static string PREFIX_HTTPS = "https://";
|
|
|
|
public static string PREFIX_TEMP_PATH = Path.GetTempPath();
|
|
|
|
public static string PREFIX_FILE
|
|
{
|
|
get
|
|
{
|
|
if (Helper.isWindowsPlatform)
|
|
{
|
|
return "file:///";
|
|
}
|
|
return "file://";
|
|
}
|
|
}
|
|
}
|
|
}
|