Problems with play samples

Started by xDimka,

xDimka

Hi, I used BASS_SamplePlay, but sound not shown.
BASS_StreamPlay working, correctly. All initialization, and return code correctly.

If I make test console application BASS_SamplePlay, working also correctly.

my config:
Bass1.8;
Os: xp-prof;
sdk dx9;
Live5.1

Ian @ un4seen

It's not very clear what your problem is. If you're saying that samples don't play, have you checked if the same happens with the BASS pre-compiled examples? (BASSTEST and 3DTEST can use samples) ... If the examples are working, you can compare the example code with yours.

xDimka

My code equal code in basstest, and it working in console app, but sound not listen in application with direct3d  ???

Ian @ un4seen

Ok. So, the examples are working, and there are only problems when you use D3D? If that's the case, try using the D3DCREATE_FPU_PRESERVE flag when you call the D3D CreateDevice function.

xDimka

not D3DCREATE_FPU_PRESERVE flag and(or) D3DCREATE_MULTITHREADED not help.

sorry I repeat, if I play it sample using BASS_StreamCreateFile
..
BASS_StreamPlay

sounds are listening...

xDimka

My DSound log
on init:
...
DSOUND: Setting DirectSound cooperative level to DSSCL_PRIORITY
DSOUND: Running on a certified driver
...
on detach app if I use(play) BASS_StreamPlay:

DSOUND: Error: Buffer was not created with DSBCAPS_CTRLFX flag
...

Ian @ un4seen

Again... the examples are working, and the problem only happens when you use D3D - is that correct? :D

And the problem also only happens when you use samples (BASS_SampleLoad/Play), and not when you use streams (BASS_Stream...) - is that correct?

What file format are the samples that you're loading?

If the problem only happens when you use D3D, I still suspect it's an FPU thing. I'll email you an updated DLL to try. (I'm planning to release it as 1.8a soon)

xDimka

all correct

I loaded mp3(stereo), and ogg(mono).

..FPU thing .. so maybe.. I more exp in 3d, than sound  :)

Ian @ un4seen

Quoteall correct

I loaded mp3(stereo), and ogg(mono).
Ok, that is almost certainly an "FPU thing" :)

Try the update I sent.

xDimka

Thanks Ian,

PlaySample and PlaySample3D working correctly. :)