# Huge wave files fail to open

**URL:** https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212
**Category:** FMOD Engine
**Created:** [November 25, 2018, 9:51pm UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212 "2018-11-25T21:51:22Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 25, 2018, 9:51pm UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/1 "2018-11-25T21:51:22Z")

</div>

Hi there,

Im finding that very large wave files are failing to open, with these error messages.

/Users/fmod/jenkins/workspace/Build\_\_1.10\_\_API\_Mac/lowlevel\_api/src/fmod\_systemi\_sound.cpp(925) : [LOG] FMOD\_RESULT = 13 – Error loading file.  
/Users/fmod/jenkins/workspace/Build\_\_1.10\_\_API\_Mac/lowlevel\_api/src/fmod\_system.cpp(932) : [LOG] FMOD\_RESULT = 13 – Error loading file.

They are definitely valid files because they play elsewhere.

Any help is appreciated.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [November 25, 2018, 10:43pm UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/2 "2018-11-25T22:43:12Z")

</div>

Hello.  
Some more information would be appreciated, ie what version of FMOD you are using, the size and format of the file, if you are trying to load it into memory or as a stream, etc.

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 25, 2018, 10:46pm UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/3 "2018-11-25T22:46:26Z")

</div>

version 11008. PCM Wave files - 1GB and up. High channel counts, 48K, 24bit. Location sound recording files from professional recorders.

Of course streaming only!  
The files load fine using AVFoundation.

Thanks

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 25, 2018, 10:47pm UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/4 "2018-11-25T22:47:55Z")

</div>

Ive rigged a workaround by having my app fallback to AVFoundation streaming if FMOD fails, but I’d like to stay with FMOD of course.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [November 26, 2018, 12:28am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/5 "2018-11-26T00:28:48Z")

</div>

I dont think the size of the file is the issue. FMOD has been tested on this in the past.

I just made a new .wav PCM with the following format

big.wav : WAV len 131,530,697 PCM 32bit floating point, 6ch, freq 96000 : 22m 50s.  
The file is **7.2gb**.

FMOD immediately opened it and played it with no delay.  
If you want you can upload a file to your fmod profile and I can try it .

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 26, 2018, 12:50am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/6 "2018-11-26T00:50:05Z")

</div>

this is strange indeed. I removed all the guff from the file. Just left the FMT chunk and the data. Still doesnt work.  
How do I upload?

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 26, 2018, 1:09am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/7 "2018-11-26T01:09:52Z")

</div>

Here a audiofile exactly like the failing ones but with zeros only, so its zips to nothing. It also fails.

[https://we.tl/t-8TUvrKJBOL](https://we.tl/t-8TUvrKJBOL)

thanks

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [November 26, 2018, 2:08am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/8 "2018-11-26T02:08:02Z")

</div>

just as an update it is actually a Mac OS specific issue, looks like the operating system file call is returning a 32bit signed number, on windows it has better accuracy (the platform I first tested on). We’ll have to patch it for the next release.

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 26, 2018, 2:08am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/9 "2018-11-26T02:08:57Z")

</div>

Great thanks. Does that have an expected date?

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [November 26, 2018, 2:27am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/10 "2018-11-26T02:27:59Z")

</div>

We’re about to release a new version at the moment, but this change will have to go into the next one, so this would likely be a month from now. We can always do custom builds for you if it is urgent.

---

<div class="post-metadata">

### Author: ![MarcSpecter](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@MarcSpecter](https://qa.fmod.com/u/MarcSpecter)
#### Post date: [November 26, 2018, 9:07am UTC](https://qa.fmod.com/t/huge-wave-files-fail-to-open/14212/11 "2018-11-26T09:07:03Z")

</div>

I can survive with my workaround, thanks very much. Love the FMOD API and community support so far. Outstanding.
