0
0

IN THE NAME OF GOD
hi
I am have a byte[] data from mp3 file Sound and want to play this data
i test CreateStream(Byte[],…) but Did not respond.
How is it like to work with this function?
thanks

  • You must to post comments
0
0

IN THE NAME OF GOD
Hi

[quote="peter":1n03tpuk][quote:1n03tpuk]"Attempted to read or write Protected Memory.This often an indication that other memory is corrupt" [/quote:1n03tpuk]
Since you are using OPENMEMORY_POINT, this would indicate that you have given FMOD the wrong bounds for the data.[/quote:1n03tpuk]
I even tested With OpenMemory
What should I do to resolve this problem

[quote="peter":1n03tpuk]
[quote:1n03tpuk]I use For My Sound Program Effect: Echo ,Volume and … With DSPEcho.setparameter .And Show Visualization Sound With Methos getWaveData.Effects and Visualization was Worked beforehand with createstream(pathfile,Mode.Software,…. !
why now with openmemory don’t work [/quote:1n03tpuk]
Are you using Mode.Software flag for the openmemory sound?[/quote:1n03tpuk]
No
The need to set the Flag Mode.Software

Thanks

  • You must to post comments
0
0

what error are you getting? Are you passing in the OPENMEMORY or OPENMEMORY_POINT flags?

  • You must to post comments
0
0

[quote:41rby6dm]What should I do to resolve this problem [/quote:41rby6dm]
Double check all the size of your buffer is correct and also make sure this memory isn’t getting freed prematurely. Take a look at our loadfrommemory C# example.

-Pete

  • You must to post comments
0
0

IN THE NAME OF GOD
HI
YES I PASS BOTH OF OPENMEMORY or OPENMEMORY_POINT flags
but i get "error Format"
While my file format is mp3
thanks for reply

  • You must to post comments
0
0

IN THE NAME OF GOD
Hi
[quote:39od44q2]
Double check all the size of your buffer is correct and also make sure this memory isn’t getting freed prematurely. Take a look at our loadfrommemory C# example.
[/quote:39od44q2]
I like loadfrommemory C# worked .
size of buffer is similar loadfrommemory C#
please Help me
I must resolve this problem for The day after tomorrow
thanks a lot

  • You must to post comments
0
0

IN THE NAME OF GOD
HI
I solved my issue But some problems were added to the problem
1 – This method is very slow and if I open the file and decode that and write that another path and I new address of new file send to the function of this method is much faster! Why?
2 -My file size in project between 1 MB to 12 MB . in this way with large files getting error "not enough memory or resource" 😮
Please help me

  • You must to post comments
0
0

The quickest way to track down this sort of bug is to modify the loadfrommemory example until it can reproduce the error your seeing in your application.

  • You must to post comments
0
0

[quote:1agk653a]1 – This method is very slow and if I open the file and decode that and write that another path and I new address of new file send to the function of this method is much faster! Why? [/quote:1agk653a]
I’m sorry I do not completely understand your question.

[quote:1agk653a]2 – My file size in project between 1 MB to 12 MB . in this way with large files getting error "not enough memory or resource"[/quote:1agk653a]
Decoded MP3 data can be quite large. Make sure you free that memory when you’re finished with it if you’re decoding many files.

  • You must to post comments
0
0

IN THE NAME OF GOD
Hi
I was wrong that I was define buffer in Function scope.
If you ask me in a voice player to read another file What should I do؟?
This way, get an error
thanks a lot

  • You must to post comments
0
0

[quote="hassankahrizy":2jsq6wtm]IN THE NAME OF GOD
HI
I solved my issue But some problems were added to the problem
1 – This method is very slow and if I open the file and decode that and write that another path and I new address of new file send to the function of this method is much faster! Why?
[/quote:2jsq6wtm]
I worked with this Method (with openmemory)was very slow.
2 seconds for a sound(with 2MB) takes time.
I need this function because I had encrypted file .I want open that and decrypted and played.
My Last way I open File decrypted that and save in new location and pass new address to method createstream .this way for file 12 MB About 0.7sec takes time.
I want with openmemory don’t save newfile in in hard and play
decrypted array byte[] in memory but this way very slowly.
why?

[quote="hassankahrizy":2jsq6wtm]
2 -My file size in project between 1 MB to 12 MB . in this way with large files getting error "not enough memory or resource" 😮
Please help me[/quote:2jsq6wtm]
This problem was solved. The reason because every time I open my new sound do Init Fmod .

Thanks for replys

  • You must to post comments
0
0

openmemory will make a copy of the your data, openmemorypoint will tell FMOD to use your data and not make a copy. I don’t think it would take 2 seconds to copy 12 MB, but that might be slowing it down.

Another thing that might be slowing it down is decompressing the data into PCM. Try using FMOD_CREATECOMPRESSEDSAMPLE or FMOD_CREATESTREAM flags.

-Pete

  • You must to post comments
0
0

IN THE NAME OF GOD
Hi
Very Thanks your answer and follow-up
With flags openmemorypoint And CREATECOMPRESSEDSAMPLE this is ideal time and performance

Thanks alot

  • You must to post comments
0
0

Glad to hear you’ve got it working.

  • You must to post comments
0
0

IN THE NAME OF GOD
Hi
Excuse me
Two new issue was created:

1- I used seek-bar for seek in Sound with method setposition in last way no problem exist but in new several setposition created 2 error below:
a-"Attempted to read or write Protected Memory.This often an indication that other memory is corrupt"
b- error Visual studio Just-In-Time Debugger(an Un handled win32 exception occurred in Playsound.vshost.exe)

2-I use For My Sound Program Effect: Echo ,Volume and … With DSPEcho.setparameter .And Show Visualization Sound With Methos getWaveData.Effects and Visualization was Worked beforehand with createstream(pathfile,Mode.Software,…. !
why now with openmemory don’t work
how can active them?
thanks a lot

  • You must to post comments
0
0

[quote:375afepy]"Attempted to read or write Protected Memory.This often an indication that other memory is corrupt" [/quote:375afepy]
Since you are using OPENMEMORY_POINT, this would indicate that you have given FMOD the wrong bounds for the data.

[quote:375afepy]I use For My Sound Program Effect: Echo ,Volume and … With DSPEcho.setparameter .And Show Visualization Sound With Methos getWaveData.Effects and Visualization was Worked beforehand with createstream(pathfile,Mode.Software,…. !
why now with openmemory don’t work [/quote:375afepy]
Are you using Mode.Software flag for the openmemory sound?

  • You must to post comments
Showing 15 results
Your Answer

Please first to submit.