An issue with Bassopus, and a question about ogg on Arm64

Started by Karl Eick,

Karl Eick

Hi there,
I'm sorry if those things have already been raised. There is a social networking app for blind and visually impaired people called Elten. The PC client has a few other functions beyond social networking as well. It makes use of the Bass libraries, and the developer of Elten and I came across two issues we would like to be fixed.
1. Bassopus cutting off the  beginning of files.
Private voice messages and voice posts in forums don't play directly from the beginning, a few seconds are cut off. The developer of Elten said that this is a bassopus issue, not a problem with Elten. I would be very glad if you could investigate and fix this.
2. Bass OGG support on ARM 64. Are there any plans when and if OGG on ARM 64 will be supported? As of Elten 3.0, which is currently in Beta stage, the Elten client will become cross-platform, and it would be best to have the exact same behavior on all architectures.
Thanks very much in advance!

Ian @ un4seen

Quote from: Karl Eick1. Bassopus cutting off the  beginning of files.
Private voice messages and voice posts in forums don't play directly from the beginning, a few seconds are cut off. The developer of Elten said that this is a bassopus issue, not a problem with Elten. I would be very glad if you could investigate and fix this.

Are those Opus files sounding correct in other software? If so, please upload one of them to have a look at here:

    ftp://ftp.un4seen.com/incoming/

If they sound the same in other software then perhaps the problem is that the first few seconds weren't sent to the Opus encoder?

Quote from: Karl Eick2. Bass OGG support on ARM 64. Are there any plans when and if OGG on ARM 64 will be supported? As of Elten 3.0, which is currently in Beta stage, the Elten client will become cross-platform, and it would be best to have the exact same behavior on all architectures.

Do you mean Ogg Vorbis file playback? If so, that should already be supported on ARM64. If you have a file that isn't playing, please upload that too.

Karl Eick

In other software, such as VLC, the opus files are played correctly. Nevertheless, I uploaded a file for you to test. I guess it's the playback using bass itself. As for Ogg, on Windows ARM 64, a bass fileform error is always thrown on playback of an OGG vorbis stream or file, as opposed on x86 64 or OSX arm 64.

Ian @ un4seen

The uploaded Opus file appears to be non-standard. The Opus spec states that the audio data must start in a separate "page" from the headers, here:

    https://www.rfc-editor.org/info/rfc7845/#section-3

In your example file, the audio data starts in the same page as the headers. BASSOPUS will be ignoring the audio data in the header page, so that would explain why some sound is missing from the start. Making the encoder start a new page for the audio data should fix the problem. Let me know if it doesn't.

The same "audio data must start in a separate page" requirement also applies to Ogg Vorbis (and I believe all other Ogg-based file formats). If your Ogg Vorbis files currently don't start a new page for the audio, please try changing that and see if it helps with the ARM64 issue.

Karl Eick

Yes, the Opus problem can indeed be fixed with pagination. But the OGG Vorbis issue is unrelated to that. Every file on the developer's HDD drive is unplayable and throws the fileform error. And, from what I understand, it is only a problem with ARM 64 on Windows.

Ian @ un4seen

First, please try this latest BASS build:

    www.un4seen.com/stuff/bass-arm64.zip

If the problem still happens then please upload an affected file to have a look at. Also confirm that other file formats (including Opus with BASSOPUS) are working on the same system.

Karl Eick

The problem still persists. I now uploaded a file, but it doesn't matter. Every OGG vorbis file, encoded with Elten or FFMPEG, which doesn't matter either, fails with a bass fileform error on Windows ARM 64. All other formats are working, and it's a problem exclusive to Windows on ARM, not other ARM platforms.

Karl Eick

And it's really the native ARM builds that fail, x64 emulation on ARM works as well. But we'd rather have the native builds.

Ian @ un4seen

Sorry about the delay. I didn't have an ARM64 Windows device at hand last week, so I couldn't check the problem myself, but I do see it now. Here's an update that should fix it:

    www.un4seen.com/stuff/bass-arm64.zip

Karl Eick

Yes, that ultimately fixes it! Thanks very much! And there is no need for apologies, all I did in my previous post is confirm the things you asked me to confirm, which I also couldn't do until yesterday, but now, all is well. Again, thank you so much!

Karl Eick

Hello, me again, the latest ARm archive seems to miss the latest Bassmidi library with bulk tuning dump support. Could you please make sure that every bass version includes the latest midi library? Thank you!

Ian @ un4seen