0
0

Hello,
i have played a bit with the netstream example code.
i have added
else if (FMOD_OPENSTATE_CONNECTING == openstate)
{
printf(“connecting…\n”);
}
else if (FMOD_OPENSTATE_ERROR == openstate)
{
printf(“open failed!\n”);
break;
}
else if (FMOD_OPENSTATE_BUFFERING == openstate)
{
printf(“buffering…\r”);
}

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.
kind regards,
gunnar

  • You must to post comments
0
0

hi brett.
will test the new version as soon as i am home again.
but what about the filename problem i wrote about?

regards,
gunnar

  • You must to post comments
0
0

and what about this:
How am i suppossed to get the count of buffering?
fmod3 had FSOUND_Stream_Net_GetStatus()

regards,
gunnar

  • You must to post comments
0
0

Hello,

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?

regards,
gunnar

  • You must to post comments
0
0

Hi Brett,
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?
regards,
gunnar

  • You must to post comments
0
0

Hm i thought i had mentioned that i am using osx in my first post.

ok when calling
result = system->setDSPBufferSize(4096,8);
ERRCHECK(result);
result = system->init(1, 1, FMOD_INIT_NORMAL, NULL);
ERRCHECK(result);
result = system->setStreamBufferSize(1000,FMOD_TIMEUNIT_MS);
ERRCHECK(result);

i have no stuttering anymore.

what bad effects has this settings? (besides needing more memory?)

regards,
gunnar

  • You must to post comments
0
0

Hi brett,
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?

regards,
gunnar

  • You must to post comments
Showing 6 results
Your Answer

Please first to submit.