LoadSound question
BlitzMax Forums/BlitzMax Beginners Area/LoadSound question
| ||
It states in the documenation of LoadSound "the url can be either a string, a stream or a TAudioSample object." I am trying to figure out how to get the LoudSound command to load from a stream but I think I do not have the syntax correct. When i run the program there are no errors, it just doesn't play the music. Listed below is the program: in=ReadStream("music.ogg") While Not Eof(in) sound=LoadSound(in) PlaySound sound Wend CloseStream in End Jason |
| ||
Thats wrong you would have local in:TStream = readStream("music.ogg") sound = loadsound(in) for example. the "read from stream" is mainly for 2 purposes: dynamically generated sound sound that has been read into a bank that was previously stored encrypted as file (-> no need to unencrypt onto the disk and load from there) |
| ||
I have converted it to what is above and still no music. There are no errors though, the program runs through to Process Complete. What is a dynamically generated sound and how is it different from a normal sound? Jason |