|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
Packit |
971217 |
* Library <2001> Thomas Vander Stichele <thomas@apestaart.org>
|
|
Packit |
971217 |
* <2011> Wim Taymans <wim.taymans@gmail.com>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_AUDIO_AUDIO_H__
|
|
Packit |
971217 |
#define __GST_AUDIO_AUDIO_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-prelude.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-enumtypes.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-format.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-channels.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-channel-mixer.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-info.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-quantize.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-converter.h>
|
|
Packit |
971217 |
#include <gst/audio/audio-resampler.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiostreamalign.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudioaggregator.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* conversion macros */
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GST_FRAMES_TO_CLOCK_TIME:
|
|
Packit |
971217 |
* @frames: sample frames
|
|
Packit |
971217 |
* @rate: sampling rate
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Calculate clocktime from sample @frames and @rate.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
#define GST_FRAMES_TO_CLOCK_TIME(frames, rate) \
|
|
Packit |
971217 |
((GstClockTime) gst_util_uint64_scale_round (frames, GST_SECOND, rate))
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GST_CLOCK_TIME_TO_FRAMES:
|
|
Packit |
971217 |
* @clocktime: clock time
|
|
Packit |
971217 |
* @rate: sampling rate
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Calculate frames from @clocktime and sample @rate.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
#define GST_CLOCK_TIME_TO_FRAMES(clocktime, rate) \
|
|
Packit |
971217 |
gst_util_uint64_scale_round (clocktime, rate, GST_SECOND)
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* metadata macros */
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GST_META_TAG_AUDIO_STR:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This metadata is relevant for audio streams.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Since: 1.2
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
#define GST_META_TAG_AUDIO_STR "audio"
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GST_META_TAG_AUDIO_CHANNELS_STR:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This metadata stays relevant as long as channels are unchanged.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Since: 1.2
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
#define GST_META_TAG_AUDIO_CHANNELS_STR "channels"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GST_META_TAG_AUDIO_RATE_STR:
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This metadata stays relevant as long as sample rate is unchanged.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Since: 1.8
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
#define GST_META_TAG_AUDIO_RATE_STR "rate"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/*
|
|
Packit |
971217 |
* this library defines and implements some helper functions for audio
|
|
Packit |
971217 |
* handling
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_AUDIO_API
|
|
Packit |
971217 |
GstBuffer * gst_audio_buffer_clip (GstBuffer *buffer,
|
|
Packit |
971217 |
const GstSegment *segment,
|
|
Packit |
971217 |
gint rate, gint bpf);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/audio/gstaudioringbuffer.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudioclock.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiofilter.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiocdsrc.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiodecoder.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudioencoder.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiobasesink.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiobasesrc.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiometa.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiosink.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudiosrc.h>
|
|
Packit |
971217 |
#include <gst/audio/streamvolume.h>
|
|
Packit |
971217 |
#include <gst/audio/gstaudioiec61937.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_AUDIO_AUDIO_H__ */
|