Skip to content

Commit 6f73bcb

Browse files
committed
examples: BASS: fix BASS_Init() return value check
1 parent cb13be6 commit 6f73bcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sound/BASS/demo.bas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If (HiWord(BASS_GetVersion()) <> BASSVERSION) Then
88
End If
99

1010
' Initialize BASS using the default device at 44.1 KHz.
11-
If (BASS_Init(-1, 44100, 0, 0, 0) <> TRUE) Then
11+
If (BASS_Init(-1, 44100, 0, 0, 0) = FALSE) Then
1212
Print "Could not initialize audio! BASS returned error " & BASS_ErrorGetCode()
1313
GetKey
1414
End
@@ -86,7 +86,7 @@ Do
8686
End Select
8787

8888
' Print music progress
89-
Locate currentLine
89+
Locate currentLine, 1
9090
Dim As QWORD trackerPosition = BASS_ChannelGetPosition(musicHandle, BASS_POS_MUSIC_ORDER)
9191
Dim As Double secondsPosition = BASS_ChannelBytes2Seconds(musicHandle, BASS_ChannelGetPosition(musicHandle, BASS_POS_BYTE))
9292
Print "Music position: Order: " & LoWord(trackerPosition) & ", Row: " & HiWord(trackerPosition) & " (" & CInt(secondsPosition) & " seconds) "

0 commit comments

Comments
 (0)