Merge branch 'develop' of github.com:Vocaluxe/Vocaluxe into develop
This commit is contained in:
commit
67cbba5604
7 files changed
+20
-115293
No files matched your search
@@ -205,13 +205,15 @@ namespace ServerLib
|
|||||||
|
|
||||||
public static string GetLocalAddress()
|
public static string GetLocalAddress()
|
||||||
{
|
{
|
||||||
IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
|
return Dns.GetHostName();
|
||||||
|
|
||||||
|
/*IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
|
||||||
foreach (IPAddress ip in ips)
|
foreach (IPAddress ip in ips)
|
||||||
{
|
{
|
||||||
if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
||||||
return ip.ToString();
|
return ip.ToString();
|
||||||
}
|
}
|
||||||
return "";
|
return "";*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#region server control
|
#region server control
|
||||||
|
|||||||
Binary file not shown.
-57639
File diff suppressed because it is too large.
Load diff
Binary file not shown.
-57639
File diff suppressed because it is too large.
Load diff
@@ -678,9 +678,9 @@ namespace Vocaluxe.Base.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Hide TR_USERROLE_GUEST and TR_USERROLE_NORMAL
|
//Hide TR_USERROLE_GUEST and TR_USERROLE_NORMAL
|
||||||
const EUserRole mask = (EUserRole.TR_USERROLE_GUEST | EUserRole.TR_USERROLE_NORMAL);
|
//const EUserRole mask = (EUserRole.TR_USERROLE_GUEST | EUserRole.TR_USERROLE_NORMAL);
|
||||||
|
|
||||||
return (int)(profile.UserRole & ~mask);
|
return (int)(profile.UserRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void _SetUserRole(int profileId, int userRole)
|
private static void _SetUserRole(int profileId, int userRole)
|
||||||
|
|||||||
@@ -198,18 +198,21 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
|
|
||||||
private void UpdateLength(CSong song)
|
private void UpdateLength(CSong song)
|
||||||
{
|
{
|
||||||
float time = CBase.Sound.GetLength(_PreviewSongStream);
|
if (song != null)
|
||||||
if (Math.Abs(song.Finish) > 0.001)
|
|
||||||
time = song.Finish;
|
|
||||||
|
|
||||||
// The audiobackend is not yet ready to return the length
|
|
||||||
if (time > 0)
|
|
||||||
{
|
{
|
||||||
time -= song.Start;
|
float time = CBase.Sound.GetLength(_PreviewSongStream);
|
||||||
var min = (int)Math.Floor(time / 60f);
|
if (Math.Abs(song.Finish) > 0.001)
|
||||||
var sec = (int)(time - min * 60f);
|
time = song.Finish;
|
||||||
_SongLength.Text = min.ToString("00") + ":" + sec.ToString("00");
|
|
||||||
_Length = time;
|
// The audiobackend is not yet ready to return the length
|
||||||
|
if (time > 0)
|
||||||
|
{
|
||||||
|
time -= song.Start;
|
||||||
|
var min = (int)Math.Floor(time / 60f);
|
||||||
|
var sec = (int)(time - min * 60f);
|
||||||
|
_SongLength.Text = min.ToString("00") + ":" + sec.ToString("00");
|
||||||
|
_Length = time;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user