read-sound-file return bytes format
Hello,I’m looking at playing some generated auto samples using play-sound. I am using read-sound-file to load on disk sound files, which returns:
The function
read-sound-file
reads data from source and returns an array of its contents. Does that mean that the bytes format in the returned array is 1) the raw contents of the sound file (.wav in this case) or 2) in some other internal format based on the contents of the sound file?
If 1) would I have to generate a .WAV format header and then the sound data so that it can be used with load-sound?
Or, if somebody could put together an example on how to play a 440 Hz Sine wave generated at runtime using play-sound, that would be very helpful.
—
Burton Samograd