comparison src/dmengine.c @ 2437:f7d54ac51880

Fix and improvements to dmres MemIO subsystem.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Feb 2020 07:26:40 +0200
parents 69a5af2eb1ea
children 9807ae37ad69
comparison
equal deleted inserted replaced
2436:b7f622d39efc 2437:f7d54ac51880
207 static int engineResVorbisLoad(DMResource *res) 207 static int engineResVorbisLoad(DMResource *res)
208 { 208 {
209 OggVorbis_File vf; 209 OggVorbis_File vf;
210 210
211 dmMsg(2, "vorbisfile '%s', %" DM_PRIu_SIZE_T " bytes resource loading\n", 211 dmMsg(2, "vorbisfile '%s', %" DM_PRIu_SIZE_T " bytes resource loading\n",
212 res->filename, res->rawSize); 212 res->filename, res->memSize);
213 213
214 if (ov_open_callbacks(res, &vf, NULL, 0, vorbisFileCBS) < 0) 214 if (ov_open_callbacks(res, &vf, NULL, 0, vorbisFileCBS) < 0)
215 return DMERR_FOPEN; 215 return DMERR_FOPEN;
216 216
217 res->resSize = ov_pcm_total(&vf, -1) * 2 * 2; 217 res->resSize = ov_pcm_total(&vf, -1) * 2 * 2;