In my Project i have 525 Wave Files as Resource.
I want to Load all of this Wave Files into stream array and Store them For later use.
The problem is i Cant index Resources to Get those files.
Resources Sorted by name and i want to fill my array with this Order.
There is no Folder inside Resources. Just Wave files. Also there is no extra files in it. there is exactly 525 wave files.
I wish i could do something like this.
Stream[] waves = new Stream[525];
for (int i = 0; i < waves.Length; i++)
{
waves[i] = Resources[i];
}
Example Name of file names.
A00,A01,A02,A03,.....B01,B02,B03,....C01....
I also Tried this. But files names are not easy to be indexed.
Also if there is any way to put Resources in Dictionary it will become much easier.
Stream[] waves = new Stream[525];
Dictionary<int, Stream> Res = new Dictionary<int, Stream>();
for (int i = 0; i < waves.Length; i++)
{
waves[i] = Res[i];
}