Closed ghost closed 12 years ago
Yes, it works for me when using a different file format - only avi is supported by Linux, and a different audio device.
That's great. Let's talk about the codegen issue tomorrow. --Bert
On Wed, Sep 19, 2012 at 9:07 PM, psycharo notifications@github.com wrote:
Yes, it works for me when using a different file format - only avi is supported by Linux, and a different audio device.
— Reply to this email directly or view it on GitHubhttps://github.com/psycharo/factor-graph/issues/9#issuecomment-8702676.
Hi Timur --
I added a folder audioStreaming to dropbox/code. In this folder you'll find some code that suypports audio streaming, at least on my PC on win7. Please add the code to github as a subfolder in the factorgraph project, where we can develop it further. In principle this works for me:
this test will read a wav file (bbcnews.wav), from a file, frame-wise, run the frame through a plugin, and then to the player.
Next, tetModStream will try to build a mex file (by codegen) for the plugin and run the mex plugin.
For now, only the plugin 'copy' is there; it copies teh input fram to teh output frame, iow, it does nothing. A goal of the project is to substitute the copy pluging with some more interesting factor-graph based plugins.
FOr now, my question is if this code also runs for you. Feel free to refactor or enhance it in any way that you like. This audioStreaming code is meant as a starting point for you.