0
0

[size=150:287ofg5g](Freeze when stopping stream with FX enabled)[/size:287ofg5g]

I use VB6, Windows XP, SB Live!
All the code and pointer handles are in class module.

fmod init:

[code:287ofg5g]
FSOUND_SetOutput FSOUND_OUTPUT_DSOUND
FSOUND_SetMixer FSOUND_MIXER_QUALITY_FPU
FSOUND_SetBufferSize 200
FSOUND_Stream_SetBufferSize 400

device_inited = FSOUND_Init(device_freq, device_channels, 1 Or 2 Or 4)

FSOUND_SetSpeakerMode FSOUND_SPEAKERMODE_STEREO
[/code:287ofg5g]

Everything runs smooth.

When I enable FX like this:
[code:287ofg5g]
FSOUND_SetPaused FSOUND_SYSTEMCHANNEL, True
ReDim eq_handle(eq_handle_count) As Long

For I = 1 To eq_handle_count
eq_handle(I) = FSOUND_FX_Enable(FSOUND_SYSTEMCHANNEL, FSOUND_FX_PARAMEQ)
Next I

FSOUND_SetPaused FSOUND_SYSTEMCHANNEL, False

eq_inited = eq_handle(1) > 0
[/code:287ofg5g]

Yeah, the equaliser i wrote runs perfect too.
But when i try to stop the file:

[code:287ofg5g]
Do Until FSOUND_Stream_GetOpenState(.handle) = 0
DoEvents
Loop

FSOUND_Stream_Stop .handle ‘here is the freezing
FSOUND_Stream_Close .handle
[/code:287ofg5g]

I got 100% CPU usage, i can hardly move my mouse, need to wait 2 minuts for task manager to launch. WHen i simply ommit initializing FX
everything runs perfect, i can stop files hundreds of times.
When it’s on, almost every time when i stop the stream, i got above symptoms.
I tried changing everything, scanned the whole forum but didn’t find the answer.

Can anbyody help?

  • You must to post comments
0
0

Yes the dll is new and 1 kb bigger but id does crash too! And exactly the same problem. 😕

  • You must to post comments
0
0

I have 2 machines, one being a laptop. Both run Win XP at SP1 and both have VB6 at SP6 installed. My code works fine on the laptop but not on the machine with an SB Live (Value) card in from Dell. I have downloaded the latest drivers but to no avail.

See my post
[quote:3csuzvux]http://52.88.2.202/forum/viewtopic.php?t=2859[/quote:3csuzvux]

TBE

  • You must to post comments
0
0

And, i forgot, it freezes only when you apply effects on global system channel(dsp without it anyway). When applied only on channel works perfect. But what about spectrum then? :roll:

  • You must to post comments
0
0

Yes sorry i have probably mixed them up. It works.

  • You must to post comments
0
0

Hello all,

        Well , i used to have the same problem too on VB6, I had to upgrade to VB.net to solve the problem and I did.

on Vb.Net and with the same code the problem had gone.

By the way i don’t have SB live , I have an onboard AC’97 sound card and DX v9.0.

  • You must to post comments
0
0

yeah, of course. i figured out that it’s good to stop after pausing global channel. but then, after unpausing you hear as-long-as-buffer artefacts. the main problem is, still, that it always freezes when the song ends without stoping. stream_end_callback or something doesn’t help at all. but still, i don’t want to pause global channel because i wanna have fading. and spectrum. and eq. PLEASE!!!! 👿

  • You must to post comments
0
0

that’s a pity, that fmod is still not fixed for the topic issue. i had to write code to detect if the soundcard is sb live and if is then disable FX. that’ sucks so much, but i have to if i want my software to be stable. i must also confess, that i made fmod one of plugins, lowering its priority from the most important to as much important as dshow, bass or winamp plugins.

i still hope, that some day this problem will be fixed. i have a dream that when i start using fmod4 all the problems will suddenly disapear. but my dreams never come true.

  • You must to post comments
0
0

On my machine, the problem does not depend on language used. I tried VB, C++, even IBasic. Still the same. As tbe said, after pause pause the systemchannel too. This partially works for me. Pause/unpause – ok. Stop – in my app its just pause and then seek file to pos 0.
But what if the stream comes to end? The buffer will run out and the machine will freeze again. This happens also on my Manli CME8738 sound card as mentoined before in this topic. There must be some solution!

  • You must to post comments
0
0

i can’t force all users of my software possesing sb live to look for newest drivers (if mine are not) because they would just say “hey, why should i use your soft if other works perfectly”. That’s why i mention winamp. Or, if you don’t like comparing program to a library you can compare winamp playback library to fmod.
as long as other software works (even if not using dx8) perfectly i expect fmod will do to.
that’s why i still claim that it is a bug in fmod.
i also agree that sb live drivers suck. total incompatibility.

  • You must to post comments
0
0

Thats great! The idea to detect sblive never got up in my mind. But how to do that? Can you please email me the code? I was trying to load fmod and bass together, play a stream with fmod and then enable fx with bass, so fmod wont know about it. But bass cannot enable fx on global system channel because i dont know how to get its handle… It isnt -1000 like in fmod.

  • You must to post comments
0
0

OK, sorry, I forgot to add open file and play file:

OPEN FILE:
[code:31h1k2ej]
.handle = SOUND_Stream_Open(file_path, FSOUND_MPEGACCURATE, 0, 0)
[/code:31h1k2ej]

PLAY FILE:
[code:31h1k2ej]
.channel = FSOUND_Stream_PlayEx(FSOUND_FREE, media(current_media).handle, 0, False)
[/code:31h1k2ej]

Once again, any suggestions?

  • You must to post comments
0
0

I guess no one has figured out a fix for this? Sadly I had to switch to bass.dll cause I just couldn’t fix the problem.. I’d be more then willing to switch back if the problem was fixed.. :(

  • You must to post comments
0
0

Brett, You want me to do some tests? OK. I got 3 computers at home.
I’ve tested them with your example:

My second PC:
Barton 2500+
ASUS A7N8X
WinXP
NVIDIA nForce(TM) Audio Codec Interface

WORKS OK!

My third PC:
(laptop)
PIII 1000
Fujitsu Siemens MOBO
Intel AC’97 Audio – SigmaTel
Win2000

WORKS OK!

My first PC:
P4 1800
ASUS P4S533-E
WinXP
SB Live!

CRASHES/SLOWS DOWN!!!

More to come.

  • You must to post comments
0
0

sorry for the delay

[code:3w322kp4]

‘ IN MODULE
Global Const c_SBLive = "SB Live"

‘ IN INIT FMOD SUB:

‘ INIT OUTPUT AND DEVICES
FSOUND_SetOutput FSOUND_OUTPUT_WINMM
If FSOUND_GetNumDrivers > 0 Then
ReDim devices_winmm(FSOUND_GetNumDrivers – 1)
For I = 0 To FSOUND_GetNumDrivers – 1
devices_winmm(I) = GetStringFromPointer(FSOUND_GetDriverName(I))
cs = Left(LCase(devices_winmm(I)), Len(c_SBLive))
If cs = LCase(c_SBLive) Then sb_live = True
Next I
End If
FSOUND_SetOutput FSOUND_OUTPUT_DSOUND
If FSOUND_GetNumDrivers > 0 Then
ReDim devices_direct(FSOUND_GetNumDrivers – 1)
For I = 0 To FSOUND_GetNumDrivers – 1
devices_direct(I) = GetStringFromPointer(FSOUND_GetDriverName(I))
Next I
End If[/code:3w322kp4]

  • You must to post comments
0
0

anyone? is it so hard problem? i say PLEASE to every fmod-god. Brett? Andrew? Can U help me ? This issue is stopping my progress. Please. ANY feedback?

  • You must to post comments
0
0

SOMEBODY FIX THE FREEZE PROBLEM WITH FX AND STOP COMMAND UNDER VB ?????

HELLLP ME !

  • You must to post comments
0
0

Calling FSOUND_SetBufferSize(500) doesnt work. The same effect when the 500 ms buffer comes out after pause. I have also 3 pcs at home:

The one I use:
Pentium 4 1700 MHZ Willamette core
Microstar i850 pro5
SB Live! 1024 player 5.1
Win2000 SP 4

not working.

Second:
Pentium III 450 MHZ
MB BrillianX series I440BX
Manli CME8738
Win XP

yes, it is also EATING THE CPU TO 100%!!!!!!
But, prevously i had SB 16 PNP card in this computer…. and, no problems with it.

And third:
AMD am-386DX40 without coprocessor
some motherboard with amibios from 1993
Windows 95
SB 16 PNP

not even able to play an wav… skipping and shuttering sound, but thats normal on a 386… 8)

Nothing was running in the background on my 1700 except some system-critical processes as winlogon.exe, sevices.exe, …
So…. its not only problem of sb live!
I will look at lowpass dsp unit times of processing and tell you.

  • You must to post comments
0
0

Thanks alot! Hope that fmod4 will fix the issue….

  • You must to post comments
0
0

I think that’s the issue of VBasic6 compiler. I’ll try modyfiying settings. I also believe this may be somehow dependant on my source.
This is somehow amazing, that no one had problem like this before.
Although, thanks for your reply.

  • You must to post comments
0
0

I have newest DirectX on each of mine machines (windowsupdate), so it’s probably 9.0b. I also tried newest SB live drivers, but they didn’t help at all.
Whoh, it’s probably hard to fix a problem which we can’t see, huh?

  • You must to post comments
Showing 1 - 20 of 34 results
Your Answer

Please first to submit.