-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
55,511 additions
and
55,511 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Oops, something went wrong.