mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
/* synaescope.h
|
|
* Copyright (C) 1999,2002 Richard Boulton <richard@tartarus.org>
|
|
*
|
|
* Much code copied from Synaesthesia - a program to display sound
|
|
* graphically, by Paul Francis Harrison <pfh@yoyo.cc.monash.edu.au>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef _SYNAESCOPE_H
|
|
#define _SYNAESCOPE_H
|
|
|
|
#include <glib.h>
|
|
|
|
/* FIXME: we should set this automatically based on resy
|
|
* see synaescope.c::synaesthesia_resize()
|
|
*/
|
|
#define FFT_BUFFER_SIZE_LOG 10
|
|
#define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG)
|
|
|
|
typedef struct syn_instance syn_instance;
|
|
|
|
void synaesthesia_init (void);
|
|
syn_instance *synaesthesia_new (guint resx, guint resy);
|
|
void synaesthesia_close (syn_instance * si);
|
|
|
|
gboolean synaesthesia_resize (syn_instance * si, guint resx, guint resy);
|
|
guint32 *synaesthesia_update (syn_instance * si,
|
|
gint16 data[2][FFT_BUFFER_SIZE]);
|
|
|
|
#endif
|