Something is haunting the bass lib? :)

Started by kchabot,

kchabot

Hi,

I'm almost finished working on my beta project, but last time I checked I discovered a very weard problem...

I did not change the code, I did not install anything else, I did not add new hardware, I (realy think) nothing has been changed...

When I play any audio file now, it is decoded and rendered succesfully... The visualisations work, the channelLevel meters work and all settings seem to be correct but...
... I hear nothing ...

If I play something with wmplayer or winamp or whatever, I hear the sound/music, so it could not be a soundcard setting...

I have absolutely no idea how this happend...
I'm using all the latest libraries, including bass_fx 1.2 beta...

Does anyone have an idea??
Kind regards...

(: JOBnik! :)

Hi ;D

Check if you're getting a right handle if you're using Tempo or Reverse :)
If you're using tempo, then the handle that has to go to BASS_StreamPlay(..) function is a handle that returned by:
BASS_FX_TempoGetResampledHandle(decHandle) i.e:

DWORD decHandle;
...
decHandle = BASS_StreamCreateFile(...BASS_STREAM_DECODE);
...
BASS_FX_TempoCreate(decHandle,0);
...
BASS_StreamPlay(BASS_FX_TempoGetResampledHandle(decHandle), FALSE, 0);

* Check out the examples that are in BASS_FX 1.2 package for more info ;)

Have fun!

8) JOBnik! 8)

kchabot

*sigh*

I'm not using tempo or reverse...

again, it worked fine yesterday, and now it still works fine, only I hear nothing... I only use bass_fx for the decoding beat counter (which works great btw)...

kchabot

It seems that everything is going well, but that bass doesn't output the rendered audio stream to the speakers...

(: JOBnik! :)

Hi ;D

Are you sure you're playing a right handle?
Check if you didn't replace the BPM handle with a stream handle  ::) and vice versa :)

Have fun!

8) JOBnik! 8)

Ian @ un4seen

Just a wild stab... have you checked the soundcard volume levels? :)

Do you also get this problem with the precompiled examples?

kchabot

It's getting wearder and wearder...

Sometimes it all runs great and I hear sound in the IDE environment...

If I compile the project using P-code, when I play an audio stream the audio application disappears...

If I compile to native code, I hear a small audio stream (the first audio buffer, +/- 100ms) and then nothing. When

I jump to another position, I hear the 100ms again and then again nothing...

This is all very unstable, but I have just formated my pc and every application is running great. I have not had a problem or error since my last installation so :s...

I installed the latest vs service pack etc...

Weard :)

(: JOBnik! :)

Hi ;D

I suggest you to do step by step debugging :)
and check all your global/local variables etc...

Have fun!

8) JOBnik! 8)

Irrational86

Do what Ian said,
QuoteDo you also get this problem with the precompiled examples?

kchabot

I've done some tracing but I am not sure what is wrong.
I did not find any handles being used in the wrong place or being changed etc...

It seems that the audio is muted (altough it is still being rendered and returned succesfully) after the BASS_FX_BPM_DecodeGet is called.

I am sure that it is then when the audio gets silenced because it happens when the BPM is returned.

I use a decode channel to provide that wave data and I use BASS_ChannelBytes2Seconds(hA, BASS_ChannelGetPosition(hA)) to specify the position.

I find it strange, but this problem only occures in the release compiled version and not a debug version in the IDE. In the IDE, the audio plays normal...


Olego

QuoteI find it strange, but this problem only occures in the release compiled version and not a debug version in the IDE. In the IDE, the audio plays normal...
This's happened to me when I malloc'd stuff incorrectly.  I am pretty sure that the main difference between debug and release is that debug is able to catch variour 0x05 Access Violation errors, and Release can't.  Go through all your memory accesses and search rummage those.

~Olego~