Playing sound using reference on data array.

P

pkoziejko

Hi!
I have implemented psychoacustic Johnson model for wav files, and now I
need to play data after modification.

Now I have only playing *.wav using
[DllImport("winmm.dll",
SetLastError=true,CallingConvention=CallingConvention.Winapi)]
and
PlaySound( "wav_file.wav", IntPtr.Zero,0x00020000 | 0x0001)
function.

I'm wondering if it is possible to do something like that:

public short [] Data16Mono;

void Play( Data16Mono, Data16Mono.Lenght, Flags); // ??

I could save metadata and sound data to wav file and play them using
previous function, but I want to do that like I have in c++.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top