gui/audio: Convert gst.cpp to audio.c

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-12-24 13:05:20 -05:00
parent c48e128d0a
commit 50a7c83d61
5 changed files with 12 additions and 13 deletions

View File

@ -1,18 +1,11 @@
/*
* Copyright 2014 (c) Anna Schumaker.
*
* The gst_init() function parses command line options passed to Ocarina
* through argv. Use the command `gst-inspect-1.0 --help-gst` to find
* what options are supported.
*/
extern "C" {
#include <core/audio.h>
#include <core/playlist.h>
#include <core/string.h>
#include <gui/builder.h>
}
#include <gui/audio.h>
#include <gui/ocarina.h>
#include <gui/builder.h>
static GtkScale *o_seek;
@ -84,7 +77,7 @@ struct audio_ops audio_ops = {
};
static bool on_seek(Gtk::ScrollType type, double value)
static bool on_seek(GtkScrollType type, double value)
{
audio_seek(value);
return true;

View File

@ -4,10 +4,10 @@
extern "C" {
#include <core/core.h>
#include <core/idle.h>
#include <gui/settings.h>
#include <gui/builder.h>
}
#include <gui/audio.h>
#include <gui/builder.h>
#include <gui/settings.h>
}
#include <gui/ocarina.h>
#include <gui/tabs.h>

View File

@ -1,5 +1,9 @@
/*
* Copyright 2013 (c) Anna Schumaker.
*
* The gst_init() function parses command line options passed to Ocarina
* through argv. Use the command `gst-inspect-1.0 --help-gst` to find
* what options are supported.
*/
#ifndef OCARINA_CORE_AUDIO_H
#define OCARINA_CORE_AUDIO_H

View File

@ -4,6 +4,9 @@
#ifndef OCARINA_GUI_AUDIO_H
#define OCARINA_GUI_AUDIO_H
/* Audio callback functions. */
extern struct audio_ops audio_ops;
/* Called to initialize the GUI audio controls. */
void gui_audio_init();

View File

@ -18,7 +18,6 @@ extern struct queue_ops collection_ops;
extern struct queue_ops history_ops;
extern struct queue_ops playlist_ops;
extern struct queue_ops tempq_ops;
extern struct audio_ops audio_ops;
void on_pq_created(queue *, unsigned int);
void post_init_queue_tabs();