e5c3d8f02e
And add the on_load() audio operation. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
37 lines
713 B
C++
37 lines
713 B
C++
/**
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#include <core/audio.h>
|
|
#include <core/core.h>
|
|
extern "C" {
|
|
#include <core/collection.h>
|
|
#include <core/filter.h>
|
|
#include <core/history.h>
|
|
#include <core/playlist.h>
|
|
#include <core/tags/tags.h>
|
|
#include <core/tempq.h>
|
|
}
|
|
|
|
|
|
void core :: init(int *argc, char ***argv, struct core_init_data *init)
|
|
{
|
|
filter_init();
|
|
tags_init();
|
|
playlist_init(init->playlist_ops);
|
|
collection_init(init->collection_ops);
|
|
history_init(init->history_ops);
|
|
tempq_init(init->tempq_ops);
|
|
audio_init(argc, argv, init->audio_ops);
|
|
}
|
|
|
|
void core :: deinit()
|
|
{
|
|
audio_deinit();
|
|
tempq_deinit();
|
|
history_deinit();
|
|
collection_deinit();
|
|
playlist_deinit();
|
|
tags_deinit();
|
|
filter_deinit();
|
|
}
|