out_ds.h 672 B

1234567891011121314151617181920212223242526272829
  1. #define STRICT
  2. #include <windows.h>
  3. #include "../Winamp/out.h"
  4. #include "ds2.h"
  5. #include "../pfc/pfc.h"
  6. #define NAME "DirectSound output "DS2_ENGINE_VER
  7. extern cfg_int cfg_def_fade;
  8. class FadeCfg
  9. {
  10. public:
  11. const wchar_t * name;
  12. cfg_int time;
  13. cfg_int on,usedef;
  14. inline UINT get_time() {return on ? (usedef ? cfg_def_fade : time) : 0;}
  15. inline operator int() {return get_time();}
  16. FadeCfg(const wchar_t* name,const wchar_t* vname,int vtime,bool von,bool vusedef);
  17. };
  18. #ifdef HAVE_SSRC
  19. typedef struct
  20. {
  21. UINT src_freq,src_bps,dst_freq,dst_bps;
  22. } RESAMPLING_STATUS;
  23. #endif
  24. extern FadeCfg cfg_fade_start,cfg_fade_firststart,cfg_fade_stop,cfg_fade_pause,cfg_fade_seek;