1
0
mirror of https://github.com/ScrelliCopter/VGM-Tools synced 2025-02-21 04:09:25 +11:00

dsptool: basic dspdecode implementation

This commit is contained in:
2023-03-19 21:32:18 +11:00
parent 99bf061438
commit 7c9c2464cb
10 changed files with 574 additions and 25 deletions

View File

@@ -3,7 +3,7 @@ project(DspTool LANGUAGES C)
option(BUILD_SHARED_LIBS "Build as a Shared Object or DLL" OFF)
set(HEADERS common.h dsptool.h)
set(HEADERS ../common.h dsptool.h)
set(SOURCES math.c decode.c encode.c)
add_library(DspTool ${HEADERS} ${SOURCES})

View File

@@ -1,7 +0,0 @@
#ifndef COMMON_H
#define COMMON_H
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif//COMMON_H

View File

@@ -1,7 +1,7 @@
/* (c) 2017 Alex Barney (MIT) */
#include <stdint.h>
#include "common.h"
#include "../common.h"
#include "dsptool.h"
static inline uint8_t GetHighNibble(uint8_t value)

View File

@@ -6,7 +6,7 @@
#include <math.h>
#include <float.h>
#include <string.h>
#include "common.h"
#include "../common.h"
#include "dsptool.h"
/* Temporal Vector