ArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2009-08-01T13:49:06+02:00 https://brainmodular.org/forums/app.php/feed/topic/1662 2009-08-01T13:49:06+02:00 2009-08-01T13:49:06+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9861#p9861 <![CDATA[How to play a sound in a c++ module]]> Statistics: Posted by pansoul — 01 Aug 2009, 13:49


]]>
2009-07-31T23:29:08+02:00 2009-07-31T23:29:08+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9857#p9857 <![CDATA[How to play a sound in a c++ module]]> Statistics: Posted by bsork — 31 Jul 2009, 23:29


]]>
2009-07-31T17:00:38+02:00 2009-07-31T17:00:38+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9855#p9855 <![CDATA[How to play a sound in a c++ module]]> i load a wav 16 bits stereo file as a binary file and obtain list of char. i try to decode value i obtain ( from -128 to 127) using this format http://sub0.developpez.com/FormatWAV/FormatWAV.htm it works a little ( i mean not with all file)
so i don't know where is the problem (format file ? but all my files are 16 bits stereo) i transform the amplitude of sample into [-1; 1] interval to feed the buffer output using double precision variable. i suppose that it's the good way.
i will try others technics waiting for new sdk.
thanks

Statistics: Posted by pansoul — 31 Jul 2009, 17:00


]]>
2009-07-16T11:24:49+02:00 2009-07-16T11:24:49+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9734#p9734 <![CDATA[How to play a sound in a c++ module]]> and also, the next version of the SDK will include a complete library to manage audio files and much more.
we are working on!

Statistics: Posted by senso — 16 Jul 2009, 11:24


]]>
2009-07-16T09:42:42+02:00 2009-07-16T09:42:42+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9732#p9732 <![CDATA[How to play a sound in a c++ module]]>
Happy to see you are around the SDK ;)

Need some precisions about you'r question.

Do you want to play an external sound file (external from usine and loaded by code) ?

in this case, you effectively need to do it by yourself, as usine didn't expose this kind of functionality for now.

you can look at the stream C++ class, at binary section
or make it the C way with the FILE object and related functions.

Hope it help

PS : the wiki isn't updated for the new SDK version yet :/
but if you produce a nice simple example of loading external sound file, it should go in :)

Statistics: Posted by martignasse — 16 Jul 2009, 09:42


]]>
2009-07-16T02:18:25+02:00 2009-07-16T02:18:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9730#p9730 <![CDATA[How to play a sound in a c++ module]]> First thank you for the new sdk and the example it contains.
i have a question about playing a sample. i suppose that the way to do that is to write in the buffer. my problem i need a function to read a file at the byte level to feed the buffer and it seems that there is no such a function in windows.h. I belive that C++ programmers use library like libsoundfile or OpenAL, but what about the use of library in usine ?

Statistics: Posted by pansoul — 16 Jul 2009, 02:18


]]>
BrainModular BrainModular Users Forum 2009-08-01T13:49:06+02:00 https://brainmodular.org/forums/app.php/feed/topic/1662 2009-08-01T13:49:06+02:00 2009-08-01T13:49:06+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9861#p9861 <![CDATA[How to play a sound in a c++ module]]> Statistics: Posted by pansoul — 01 Aug 2009, 13:49


]]>
2009-07-31T23:29:08+02:00 2009-07-31T23:29:08+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9857#p9857 <![CDATA[How to play a sound in a c++ module]]> Statistics: Posted by bsork — 31 Jul 2009, 23:29


]]>
2009-07-31T17:00:38+02:00 2009-07-31T17:00:38+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9855#p9855 <![CDATA[How to play a sound in a c++ module]]> i load a wav 16 bits stereo file as a binary file and obtain list of char. i try to decode value i obtain ( from -128 to 127) using this format http://sub0.developpez.com/FormatWAV/FormatWAV.htm it works a little ( i mean not with all file)
so i don't know where is the problem (format file ? but all my files are 16 bits stereo) i transform the amplitude of sample into [-1; 1] interval to feed the buffer output using double precision variable. i suppose that it's the good way.
i will try others technics waiting for new sdk.
thanks

Statistics: Posted by pansoul — 31 Jul 2009, 17:00


]]>
2009-07-16T11:24:49+02:00 2009-07-16T11:24:49+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9734#p9734 <![CDATA[How to play a sound in a c++ module]]> and also, the next version of the SDK will include a complete library to manage audio files and much more.
we are working on!

Statistics: Posted by senso — 16 Jul 2009, 11:24


]]>
2009-07-16T09:42:42+02:00 2009-07-16T09:42:42+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9732#p9732 <![CDATA[How to play a sound in a c++ module]]>
Happy to see you are around the SDK ;)

Need some precisions about you'r question.

Do you want to play an external sound file (external from usine and loaded by code) ?

in this case, you effectively need to do it by yourself, as usine didn't expose this kind of functionality for now.

you can look at the stream C++ class, at binary section
or make it the C way with the FILE object and related functions.

Hope it help

PS : the wiki isn't updated for the new SDK version yet :/
but if you produce a nice simple example of loading external sound file, it should go in :)

Statistics: Posted by martignasse — 16 Jul 2009, 09:42


]]>
2009-07-16T02:18:25+02:00 2009-07-16T02:18:25+02:00 https://brainmodular.org/forums/viewtopic.php?t=1662&p=9730#p9730 <![CDATA[How to play a sound in a c++ module]]> First thank you for the new sdk and the example it contains.
i have a question about playing a sample. i suppose that the way to do that is to write in the buffer. my problem i need a function to read a file at the byte level to feed the buffer and it seems that there is no such a function in windows.h. I belive that C++ programmers use library like libsoundfile or OpenAL, but what about the use of library in usine ?

Statistics: Posted by pansoul — 16 Jul 2009, 02:18


]]>