Skip to content

Packed (inside .vpk) mp3 files error #4

Description

@Isemenuk27

When trying to get the length from packed mp3 files (inside .vpk archives) an error appears.

print(NewSoundDuration("music/hl2_song14.mp3"))

[gluasnd] addons/gluasnd/lua/autorun/soundduration.lua:128: attempt to index local 'buffer' (a nil value)

  1. unknown - addons/gluasnd/lua/autorun/soundduration.lua:128
  2. NewSoundDuration - addons/gluasnd/lua/autorun/soundduration.lua:217
    3. unknown - lua_run:1

print(NewSoundDuration("music/vlvx_song20.mp3")) --HL2EP2
print(NewSoundDuration("music/trombonetauntv2.mp3")) --TF2

Same errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions