Author Topic: WaveData <> WaveData?  (Read 758 times)

EWeiss

  • Posts: 390
WaveData <> WaveData?
« on: 9 Jul '19 - 18:53 »
if Play a Wave File with Bass 2.4.13 working fine see shot one (Constant waveform)
if Play the same File (see Attached wave) with Bass 2.4.14 it Fails (The waveform changes) with BASS_ChannelGetData(Channel, @result[0], 1024);

should the same then shot one!
i hope you understand what i mean.. please check the wave File in ZIP Archive.. with both Bass Version 2.4.13 and 2.4.14, so you can see the different.

The waveform must remain constant and must not Change, on both bass Version
i have no crash but the WaveForm is wrong!

see also the Waveform with Audacity..

greets
« Last Edit: 9 Jul '19 - 19:15 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #1 on: 10 Jul '19 - 16:36 »
Using the pre-compiled WRITEWAV.EXE example from the BASS package (C\BIN folder), which uses BASS_ChannelGetData, I'm getting the same data in the written BASS.WAV file as in the original WAV file. If you try that there, what do you get?

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #2 on: 10 Jul '19 - 16:42 »
Using the pre-compiled WRITEWAV.EXE example from the BASS package (C\BIN folder), which uses BASS_ChannelGetData, I'm getting the same data in the written BASS.WAV file as in the original WAV file. If you try that there, what do you get?

my Problem is following..
I can not use WRITEWAV.EXE which has Nothing to do with my Problem.
first i am start my application with bass 2.4.13 all work as should
i am Change Nothing in my Code only replace bass  2.4.13 with  2.4.14 and the Wavedata are wrong.

also what should i do?
ignore  2.4.14 it is wrong ?

the Trouble is not the *.wav File the Trouble is 2.4.14 which give me wrong data over BASS_ChannelGetData!
only replace Bass without Change any on my Code. and Play the same file!

greets
« Last Edit: 10 Jul '19 - 16:48 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #3 on: 10 Jul '19 - 16:50 »
But the WRITEWAV example is using BASS_ChannelGetData and seems to be working fine? If you are doing something different in your app, please show what that is.

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #4 on: 10 Jul '19 - 16:55 »
But the WRITEWAV example is using BASS_ChannelGetData and seems to be working fine? If you are doing something different in your app, please show what that is.

Hello?
I have tell you i am Change Nothing in my Code only replace bass.
with the same Code and the same file.

and
Code: [Select]
BASS_ChannelGetData(Channel, @result[0], 1024);
the difference comes from bass not from my application

greets

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #5 on: 10 Jul '19 - 17:21 »
When I said "doing something different in your app", I meant compared to the WRITEWAV example. All you have revealed so far is that you are using BASS_ChannelGetData, but BASS_ChannelGetData is working fine in the WRITEWAV example with your file (here at least), so I need to know what else you're doing. For example, how are you creating the "Channel" handle?

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #6 on: 10 Jul '19 - 17:29 »
Quote
For example, how are you creating the "Channel" handle?
Hmm..
Code: [Select]
      Channel := BASS_StreamCreateFile(FALSE, PWideChar(AudioFile), 0, 0,
        BASS_STREAM_AUTOFREE {$IFDEF UNICODE} or BASS_UNICODE {$ENDIF});

but as say.. it work 100% with 2.4.13 not with 2.4.14
i am start my compiled exe outside from IDE (Delphi) also as standalone.
then replace bass and the Data are wrong.

BASS_ChannelGetData works fine with my *.wav sample and 2.4.13 but not with 2.4.14

i want give you a link to a Video File so you can see the Trouble.

greets
« Last Edit: 10 Jul '19 - 19:02 by EWeiss »

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #7 on: 10 Jul '19 - 18:23 »
i have do following..

using writewav.exe
load my file 300Hz_-6dBFS_5s.wav
and decode a new one from it

1. 2414:300Hz_-6dBFS_5s.wav (using 2.4.14)
2. 2413:300Hz_-6dBFS_5s.wav (using 2.4.13)

1 and 2 has the same Bytes
Play both files with 2.4.13 all work fine (WaveData correctly)
Play both file with 2.4.14 all Fails (WaveData wrong)

the Bytes which i have written has Nothing to do with the WaveData which come over and from BASS_ChannelGetData.. 2.4.13 <> 2.4.14
i hope you understand now what i mean and hope your Show the Video.

greets
« Last Edit: 10 Jul '19 - 19:04 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #8 on: 11 Jul '19 - 12:02 »
Thanks for the additional info. I think I see what the problem is now. Are you using the 2.4.14 release version or a recent "stuff" update? There was a recent tweak to BASS_ChannelGetData which it turns out could occasionally result in some data being returned from an incorrect place in the playback buffer (decoding channels aren't affected). Here's an update that reverses the tweak:

   www.un4seen.com/stuff/bass.zip

Let me know if you still get the problem with that.

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #9 on: 11 Jul '19 - 12:08 »
Quote
Let me know if you still get the problem with that.
if the same Trouble WaveData are wrong.. sorry
Quote
Are you using the 2.4.14 release version or a recent "stuff"
i am using 2.4.13 while the Wavedata since 2.4.14.0 are broken.

greets
« Last Edit: 11 Jul '19 - 12:16 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #10 on: 11 Jul '19 - 12:21 »
OK, I guess that must be something else then. Please see if you can reproduce the problem with the pre-compiled SPECTRUM.EXE example from the BASS package (C\BIN folder). If that is working fine, can you provide a small example (code) to reproduce the problem with?

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #11 on: 11 Jul '19 - 12:22 »
OK, I guess that must be something else then. Please see if you can reproduce the problem with the pre-compiled SPECTRUM.EXE example from the BASS package (C\BIN folder).
ok i want check it with SPECTRUM.EXE
same Trouble.

Quote
can you provide a small example (code) to reproduce the problem with?
i can't create a small example, which is allways "big" for reproduce the Problem.. and not finish in a half hour.
sorry..

i think use 2.4.13 that works..
Thank you for your time.

greets
« Last Edit: 11 Jul '19 - 13:16 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #12 on: 11 Jul '19 - 13:22 »
Can you record a video of the problem happening in the SPECTRUM.EXE example (in the waveform mode), to see what it looks like?

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #13 on: 11 Jul '19 - 13:26 »
Can you record a video of the problem happening in the SPECTRUM.EXE example (in the waveform mode), to see what it looks like?
i have create a Video with my App and it looks the same..
the wavedata are tranquilly with 13 and restively with 14.

greets
« Last Edit: 11 Jul '19 - 13:33 by EWeiss »

Ian @ un4seen

  • Administrator
  • Posts: 22244
Re: WaveData <> WaveData?
« Reply #14 on: 11 Jul '19 - 13:42 »
Yes, but I know what the SPECTRUM example is doing and what it is meant to look like, so I can compare with that.

Another thing you could check, does the problem happen if you use the BASS_DEVICE_DSOUND flag in your BASS_Init call?

EWeiss

  • Posts: 390
Re: WaveData <> WaveData?
« Reply #15 on: 11 Jul '19 - 13:49 »
if using

Code: [Select]
if (not BASS_Init(-1, 44100, BASS_DEVICE_DSOUND, MainHandle, nil)) then
then i have the same Trouble in 13 as in 14..
that will break 2.4.13 also.

13 and 14 then render the same
but wrong i think.

greets
« Last Edit: 11 Jul '19 - 14:04 by EWeiss »