mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
channelmix: fix up API a little
don't use gpointer * for something that should be gpointer.
This commit is contained in:
parent
26d469a04b
commit
e1569ce76a
2 changed files with 8 additions and 8 deletions
|
@ -739,7 +739,7 @@ gst_channel_mix_is_passthrough (GstChannelMix * mix)
|
||||||
* you might need later on! */
|
* you might need later on! */
|
||||||
static void
|
static void
|
||||||
gst_channel_mix_mix_int (GstChannelMix * mix,
|
gst_channel_mix_mix_int (GstChannelMix * mix,
|
||||||
gint32 * in_data, gint32 * out_data, gint samples)
|
const gint32 * in_data, gint32 * out_data, gint samples)
|
||||||
{
|
{
|
||||||
gint in, out, n;
|
gint in, out, n;
|
||||||
gint64 res;
|
gint64 res;
|
||||||
|
@ -780,7 +780,7 @@ gst_channel_mix_mix_int (GstChannelMix * mix,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_channel_mix_mix_double (GstChannelMix * mix,
|
gst_channel_mix_mix_double (GstChannelMix * mix,
|
||||||
gdouble * in_data, gdouble * out_data, gint samples)
|
const gdouble * in_data, gdouble * out_data, gint samples)
|
||||||
{
|
{
|
||||||
gint in, out, n;
|
gint in, out, n;
|
||||||
gdouble res;
|
gdouble res;
|
||||||
|
@ -829,7 +829,7 @@ gst_channel_mix_mix_double (GstChannelMix * mix,
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gst_channel_mix_mix (GstChannelMix * mix, GstAudioFormat format,
|
gst_channel_mix_mix (GstChannelMix * mix, GstAudioFormat format,
|
||||||
GstAudioLayout layout, gpointer * in_data, gpointer * out_data,
|
GstAudioLayout layout, const gpointer in_data, gpointer out_data,
|
||||||
gint samples)
|
gint samples)
|
||||||
{
|
{
|
||||||
g_return_if_fail (mix != NULL);
|
g_return_if_fail (mix != NULL);
|
||||||
|
@ -838,11 +838,11 @@ gst_channel_mix_mix (GstChannelMix * mix, GstAudioFormat format,
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case GST_AUDIO_FORMAT_S32:
|
case GST_AUDIO_FORMAT_S32:
|
||||||
gst_channel_mix_mix_int (mix, (gint32 *) in_data, (gint32 *) out_data,
|
gst_channel_mix_mix_int (mix, (const gint32 *) in_data,
|
||||||
samples);
|
(gint32 *) out_data, samples);
|
||||||
break;
|
break;
|
||||||
case GST_AUDIO_FORMAT_F64:
|
case GST_AUDIO_FORMAT_F64:
|
||||||
gst_channel_mix_mix_double (mix, (gdouble *) in_data,
|
gst_channel_mix_mix_double (mix, (const gdouble *) in_data,
|
||||||
(gdouble *) out_data, samples);
|
(gdouble *) out_data, samples);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -59,8 +59,8 @@ gboolean gst_channel_mix_is_passthrough (GstChannelMix *mix);
|
||||||
void gst_channel_mix_mix (GstChannelMix * mix,
|
void gst_channel_mix_mix (GstChannelMix * mix,
|
||||||
GstAudioFormat format,
|
GstAudioFormat format,
|
||||||
GstAudioLayout layout,
|
GstAudioLayout layout,
|
||||||
gpointer * in_data,
|
const gpointer in_data,
|
||||||
gpointer * out_data,
|
gpointer out_data,
|
||||||
gint samples);
|
gint samples);
|
||||||
|
|
||||||
#endif /* __GST_CHANNEL_MIX_H__ */
|
#endif /* __GST_CHANNEL_MIX_H__ */
|
||||||
|
|
Loading…
Reference in a new issue