I have been playing several different Ogg Vorbis audio tracks with the PB 5.21 LTS included Sound library using the OggDecoder. I found something peculiar, when Ogg Vorbis files are played which have a logical bitstream with a serial number valued '0', it doesn't play the song completely. These songs do properly play in VLC Media Player and vorbis-tools decode them properly as well, however PureBasic seems to cut them at 06:02 if there duration is longer than this value.
I can't share the problematic files here due to copyright infringement, because I tested this on music from games.
Here's some analytic information about the four files I tested on, surprisingly, both files for which ogginfo from vorbis-tools warns do not play well in PureBasic. Bitstream serial number 0 is legal though, so it should play properly.
Code: Select all
All files play or decode properly in VLC Media Player and Vorbis-Tools.
Files noted with "FAILS" fail to play fully in PureBasic 5.21 LTS, as
the duration is detected to be 06:02. Coincidentally both these files
have a bitstream serial number 0 for the primary stream.
Files noted with "WORKS" work properly in PureBasic 5.21 LTS
FAILS: 9AA.ogg - A track from the game "GoatSimulator"
- Duration: 7:30, PB 5.21 detects 06:02
- First bitstream has serial number 0. Vorbis Tools notes that it is legal, but it may cause problems
in some tools (as it seems to be doing in PureBasic 5.21 LTS' sound library
- Vendor: Xiph.Org libVorbis I 20101101 (Schaufenugget)
- Version: 0 (correct)
- Channels: 2
- Rate: 44100
- Nominal bitrate: 104 kb/s
- Upper bitrate: not set
- Lower bitrate: not set
- User comments section: ENCODER=UnrealEngine3
- Vorbis stream 1:
- Total data length: 5691131 bytes
- Playback length (from vorbis tools): 7m:30.063s
- Avarage bitrate: 101,161348 kb/s
FAILS: 332ECD.ogg - A track from the game "GoatSimulator"
- Duration: 6:10, PB 5.21 detects 06:02 (again, coincidence?)
- First bitstream has serial number 0. Vorbis Tools notes that it is legal, but it may cause problems
in some tools (as it seems to be doing in PureBasic 5.21 LTS' sound library
- Vendor: Xiph.Org libVorbis I 20101101 (Schaufenugget)
- Version: 0 (correct)
- Channels: 2
- Rate: 44100
- Nominal bitrate: 104 kb/s
- Upper bitrate: not set
- Lower bitrate: not set
- User comments section: ENCODER=UnrealEngine3
- Vorbis stream 1:
- Total data length: 4658097 bytes
- Playback length (from vorbis tools): 6m:10.758s
- Avarage bitrate: 100,509528 kb/s
WORKS: DirgeDefective1.ogg - A track from the game "Killing Floor"
- Duration: 02:19, PB 5.21 detects 02:19
- vorbis-tools does not warn about first bitstream having serial number 0
- Vendor: BS; Lancer(SSE) [20060331] (based on aoTuV b4b [20051117])
- Version: 0 (correct)
- Channels: 2
- Rate: 44100
- Nominal bitrate: 128 kb/s
- Upper bitrate: not set
- Lower bitrate: not set
- Vorbis stream 1:
- Total data length: 2387580 bytes
- Playback length (from vorbis tools): 2m:19.184s
- Avarage bitrate: 100,509528 kb/s
WORKS: whistle.ogg - A sound from a similar bugreport for FireFox
- Duration: 00:00.721, PB 5.21 plays it completely
- vorbis-tools does not warn about first bitstream having serial number 0
- Vendor: AO; aoTuV r1 [20051117] (based on Xiph.Org's libVorbis)
- Version: 0 (correct)
- Channels: 1
- Rate: 24000
- Nominal bitrate: 45,111 kb/s
- Upper bitrate: not set
- Lower bitrate: not set
- Vorbis stream 1:
- Total data length: 4746 bytes
- Playback length (from vorbis tools): 0m:00.721s
- Avarage bitrate: 52,590293 kb/s
Cheers
Edit - See next post for additional information