Dave
2005-02-23 18:48:32 UTC
Hi!
I posted a while ago about interest in Audiere and also with a question about spectrograms. I am happy to say that since I posted I decided to go ahead with implementing the API regardless and have not been disapointed once with its performance! Awesome job guys! It slipped right in seamlessly to my project and hasn't caused any fuss at all.
I went and did some research on what I would need to do to create a spectrum analiser for a graphical display. I now understand the concept and implementation and am all but ready to write it :)
I need to get at the sample buffer and read in 64 samples to perform a FFT calculation which I can then use to generate my sound spectrum array. I'm cool with all of that apart from actually getting the sample data x_X
Its probably because im bitfik (lol) but I have never got on with automatically generated documentation because I often find it hard how everything fits together in the actual code. All I generally know is x function exists in the class somewhere and theres a way to use it with blah stream etc XD
I've found read() on a couple of things, its perfect. Have not once managed to successfully implement it XD Heres my question:
What would be OPTIMAL is if someone could tell me how I can read in samples for the final sound being mixed in the sound card so I can generate a spectrum for all currently playing sounds. If thats possiable. If its not, then I guess my question is how can I read() the sample data when I have opened a stream like:
stream = OpenSound(AudDevice.get(), "f:\\nya.mp3", true);
Its all I need.. I can do the rest of the calculations myself and implement the FTT. If anyone can help so I can get right on with it you would make me a very happy man :) Also, if anyone is interested, if I ever get a graphic spectrum displaying properly I would be more than happy to share the source! ^_^
Looking forward to your response
-Dave
I posted a while ago about interest in Audiere and also with a question about spectrograms. I am happy to say that since I posted I decided to go ahead with implementing the API regardless and have not been disapointed once with its performance! Awesome job guys! It slipped right in seamlessly to my project and hasn't caused any fuss at all.
I went and did some research on what I would need to do to create a spectrum analiser for a graphical display. I now understand the concept and implementation and am all but ready to write it :)
I need to get at the sample buffer and read in 64 samples to perform a FFT calculation which I can then use to generate my sound spectrum array. I'm cool with all of that apart from actually getting the sample data x_X
Its probably because im bitfik (lol) but I have never got on with automatically generated documentation because I often find it hard how everything fits together in the actual code. All I generally know is x function exists in the class somewhere and theres a way to use it with blah stream etc XD
I've found read() on a couple of things, its perfect. Have not once managed to successfully implement it XD Heres my question:
What would be OPTIMAL is if someone could tell me how I can read in samples for the final sound being mixed in the sound card so I can generate a spectrum for all currently playing sounds. If thats possiable. If its not, then I guess my question is how can I read() the sample data when I have opened a stream like:
stream = OpenSound(AudDevice.get(), "f:\\nya.mp3", true);
Its all I need.. I can do the rest of the calculations myself and implement the FTT. If anyone can help so I can get right on with it you would make me a very happy man :) Also, if anyone is interested, if I ever get a graphic spectrum displaying properly I would be more than happy to share the source! ^_^
Looking forward to your response
-Dave