Author Topic: BASS_ChannelGetAttribute returns bad samplespersecond with opus file  (Read 81 times)

gonz23

  • Posts: 22
Hello, I have an opus file encoded with the Bass opus encoder addon from a wav file that was created with 22050 samples per second, mono and 16 bits per sample. When opened with Bass_StreamCreateUser, BASS_ChannelGetAttribute returns 48000. If I see the file properties with DBPowerAmp, for example, it returns 22050 correctly. I upload the file for checking, if wanted.

Ian @ un4seen

  • Administrator
  • Posts: 20616
Opus files always have a sample rate of 48000 Hz (the Opus encoder will resample to that). If wanted, the original sample rate is available via the BASS_ATTRIB_OPUS_ORIGFREQ attribute.

gonz23

  • Posts: 22
Thanks, I guess that is DbPowerAmp does then.