Cosmos/source/DokuTest/Sample sound/SoundSamples.cs
2008-08-02 20:11:44 +00:00

36 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DokuTest.Sample_sound
{
public static class SoundSamples
{
public static Cosmos.Hardware.Audio.Devices.PCMStream generateSineWaveForm(double freq, int rate, int count, int sampleSize, int[] channelsList, int period, int nPeriods, double phase)
{
double max_phase = 1.0 / freq;
double step = 1.0 / (double)rate;
double res;
float fres;
//PCMStream pcmStream = new PCMStream();
List<int> frames = new List<int>();
int ind_chan;
while (count-- > 0)
{/*
for (ind_chan = 0; ind_chan < nChannels; ind_chan++)
{
if (sampleSize == 8)
{
if (chn == channel)
{
}
}
}*/
}
return null;
}
}
}