i have played a bit with the netstream example code.
i have added
else if (FMOD_OPENSTATE_CONNECTING == openstate)
else if (FMOD_OPENSTATE_ERROR == openstate)
else if (FMOD_OPENSTATE_BUFFERING == openstate)
but none of the printf’s is excuted ever.Why?
How am i suppossed to get the count of buffering?
fmod3 had FSOUND_Stream_Net_GetStatus()
On FMOD_OPENSTATE_ERROR how do i get the real reason (error code)?
BTW:on my 1ghz iBook the sound is disturbed if i scroll a window in xcode, or change folder in mail.app or do some other things which need some cpu, like scrolling through the Dock or doing expose. This also happens with the playstream example( i have modfied to load any file).
But system->setStreamBufferSize(1000); helps with playstream, netsream still stutters sometimes if doing expose back and forth but less than without.
This file cannot be loaded(name copied from the shell)
/Volumes/data/mp3/no-man/together\ we\’re\ stranger/02-Together\ We\’re\ Stranger.ogg
but fmod3 stream sample can.
I suppose it has something to do with the ‘
All tests done on OSX10.3.8.
- gunnar67 asked 13 years ago
yes the buffering /connecting state stuff works now.
the addition to check the buffer percent filled while plaxing is also very nice.
BUT doing expose (F9) still leads to extreme stuttering sound while executing playstream and netstream sample. This is really annoying because doing expose is a very common action.
BTW: the filename thing is a non-issue, i was my fault, so you did well in ignoring it 😉
And what about supporting pls and m3u links for nestreams?
i did set the buffersize in playstream to 5000 ms,
but is still stutters. the netsream shows now starving message.
It is a short stutter. a repeat of a 1/10 s of the sound.
But it stutters all the time the dock comes into the foreground or doing expose. do you not observe this effect on your mac?
Hm i thought i had mentioned that i am using osx in my first post.
ok when calling
result = system->setDSPBufferSize(4096,8);
result = system->init(1, 1, FMOD_INIT_NORMAL, NULL);
result = system->setStreamBufferSize(1000,FMOD_TIMEUNIT_MS);
i have no stuttering anymore.
what bad effects has this settings? (besides needing more memory?)
of course i did noctice you wrote 1024.
ok maybe i should just have written in my answer
setDSPBufferSize(1024,8) did not help.
but i thought i better try to increase the values until it
works for me.
could the problem also be caused by the thread priority being to low?
Please login first to submit.