Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hydrumkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
hydrumkit
Commits
fca90104
Commit
fca90104
authored
6 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Build with -Wall -Werror
And fix a couple of related warnings.
parent
47631740
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.am
+1
-1
1 addition, 1 deletion
Makefile.am
aux/verify-voice.c
+5
-3
5 additions, 3 deletions
aux/verify-voice.c
engine/drumkit.c
+1
-1
1 addition, 1 deletion
engine/drumkit.c
with
7 additions
and
5 deletions
Makefile.am
+
1
−
1
View file @
fca90104
AM_CPPFLAGS
=
-I
$(
top_srcdir
)
/engine
$(
SNDFILE_CFLAGS
)
$(
SAMPLERATE_CFLAGS
)
AM_CPPFLAGS
=
-Wall
-Werror
-I
$(
top_srcdir
)
/engine
$(
SNDFILE_CFLAGS
)
$(
SAMPLERATE_CFLAGS
)
noinst_LTLIBRARIES
=
libengine.la
...
...
This diff is collapsed.
Click to expand it.
aux/verify-voice.c
+
5
−
3
View file @
fca90104
...
...
@@ -35,7 +35,7 @@ int main(int argc, char **argv) {
struct
voice
voice
;
struct
instrument
*
ins
;
struct
layer
*
layer
;
float
*
out_l
,
*
out_r
;
float
*
out_l
=
NULL
,
*
out_r
=
NULL
;
int
total_samples
;
int
lead_samples
=
100
;
int
note_samples
=
100000
;
...
...
@@ -88,8 +88,10 @@ int main(int argc, char **argv) {
write_sample
(
"out.wav"
,
out_l
,
out_r
,
total_samples
);
cleanup:
free
(
out_l
);
free
(
out_r
);
if
(
out_l
)
free
(
out_l
);
if
(
out_r
)
free
(
out_r
);
drumkit_free
(
&
kit
);
/*
...
...
This diff is collapsed.
Click to expand it.
engine/drumkit.c
+
1
−
1
View file @
fca90104
...
...
@@ -473,7 +473,7 @@ int drumkit_load(struct drumkit *kit, const char *filename, int target_samplerat
// libxml2 to parse it anyway by setting the proper namespace on all
// elements.
root_element
=
xmlDocGetRootElement
(
doc
);
if
(
!
strcmp
(
root_element
->
name
,
"drumkit_info"
)
&&
root_element
->
ns
==
NULL
)
{
if
(
!
strcmp
(
(
const
char
*
)
root_element
->
name
,
"drumkit_info"
)
&&
root_element
->
ns
==
NULL
)
{
fprintf
(
stderr
,
"spotted old-style (bad) XML
\n
"
);
ns
=
xmlNewNs
(
root_element
,
(
xmlChar
*
)
"http://www.hydrogen-music.org/drumkit"
,
(
xmlChar
*
)
""
);
fix_bad_xml
(
root_element
,
ns
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment