Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
a4428471
Commit
a4428471
authored
Feb 11, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Fix compilation.
parent
f4bc3b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
modules/gui/macosx/equalizer.m
modules/gui/macosx/equalizer.m
+11
-11
No files found.
modules/gui/macosx/equalizer.m
View file @
a4428471
...
@@ -99,13 +99,13 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
...
@@ -99,13 +99,13 @@ static void ChangeFiltersString( intf_thread_t *p_intf,
}
}
aout_EnableFilter
(
p_object
,
psz_string
,
false
);
aout_EnableFilter
(
p_object
,
psz_string
,
false
);
if
(
(
BOOL
)
config_GetInt
(
p_object
,
"macosx-eq-keep"
)
==
YES
)
if
(
(
BOOL
)
config_GetInt
(
p_object
,
"macosx-eq-keep"
)
==
YES
)
{
{
/* save changed to config */
/* save changed to config */
config_PutPsz
(
p_object
,
"audio-filter"
,
psz_string
);
config_PutPsz
(
p_object
,
"audio-filter"
,
psz_string
);
}
}
free
(
psz_string
);
free
(
psz_string
);
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
@@ -196,7 +196,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -196,7 +196,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
}
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
/* Set the preamp slider */
/* Set the preamp slider */
[
o_slider_preamp
setFloatValue
:
f_preamp
];
[
o_slider_preamp
setFloatValue
:
f_preamp
];
...
@@ -208,7 +208,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -208,7 +208,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
/* Read dB -20/20 */
/* Read dB -20/20 */
f_band
[
i
]
=
strtof
(
psz_bands
,
&
p_next
);
f_band
[
i
]
=
strtof
(
psz_bands
,
&
p_next
);
if
(
!
p_next
||
p_next
==
psz_bands
)
break
;
/* strtof() failed */
if
(
!
p_next
||
p_next
==
psz_bands
)
break
;
/* strtof() failed */
if
(
!*
psz_bands
)
break
;
/* end of line */
if
(
!*
psz_bands
)
break
;
/* end of line */
psz_bands
=
p_next
+
1
;
psz_bands
=
p_next
+
1
;
}
}
...
@@ -218,7 +218,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -218,7 +218,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
/* Set the the checkboxes */
/* Set the the checkboxes */
[
o_ckb_enable
setState
:
b_enabled
];
[
o_ckb_enable
setState
:
b_enabled
];
[
o_ckb_2pass
setState
:
b_2p
];
[
o_ckb_2pass
setState
:
b_2p
];
}
}
-
(
IBAction
)
bandSliderUpdated
:(
id
)
sender
-
(
IBAction
)
bandSliderUpdated
:(
id
)
sender
...
@@ -345,7 +345,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -345,7 +345,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
aout_instance_t
*
p_aout
=
getAout
();
aout_instance_t
*
p_aout
=
getAout
();
vlc_object_t
*
p_object
=
VLC_OBJECT
(
p_aout
);
vlc_object_t
*
p_object
=
VLC_OBJECT
(
p_aout
);
if
(
p_object
==
NULL
)
if
(
p_object
==
NULL
)
p_object
=
vl_object_hold
(
pl_Get
(
p_intf
));
p_object
=
vl
c
_object_hold
(
pl_Get
(
p_intf
));
var_SetBool
(
p_object
,
"equalizer-2pass"
,
b_2p
);
var_SetBool
(
p_object
,
"equalizer-2pass"
,
b_2p
);
...
@@ -389,9 +389,9 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -389,9 +389,9 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
{
{
if
(
strcmp
(
preset_list
[
i
],
psz_preset
)
)
if
(
strcmp
(
preset_list
[
i
],
psz_preset
)
)
continue
;
continue
;
[
o_popup_presets
selectItemAtIndex
:
i
];
[
o_popup_presets
selectItemAtIndex
:
i
];
[
o_slider_preamp
setFloatValue
:
eqz_preset_10b
[
i
]
->
f_preamp
];
[
o_slider_preamp
setFloatValue
:
eqz_preset_10b
[
i
]
->
f_preamp
];
[
self
setBandSlidersValues
:
(
float
*
)
eqz_preset_10b
[
i
]
->
f_amp
];
[
self
setBandSlidersValues
:
(
float
*
)
eqz_preset_10b
[
i
]
->
f_amp
];
...
@@ -399,7 +399,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -399,7 +399,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
if
(
strcmp
(
psz_preset
,
"flat"
)
)
if
(
strcmp
(
psz_preset
,
"flat"
)
)
{
{
char
psz_bands
[
100
];
char
psz_bands
[
100
];
snprintf
(
psz_bands
,
sizeof
(
psz_bands
),
snprintf
(
psz_bands
,
sizeof
(
psz_bands
),
"%.1f %.1f %.1f %.1f %.1f %.1f %.1f "
"%.1f %.1f %.1f %.1f %.1f %.1f %.1f "
"%.1f %.1f %.1f"
,
"%.1f %.1f %.1f"
,
...
@@ -413,7 +413,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -413,7 +413,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
eqz_preset_10b
[
i
]
->
f_amp
[
7
],
eqz_preset_10b
[
i
]
->
f_amp
[
7
],
eqz_preset_10b
[
i
]
->
f_amp
[
8
],
eqz_preset_10b
[
i
]
->
f_amp
[
8
],
eqz_preset_10b
[
i
]
->
f_amp
[
9
]
);
eqz_preset_10b
[
i
]
->
f_amp
[
9
]
);
var_Create
(
p_object
,
"equalizer-preamp"
,
VLC_VAR_FLOAT
|
var_Create
(
p_object
,
"equalizer-preamp"
,
VLC_VAR_FLOAT
|
VLC_VAR_DOINHERIT
);
VLC_VAR_DOINHERIT
);
var_Create
(
p_object
,
"equalizer-bands"
,
VLC_VAR_STRING
|
var_Create
(
p_object
,
"equalizer-bands"
,
VLC_VAR_STRING
|
...
@@ -427,7 +427,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
...
@@ -427,7 +427,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
[
self
equalizerUpdated
];
[
self
equalizerUpdated
];
}
}
...
...
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