Commit 5c6451ee authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

Applied zlib license, in the process of renaming asm-source

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@142 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent 0fc13ca5
# Makefile for pimpmobile module player
# Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
# For conditions of distribution and use, see copyright notice in LICENSE.TXT
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
......
/* lut_gen.cpp -- Look-up table generator for Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
/*
this is the lut-generator for pimpmobile.
This is the lut-generator for pimpmobile.
the delta-luts are dependant on the sample-rate, and must be re-generated
whenever the sample-rate-config has changed.
......@@ -60,23 +65,23 @@ int main(int argc, char *argv[])
{
#if 0
/* generate */
for (unsigned o = 0; o < 1; ++o)
{
for (unsigned n = 0; n < 2; ++n)
/* generate amiga period table */
for (unsigned o = 0; o < 1; ++o)
{
for (int fine_tune = -8; fine_tune < 8; ++fine_tune)
for (unsigned n = 0; n < 2; ++n)
{
printf("%d, ", __pimp_get_amiga_period(n + o * 12, fine_tune) / 4);
for (int fine_tune = -8; fine_tune < 8; ++fine_tune)
{
printf("%d, ", __pimp_get_amiga_period(n + o * 12, fine_tune) / 4);
}
}
printf("\n");
}
printf("\n");
return 0;
}
return 0;
#endif
/* TODO: use some flags and stuff to decide what to dump and to what filename */
if (1)
{
// generate a lut for linear frequencies
for (unsigned i = 0; i < 12 * 64; ++i)
......@@ -93,7 +98,6 @@ int main(int argc, char *argv[])
fclose(fp);
}
if (1)
{
// generate a lut for amiga frequencies
for (unsigned i = 0; i < (AMIGA_DELTA_LUT_SIZE / 2) + 1; ++i)
......
/* pimp_base.h -- Some base defines used in Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_BASE_H
#define PIMP_BASE_H
......
/* pimp_config.h -- Compile-time configuration of Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_CONFIG_H
#define PIMP_CONFIG_H
......
/* pimp_debug.c -- Debugging helpers
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include <stdio.h>
#include "pimp_internal.h"
#include "pimp_debug.h"
......
/* pimp_debug.h -- Debugging helpers
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_DEBUG_H
#define PIMP_DEBUG_H
......
/* pimp_envelope.h -- Envelope routines
* Copyright (C) 2005-2006 Jørn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include "pimp_envelope.h"
#include "pimp_debug.h"
......
/* pimp_envelope.h -- Envelope data structure and routines
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_ENVELOPE_H
#define PIMP_ENVELOPE_H
......
/* pimp_gba.c -- GameBoy Advance c-interface for Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include <gba_base.h>
#define PIMP_TYPES_H /* prevent pimp_types.h from being included */
......
/* pimp_instrument.h -- Instrument data structure and getter functions
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_INSTRUMENT_H
#define PIMP_INSTRUMENT_H
......
#ifndef PIMP_INTERNAL_H
#define PIMP_INTERNAL_H
/* pimp_internal.h -- Internal enums and routines for Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include "pimp_base.h"
#include "pimp_config.h"
......
/* pimp_math.c -- Math routines for use in Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include "pimp_types.h"
#include "pimp_math.h"
#include "pimp_debug.h"
......
/* pimp_math.h -- Math routines for use in Pimpmobile
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_MATH_H
#define PIMP_MATH_H
......
/* pimp_mixer.c -- High level mixer code
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include "pimp_mixer.h"
#include "pimp_debug.h"
......
/* pimp_mixer.h -- The state and interface for the various mixers
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_MIXER_H
#define PIMP_MIXER_H
......
/* pimp_mixer_arm.S -- ARM assembly optimized mixer code
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
.text
.section .iwram
.arm
......
/* pimp_mixer_clip_arm.S -- ARM assembly optimized sample clipping code
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
@ samples to align = 3 - (DST & 3)
.clipper_align_jumptable: @ used to align the pointer
......
/* pimp_mixer_portable.c -- A portable audio mixer
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include <stdlib.h>
#include <assert.h>
#include "pimp_mixer.h"
......
/* pimp_mod_context.c -- The rendering-context for a module
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#include "pimp_mod_context.h"
void __pimp_mod_context_init(pimp_mod_context *ctx, const pimp_module *mod, const u8 *sample_bank, pimp_mixer *mixer)
......
/* pimp_mod_context.h -- The rendering-context for a module
* Copyright (C) 2005-2006 Jrn Nystad and Erik Faye-Lund
* For conditions of distribution and use, see copyright notice in LICENSE.TXT
*/
#ifndef PIMP_MOD_CONTEXT_H
#define PIMP_MOD_CONTEXT_H
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment