AC3Filter support
September 06, 2010, 09:43:55 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download NEW AC3Filter 1.63b
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Programmaticly Configure output  (Read 5616 times)
babgvant
Newbie
*
Posts: 5


View Profile
« on: July 16, 2008, 09:12:41 PM »

I've been trying to figure out how to configure AC3Filter using the interfaces without much success.  Is there any documentation on how to configure the output types and gain levels?

Thanks.
Logged
thetriggerman
Newbie
*
Posts: 3


View Profile
« Reply #1 on: January 29, 2009, 10:00:36 AM »

i have the same problem. have you already figured-out on how to solve this problem.

all i want is to make the volume set to max.

spassibo!
Logged
babgvant
Newbie
*
Posts: 5


View Profile
« Reply #2 on: January 29, 2009, 10:20:23 AM »

I never did figure this out.
Logged
chasdev
Newbie
*
Posts: 2


View Profile
« Reply #3 on: March 12, 2009, 02:37:28 PM »

I don't think it is possible given that COMDecoder is protected.

Code:
class AC3Filter : public CTransformFilter, public IAC3Filter, public ISpecifyPropertyPages
{
protected:
  bool          tray;     // show tray icon
  AC3FilterTray tray_ctl; // tray icon control

  CPUMeter   cpu;       // CPU usage meter
  COMDecoder dec;       // decoder & processor


As you can see, COMDecoder is protected and is the COM class that inherits the IDecoder interface.

Code:
class COMDecoder : public Filter, public IDecoder, public IAudioProcessor


IDecoder is the interface that has these two functions:

Code:
// Use SPDIF if possible
  STDMETHODIMP get_use_spdif(bool *use_spdif);
  STDMETHODIMP set_use_spdif(bool  use_spdif);
{


... which I was hoping to set programmatically as well.   Attempting to use such an interface despite the protected access results in:

Code:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call.

This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.


The other interfaces that are public to IAC3Filter are programmatically useable.  

Anybody know why COMDecoder is protected?  Just curious what good reasons there might be.

Peace and best regards,
Charles
Logged
chasdev
Newbie
*
Posts: 2


View Profile
« Reply #4 on: March 13, 2009, 08:50:09 AM »

thetriggerman,

I guess it is worth mentioning that since AC3Filter uses the registry for many of its saved states, you can probably set the volume to max by setting a registry value just prior to instantiating the AC3Filter.

Have a look at: HKEY_CURRENT_USER\Software\AC3Filter\preset\Default

This was the solution I used for setting use_spdif for my application.  BUT, if anybody knows a way to adjust the runtime filter object, please feel free to post here  :wink:

Cheers,
Charles

p.s. Thank you very much Alexander for a most worthy project.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!