Skip to content

Commit

Permalink
prepare release for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pebri86 committed Nov 27, 2019
1 parent 0e7f302 commit 91e03c7
Show file tree
Hide file tree
Showing 89 changed files with 55,511 additions and 55,511 deletions.
1,596 changes: 798 additions & 798 deletions esplay-gnuboy/sdkconfig

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions esplay-launcher/components/acodecs/component.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#

COMPONENT_ADD_INCLUDEDIRS = include src/xmplite
COMPONENT_SRCDIRS = src src/xmplite src/xmplite/loaders
CFLAGS += -DLIBXMP_CORE_PLAYER
CXXFLAGS += -DVGM_YM2612_NUKED
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#

COMPONENT_ADD_INCLUDEDIRS = include src/xmplite
COMPONENT_SRCDIRS = src src/xmplite src/xmplite/loaders
CFLAGS += -DLIBXMP_CORE_PLAYER
CXXFLAGS += -DVGM_YM2612_NUKED
72 changes: 36 additions & 36 deletions esplay-launcher/components/acodecs/include/acodecs.h
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
#pragma once

#include <stdint.h>
#include <stdbool.h>

/** The audiocodec to be decoded. */
typedef enum AudioCodec {
AudioCodecUnknown,
AudioCodecMP3,
AudioCodecOGG,
AudioCodecMOD,
AudioCodecWAV,
AudioCodecFLAC,
AudioCodecGME,
} AudioCodec;

typedef struct AudioInfo {
unsigned sample_rate;
unsigned channels;
unsigned buf_size;
} AudioInfo;

/** An AudioDecoder provides audio decoding functionality given a filename. */
typedef struct AudioDecoder {
/** Open the given filename, initializing the given handle. */
int (*open)(void **handle, const char *filename);
/** Retreive audio information, given the handle. */
int (*get_info)(void *handle, AudioInfo *info);
/** Using the handle, decode buf_len samples and write them into buf. */
int (*decode)(void *handle, int16_t *buf, int num_c, unsigned buf_len);
/** Close the given handle, eventually freeing memory. */
int (*close)(void *handle);
} AudioDecoder;

/** Choose an AudioDecoder given the codec and return it */
AudioDecoder *acodec_get_decoder(AudioCodec codec);
#pragma once

#include <stdint.h>
#include <stdbool.h>

/** The audiocodec to be decoded. */
typedef enum AudioCodec {
AudioCodecUnknown,
AudioCodecMP3,
AudioCodecOGG,
AudioCodecMOD,
AudioCodecWAV,
AudioCodecFLAC,
AudioCodecGME,
} AudioCodec;

typedef struct AudioInfo {
unsigned sample_rate;
unsigned channels;
unsigned buf_size;
} AudioInfo;

/** An AudioDecoder provides audio decoding functionality given a filename. */
typedef struct AudioDecoder {
/** Open the given filename, initializing the given handle. */
int (*open)(void **handle, const char *filename);
/** Retreive audio information, given the handle. */
int (*get_info)(void *handle, AudioInfo *info);
/** Using the handle, decode buf_len samples and write them into buf. */
int (*decode)(void *handle, int16_t *buf, int num_c, unsigned buf_len);
/** Close the given handle, eventually freeing memory. */
int (*close)(void *handle);
} AudioDecoder;

/** Choose an AudioDecoder given the codec and return it */
AudioDecoder *acodec_get_decoder(AudioCodec codec);
Loading

0 comments on commit 91e03c7

Please sign in to comment.