Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
grep -q "Public Sub RiffClose" package/Riff.bas
grep -q "Public Function RiffLoad" package/Riff.bas
grep -q "Public Function RiffPlay" package/Riff.bas
sed -n '/^Public Function RiffLoad(/,/^End Function/p' package/Riff.bas | grep -q "RiffTryLoadWavFast"

- name: Validate release asset workflow
shell: bash
Expand Down
12 changes: 11 additions & 1 deletion package/Riff.bas
Original file line number Diff line number Diff line change
Expand Up @@ -4152,7 +4152,17 @@ Public Function RiffLoad(ByVal filePath As String) As Long
RiffSetLastError RiffErrorFileNotFound
Exit Function
End If


Dim wavResult As Long
wavResult = RiffTryLoadWavFast(filePath, slot)

If wavResult >= 0 Then
RiffLoad = wavResult
Exit Function
ElseIf wavResult = RIFF_FAST_WAV_FATAL Then
Exit Function
End If

#If VBA7 Then
Dim pReader As LongPtr
Dim pPartialType As LongPtr
Expand Down
Loading