That’s what I’ve written so far:
string omgwut; omgwut = textBox1.Text; omgwut = omgwut.Replace(' ', 'snd\\space.wav'); omgwut = omgwut.Replace('a', 'snd\\a.wav');
Now, the problem is that this code would turn
'snd\space.wav'
into
'snd\spsnd\a.wavce.wsnd\a.wavv'
in line four. Not what I’d want! Now I know I’m not good at C#, so that’s why I’m asking.
Solutions would be great! Thanks!
You’ll still need to write the getSoundForChar() function, but this should do what you’re asking. I’m not sure, though, that what you’re asking will do what you want, i.e., play the sound for the associated character. You might be better off putting them in a List<string> for that.
Here’s a start: