Is it possible to convert SoundEffect to other data type?
Is there any way to Convert a Soundeffect to Some other form of data type?
Such as a string or even a int64 or series of ints?
There is a .ToString method for Soundeffects but from looking at what gets printed when you view it, .ToString just converts some information about the soundeffect to a string. Not the actual sound data in the Soundeffect.
And It did not look like there was any way to convert
Textstring = ( Soundone.ToString());
Back into a Soundeffect
For the same reason it did not look like there was any obvious way to convert anything into a Soundeffect.
The reason this would be useful is that I have read that there is no way to get control the Zune's integrated soundcard, so that to simply make a beep sound you need a wave of a beep that gets loaded as a Soundeffect. But you would not need access to the soundcard if you could generate, modify or piece together from many parts, a wave file, and then load and play the wave file in the form of a soundeffect.
The amount of time that it would take to generate a sound file and then load it as a soundeffect would make it not usable for instantaneous playback of sound (like an electric keyboard). The latency (the amount of time between triggering the sound and it playing) would be wayyyy to high, but they could be generated and loaded in advance just like a normal soundeffect is loaded in advance.
I have a feeling it will turn out that there is no way to write some data and then load it as a soundeffect but I hope I am wrong.
|