Plugin for format conversion, how to develop it? |
This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).
![]() ![]() |
Plugin for format conversion, how to develop it? |
Dec 10 2012, 15:35
Post
#1
|
|
|
Group: Members Posts: 2 Joined: 10-December 12 Member No.: 105095 |
Hello.
I want to ask help about plug in development. As I see, it is not tons of work to do, but as I am quite new to PC programming, it represents big and, most problem, time consuming action. I am developing external DAC unit using not conventional sound integrated circuits, but industrial ones. Don`t ask why, answer will be "because" Industrial DACs have little different input format by comparison with sound ICs, i.e. most significant bit is inverted. As I am going to use PC as a source of digital data, it is easier to convert format there, as it is more flexible. So, the question is, how to invert MSB in audio stream? I see a foobar plugin will be quite elegant solution. In MCU I would have XORed data with required mask, but I am total noob in PC programming, unfortunately. Another question is, I will change sample rate using foobar plugin to, so MSB inversion should be done after digital filtering. After that, data is sent to USB using asio4all. |
|
|
|
Dec 10 2012, 17:36
Post
#2
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4219 Joined: 24-February 03 Member No.: 5153 |
The best place in foobar2000 would be in the output module since everything before that uses floating point values to represent the audio data. Unfortunately the output API is not part of the public SDK so it cannot be extended by third-party plugins.
Generally the best place to do this conversion would be in the driver for your hardware. -------------------- http://foosion.foobar2000.org/ - my components for foobar2000
|
|
|
|
Dec 10 2012, 17:59
Post
#3
|
|
|
Group: Members Posts: 2 Joined: 10-December 12 Member No.: 105095 |
Thank you very much.
Driver modification is, unfortunately, totally unavailable. Isn`t it possible to send audiostream to some intermediate program, recalculate it and send farther to ASIO for example? This post has been edited by steel_monkey: Dec 10 2012, 18:15 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 14:01 |