getSoundFrequency with streaming returns 0

Just starting out? Need help? Post your questions and find answers here.
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

getSoundFrequency with streaming returns 0

Post by nsstudios »

Hi all,

It appears that GetSoundFrequency with #pb_sound_streaming always returns 0. Is there a way around this?
I'm making a game in which I have bigger ogg files that I need to stream, or they take very long to load.
Example:

Code: Select all

InitSound(): UseOGGSoundDecoder()
LoadSound(0, #PB_Compiler_Home+"examples\3d\data\roar.ogg");, #PB_Sound_Streaming); uncomment, and it will return 0
PlaySound(0)
Delay(100)
Debug GetSoundFrequency(0)