I've been playing around with some rather large music files to see how good the quality can go and a few of these happen to be fairly large. About 500 KB's + per song. Thinking it was fairly cool I decided to take a look at memory usage and noticed that anytime I play a new song on the list my memory seems to retain the last songs or at least doesn't decrease the memory usage I have taken, I was curious if there was a way to either clear the old song from a players memory or is this meant to happen?
If you're curious I mostly use just the
src << sound('song.ogg',1,1,1,100)
As a quick update and reading up more in the DM Reference I did notice that setting the status to stream helps tremendously when using this so long as I'm not messing with the frequency or playing other songs (though I'm unsure if this prevents songs on other channels or what). Still the memory useage does seem to bump up slightly each time not sure what it is but it's far less than before.
As another thought or update whichever comes to mind, i'm curious as to what SOUND_STREAM actually does, we know that streaming is normally taking data and temporarily giving it to the user so in this case is it just quickly dumping the song as it's playing or is it taking up latency when playing online or streaming from the should be downloaded rsc as in locally off the computer? Any help would be appreciated.
Aug 3 2013, 11:14 pm (Edited on Aug 3 2013, 11:39 pm)