forked from len0rd/rockbox
Mikmod plugin improvements
- Improved sound quality (use 44.1KHz) - Conventional mixer is now used - Playback is performed in a separate thread - Speech feedback in menus Patch by Igor Poretsky Change-Id: I13baa224cefd67aefe6d62b988971bfbd421757d
This commit is contained in:
parent
e6b03ffa82
commit
2ebb8da275
4 changed files with 246 additions and 33 deletions
|
@ -64,15 +64,7 @@ int mmsupp_sprintf(char *buf, const char *fmt, ... );
|
|||
extern const struct plugin_api * rb;
|
||||
|
||||
|
||||
#ifdef SIMULATOR
|
||||
#define SAMPLE_RATE SAMPR_44 /* Simulator requires 44100Hz */
|
||||
#else
|
||||
#if (HW_SAMPR_CAPS & SAMPR_CAP_22) /* use 22050Hz if we can */
|
||||
#define SAMPLE_RATE SAMPR_22 /* 22050 */
|
||||
#else
|
||||
#define SAMPLE_RATE SAMPR_44 /* 44100 */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define BUF_SIZE 4096*8
|
||||
#define NBUF 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue