Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
Bonzomatic
Commits
2a2d734a
Commit
2a2d734a
authored
Mar 31, 2015
by
Gargaj
Browse files
return proper error messages (herp)
parent
4d58fbb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform_w32_common/FFT.cpp
View file @
2a2d734a
...
...
@@ -10,17 +10,15 @@ namespace FFT
const
int
freq
=
44100
;
int
device
=
-
1
;
int
res
=
BASS_Init
(
device
,
freq
,
0
,
0
,
0
);
if
(
!
res
)
if
(
!
BASS_Init
(
device
,
freq
,
0
,
0
,
0
)
)
{
printf
(
"[FFT] BASS_Init failed: %08X
\n
"
,
res
);
printf
(
"[FFT] BASS_Init failed: %08X
\n
"
,
BASS_ErrorGetCode
()
);
return
false
;
}
res
=
BASS_RecordInit
(
device
);
if
(
!
res
)
if
(
!
BASS_RecordInit
(
device
)
)
{
printf
(
"[FFT] BASS_RecordInit failed: %08X
\n
"
,
res
);
printf
(
"[FFT] BASS_RecordInit failed: %08X
\n
"
,
BASS_ErrorGetCode
()
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment