Komme noch nicht ganz zurecht.
Code:
namespace MediaPortal.UI.Presentation.Players
{
/// <summary>
/// Provides
access to sound player functionality needed to render Wave over 32 Bit Floating Point. See BASS_SAMPLE_FLOAT.
/// </summary>
public class WaveData32
{
private readonly float[] data = new float[1024];
public float[] Data { get { return data; } }
}
/// <summary>
/// Provides
access to sound player functionality needed to render Wave.
/// </summary>
public class WaveData
{
private readonly Int16[] data = new Int16[1024];
public Int16[] Data { get { return data; } }
}
/// <summary>
/// Provides
access to sound player functionality needed to render a spectrum analyzer.
/// </summary>
public interface IVizAnalyze : IAudioPlayer
{
WaveData GetWaveData();
WaveData32 GetWaveData32();
.....
Rückgabe: c#
Code:
public WaveData GetWaveData()
{
BassStream vizStream = _controller.PlaybackProcessor.VizStream;
if (vizStream == null)
return GetWaveData(); // <- Fehler?
if (_externalState == PlayerState.Active)
{
if (BassWasapi.BASS_WASAPI_IsStarted())
{
BassWasapi.BASS_WASAPI_GetData(return , 2048);
}
else
Bass.BASS_ChannelGetData(vizStream.Handle, return, 2048);
}
}
Delphi wäre return @Result
also
TWaveData = array [0 .. 1023] of smallint;
wie muss ich das noch umsetzen?
Will irgendwie nicht.
gruss