Author Topic: [Windows 11]Can't play high bitrate flac with bassflac add-on loaded.  (Read 588 times)

Ferry

  • Guest
When playing a high bitrate flac file with bassflac add-on loaded, it only plays normally for 1~2s, then there is no sound and the progress is not updated.
If I don't load bassflac add-on, the ctype is BASS_CTYPE_STREAM_MF. Then the error disappears.

I didn't get any error when using BASS_StreamCreateFile, BASS_ChannelStart, BASS_ChannelSetPosition.

Here are the file which can't be play normally.
https://drive.google.com/file/d/13W_oAP_5jbDD-BOACdakcGAAfXP4BUQT/view?usp=sharing
https://drive.google.com/file/d/1o0Duq16kSXX8ADjTQVnlZFuEMFEL12Uk/view?usp=sharing

Any helps? Thanks!

Ian @ un4seen

  • Administrator
  • Posts: 26177
Those files seem to be OK with BASSFLAC here, testing with the pre-compiled PLUGINS.EXE example from the BASS package (C\BIN folder). Please try that there (after copying BASSFLAC.DLL into the same folder), and see if you have the problem with it too. Also check that you have the latest BASS and BASSFLAC versions.

Ferry

  • Guest
Thanks for your reply!
Drawing on the plugin.c, I remove the BASS_ASYNCFILE tag. And the error disappears. But why?

before:
Code: [Select]
_fstream = _bass.BASS_StreamCreateFile(FALSE, pathPointer, 0, 0, BASS_UNICODE | BASS_ASYNCFILE | BASS_SAMPLE_FLOAT);

now:
Code: [Select]
_fstream = _bass.BASS_StreamCreateFile(
        FALSE, pathPointer, 0, 0, BASS_UNICODE | BASS_SAMPLE_FLOAT);

Ian @ un4seen

  • Administrator
  • Posts: 26177
Oh yes, I am able to reproduce the problem after adding the BASS_ASYNCFILE flag. BASSFLAC enables some special processing to avoid delays when ASYNCFILE is enabled and the async file buffer (BASS_CONFIG_ASYNCFILE_BUFFER) is big enough to contain the FLAC file's largest frame. But there's a problem with that when the async buffer is only just big enough, as the default 64KB setting is for these 2 files. Here's a BASSFLAC update that disables the special processing in that case:

   www.un4seen.com/stuff/bassflac.zip

Let me know if you still have any trouble with it.

Ferry

  • Guest
The problem is gone with this bassflac. Thanks for your help!

Ian @ un4seen

  • Administrator
  • Posts: 26177
Great! For anyone else having the same problem, the BASSFLAC update (2.4.5.5) is now up on the BASS page.