Fixed playing state

Fixed DirectSound record
This commit is contained in:
Stephan Sundermann committed 2012-05-01 23:12:36 +02:00
1 parent 76360eacdf
commit cd6fbfb983
2 files changed
+17 -1

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ namespace Vocaluxe.Base
{ {
get get
{ {
return CSound.IsPlaying(_CurrentMusicStream); return _Playing;
} }
} }
+16
View File
@@ -193,6 +193,22 @@ namespace Vocaluxe.Lib.Sound
return _Devices.ToArray(); return _Devices.ToArray();
} }
public int NumHalfTones(int Player)
{
if (!_initialized)
return 0;
return _Buffer[Player].NumHalfTones;
}
public float[] ToneWeigth(int Player)
{
if (!_initialized)
return null;
return _Buffer[Player].ToneWeigth;
}
private void OnDataReady(object sender, SampleDataEventArgs e) private void OnDataReady(object sender, SampleDataEventArgs e)
{ {
if (_initialized) if (_initialized)