赞 | 1 |
VIP | 357 |
好人卡 | 24 |
积分 | 1 |
经验 | 14896 |
最后登录 | 2022-12-23 |
在线时间 | 1641 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 66
- 在线时间
- 1641 小时
- 注册时间
- 2011-9-26
- 帖子
- 313
|
Sion 发表于 2014-4-11 19:20
反馈个小bug,这个wav文件加载不了。 已解决
这东西还是蛮好用的。
"Cannot allocate additional memory" 问题最好确认一下音频文件有没有问题- Searching 20 files for "SEAL_CANNOT_ALLOC_MEM"
- H:\Projects\seal-master\src\seal\err.c:
- 42 case SEAL_CANNOT_OPEN_FILE:
- 43 return "Cannot open the specified file";
- 44: case SEAL_CANNOT_ALLOC_MEM:
- 45 return "Cannot allocate additional memory";
- 46
- ..
- 107 return SEAL_BAD_OP;
- 108 case AL_OUT_OF_MEMORY:
- 109: return SEAL_CANNOT_ALLOC_MEM;
- 110 default:
- 111 return SEAL_OK;
- H:\Projects\seal-master\src\seal\ov.c:
- 117 povf = malloc(sizeof (OggVorbis_File));
- 118 if (povf == 0)
- 119: return SEAL_CANNOT_ALLOC_MEM;
- 120
- 121 if ((err = setup(&attr, povf, filename)) != SEAL_OK) {
- H:\Projects\seal-master\src\seal\raw.c:
- 13 buf = realloc(raw->data, size);
- 14 if (buf == 0)
- 15: return SEAL_CANNOT_ALLOC_MEM;
- 16 raw->data = buf;
- 17 raw->size = size;
- ..
- 26 raw->data = malloc(size);
- 27 if (raw->data == 0)
- 28: return SEAL_CANNOT_ALLOC_MEM;
- 29
- 30 return SEAL_OK;
- H:\Projects\seal-master\src\seal\src.c:
- 191 bufs = malloc(sizeof (unsigned int) * nbufs_processed);
- 192 if (bufs == 0)
- 193: return SEAL_CANNOT_ALLOC_MEM;
- 194
- 195 if ((err = unqueue_bufs(src, nbufs_processed, bufs)) == SEAL_OK)
- H:\Projects\seal-master\src\seal\wav.c:
- 209 wav_stream = malloc(sizeof (wav_stream_t));
- 210 if (wav_stream == 0)
- 211: return SEAL_CANNOT_ALLOC_MEM;
- 212
- 213 wav_stream->file = _seal_fopen(filename);
- ...
- 258 data = malloc(nbytes);
- 259 if (data == 0)
- 260: return SEAL_CANNOT_ALLOC_MEM;
- 261
- 262 wav_stream->offset += nbytes;
- 8 matches across 5 files
复制代码 根据 seal 源码,这个属于文件加载错误- buffers = []
- 1024.times { buffers << Seal::Buffer.new("voice_005.wav") }
- s = Seal::Source.new
- s.buffer = buffers[-1]
- s.play
复制代码 这段代码我这里测试没问题 |
|