IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

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).

 
Reply to this topicStart new topic
Plugin for format conversion, how to develop it?
steel_monkey
post 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" wink.gif .

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.
Go to the top of the page
+Quote Post
foosion
post Dec 10 2012, 17:36
Post #2





Group: FB2K Moderator (Donating)
Posts: 4409
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
Go to the top of the page
+Quote Post
steel_monkey
post 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
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 25th July 2014 - 01:04