04-25-2017 11:34 AM
Hi everyone
I'm doing an application with music and I have a problem : when the application try to charge the music an error occur and say "Not enough memory to complete this operation"
I try two method to do it first with the "Play Waveform" and secondly with the "System Exec.vi" but this two method don't work and i have the same error.
I know that is because my music is too long or big but i can't override this.
That here that I block.
Do you have any solution for avoid this problem ?
I let my VI with the VI1 for the first method and VI2 for the second.
Thanks you for your help =D.
Solved! Go to Solution.
04-25-2017 11:59 AM - edited 04-25-2017 12:03 PM
Sorry, wrong comment as your vi came up behind another that I was reviewing. Should have a delete option under edit reply.
04-25-2017 02:09 PM - edited 04-25-2017 02:12 PM
Hi Quentin,
as both methods fail with the same error I guess your WAV file is just too big for your computer.
Solution: use a smaller WAV file instead…
I know that is because my music is too long or big but i can't override this.
So you already know why your VI fail!? But you try to load this WAV file anyway???
You might try to split the WAV file into smaller parts and load/play them one after the other!
(Hint: The function SoundFileReadSimple allows you to specify the number of samples to read and the position offset…)
04-25-2017 04:11 PM
@GerdW wrote:
Hi Quentin,
as both methods fail with the same error I guess your WAV file is just too big for your computer.
Solution: use a smaller WAV file instead…
I know that is because my music is too long or big but i can't override this.
So you already know why your VI fail!? But you try to load this WAV file anyway???
You might try to split the WAV file into smaller parts and load/play them one after the other!
(Hint: The function SoundFileReadSimple allows you to specify the number of samples to read and the position offset…)
That is what you get for using expressvis if you want to play a file play a file
04-26-2017 10:26 AM
Hi GerdW
You might try to split the WAV file into smaller parts and load/play them one after the other!
That here my problem, I don't want to split my wav file, so I search for another solution !
But if it's the only one solution, I will do it =/.
04-26-2017 11:00 AM
04-26-2017 11:09 AM
@GerdW wrote:
Hi Quentin,
I don't want to split my wav file, so I search for another solution !
Maybe "split" is the wrong word here: load your file in chunks as I tried to hint with the function and its parameters recommended above!
Oddly enough. Isn't that exactly what Play File does?