0
0

Hi to all,
which is the format of the raw PCM audio samples?
Regards,
Franco

  • You must to post comments
0
0

Header-less raw data. That means it only contains an audio stream without headers.

[url:3vxongj7]http://en.wikipedia.org/wiki/Pulse-code_modulation[/url:3vxongj7]

You can playback it by setting up the engine to the desired samplerate,bits, channels, etc….

  • You must to post comments
0
0

[quote="damil":wr317w4o]Header-less raw data. That means it only contains an audio stream without headers.

[url:wr317w4o]http://en.wikipedia.org/wiki/Pulse-code_modulation[/url:wr317w4o]

You can playback it by setting up the engine to the desired samplerate,bits, channels, etc….[/quote:wr317w4o]

I know this.
What I need to know if the format of the FMOD samples (uint_8, uint_16, float, double, ….)

  • You must to post comments
0
0

That depends on the point in the chain that you’re talking about.

If you’re hooking into a DSP effect, then the format is float -1 to +1.
If you’re writing a codec, then the format is defined in the FMOD_CODEC_WAVEFORMAT member of the FMOD_CODEC_STATE structure.
If you’re calling getWaveData, it’s float -1 to +1.
If you’re feeding raw data to FMOD (ie FMOD_OPENRAW or FMOD_OPENUSER), then you can define the format with the FMOD_CREATESOUNDEXINFO structure.

All of this is in the documentation for the respective pieces. Hope that helps.

  • You must to post comments
0
0

[quote="Adiss":gapkytj1]That depends on the point in the chain that you’re talking about.

If you’re hooking into a DSP effect, then the format is float -1 to +1.
If you’re writing a codec, then the format is defined in the FMOD_CODEC_WAVEFORMAT member of the FMOD_CODEC_STATE structure.
If you’re calling getWaveData, it’s float -1 to +1.
If you’re feeding raw data to FMOD (ie FMOD_OPENRAW or FMOD_OPENUSER), then you can define the format with the FMOD_CREATESOUNDEXINFO structure.

All of this is in the documentation for the respective pieces. Hope that helps.[/quote:gapkytj1]

Adiss look into the callback ( myDSPCallback ) in the dsp_custom example.
The format of the sample I need is at the point of the myDSPCallback point.
Hoping you can help me

Franco

  • You must to post comments
0
0

The format at that point is float -1 to +1. This is in the documentation under FMOD_DSP_READCALLBACK.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.