0
0

Is fmod able to read directly a table of integers with the soundcard ?

[code:36b4dsro]
int tab[128];
Read(tab) ;[/code:36b4dsro][/code]

  • You must to post comments
0
0

uh ??? ๐Ÿ˜•

  • You must to post comments
0
0

I mean I’ve got a table with int (int Tab[128];) which is a buffer with datas, and i want to play these datas on the sound card…
Is fmod able to do that ?

  • You must to post comments
0
0

Well, it works ! ๐Ÿ˜€

Of course 128 values is quite a small number, but Datas are arriving into memory after having been calculated by 128 blocks and it’s a 1Khz sound, so I have to oversample it to 11,025Khz in order to use fmod, but it seems to work. So i’ll try to extend it to 1024…

Thanks…

hum, well, my buffer (512 int now) is updated every 0,5 seconds now, and I want to play the new buffer just after having finished the other. But FSOUND_Stream_Open() acces time involve a small “bip” between two buffer reading.

Is there a mean to update the FSOUND_Stream and replay it without using FSOUND_CLOSE() + FOUND_OPEN() ?

Well, is there a special Price for [b:22o0vwen]very small companies[/b:22o0vwen] using fmod ?

  • You must to post comments
0
0

well, I’ve got a problem using :

[code:2hc9wesu] stream = FSOUND_Stream_Create(streamcallback, 6*2048, FSOUND_NORMAL | FSOUND_16BITS | FSOUND_STEREO, 44100, 12345);

and :

signed char F_CALLBACKAPI CAudio::streamcallback(FSOUND_STREAM *stream, void *buff, int len, int param)

[/code:2hc9wesu]

In C++, it can’t convert the first parameter from signed char to signed char (__stdcall*)…

  • You must to post comments
0
0

This is a C++ problem when attempting to pass a method as a callback when a static method is required.

The issue is that the ‘this’ ptr which identifies the CAudio instance
is required to resolve the C++ stream callback method. You can replace
this with a static method : C like function and pass it in.

Or there are articles on codeproject and other sites regarding callback
adapters/wrappers which allow you to implement a solution so you can use C++ methods where callbacks are required.

regards,
Ger

  • You must to post comments
0
0

ok, i’ll try to use au static function :)

  • You must to post comments
0
0

Well, I’m quite annoyed.

It works with a static function, but I can’t pass it my Tab which is a-non static int* (member variable).

I tried to pass a static Table, but i doesn’t work : Compliation + linking Ok, but “Memory can’t be Written”…

  • You must to post comments
Showing 7 results
Your Answer

Please first to submit.