浏览代码

Fix value stored to 'num_channels' is never read

pull/504/head
maficccc@gmail.com 7 年前
committed by Martinfx
父节点
当前提交
e659336c11
共有 1 个文件被更改,包括 2 次插入16 次删除
  1. +2
    -16
      src/external/jar_xm.h

+ 2
- 16
src/external/jar_xm.h 查看文件

@ -855,8 +855,6 @@ size_t jar_xm_get_memory_needed_for_context(const char* moddata, size_t moddata_
uint16_t num_instruments; uint16_t num_instruments;
/* Read the module header */ /* Read the module header */
num_channels = READ_U16(offset + 8);
num_channels = READ_U16(offset + 8); num_channels = READ_U16(offset + 8);
num_patterns = READ_U16(offset + 10); num_patterns = READ_U16(offset + 10);
@ -2561,28 +2559,22 @@ uint64_t jar_xm_get_remaining_samples(jar_xm_context_t* ctx)
uint64_t total = 0; uint64_t total = 0;
uint8_t currentLoopCount = jar_xm_get_loop_count(ctx); uint8_t currentLoopCount = jar_xm_get_loop_count(ctx);
jar_xm_set_max_loop_count(ctx, 0); jar_xm_set_max_loop_count(ctx, 0);
while(jar_xm_get_loop_count(ctx) == currentLoopCount) while(jar_xm_get_loop_count(ctx) == currentLoopCount)
{ {
total += ctx->remaining_samples_in_tick; total += ctx->remaining_samples_in_tick;
ctx->remaining_samples_in_tick = 0; ctx->remaining_samples_in_tick = 0;
jar_xm_tick(ctx); jar_xm_tick(ctx);
} }
ctx->loop_count = currentLoopCount; ctx->loop_count = currentLoopCount;
return total; return total;
} }
//-------------------------------------------- //--------------------------------------------
//FILE LOADER - TODO - NEEDS TO BE CLEANED UP //FILE LOADER - TODO - NEEDS TO BE CLEANED UP
//-------------------------------------------- //--------------------------------------------
#undef DEBUG #undef DEBUG
#define DEBUG(...) do { \ #define DEBUG(...) do { \
fprintf(stderr, __VA_ARGS__); \ fprintf(stderr, __VA_ARGS__); \
@ -2668,13 +2660,7 @@ int jar_xm_create_context_from_file(jar_xm_context_t** ctx, uint32_t rate, const
return 0; return 0;
} }
#endif//end of JAR_XM_IMPLEMENTATION #endif//end of JAR_XM_IMPLEMENTATION
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
#endif//end of INCLUDE_JAR_XM_H #endif//end of INCLUDE_JAR_XM_H

||||||
x
 
000:0
正在加载...
取消
保存