home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
ASIO music player
Version 2.8.0 beta
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Symphy" data-source="post: 1060390" data-attributes="member: 55478"><p>Hi @[USER=52725]Wiedmann[/USER] ,</p><p></p><p>What version of bass.net exactly are you using? The constructor overloads in 2.4.10.0 (which comes with MP) do not match the documentation that comes with 2.4.10.3. See intellisense.</p><p></p><p>When using your code with 2.4.10.0, it doesn't use event mode as far as i can see. The following code will enable event mode:</p><p>[CODE]_wasapi = new BassWasapiHandler(Bass.BASS_GetDevice() - 1, true, true, true, 44100, 2, 0f, 0f);[/CODE]</p><p></p><p>Apart from that, your errorhandling won't work.</p><p>Only the BassWasapiHandler constructor throws exceptions, which disappear into nowhere in your catch.</p><p>For all other methods and bass functions you need to look at the boolean return value and check BASS_ErrorGetCode when false.</p><p></p><p>bass.net is giving me these 3 constructor overloads:</p><p>[CODE]public BassWasapiHandler(int device, bool exclusive, int freq, int chans, float buffer, float period);</p><p>public BassWasapiHandler(int device, bool exclusive, bool sessionVol, int freq, int chans, float buffer, float period);</p><p>public BassWasapiHandler(int device, bool exclusive, bool sessionVol, bool eventSystem, int freq, int chans, float buffer, float period);[/CODE]</p></blockquote><p></p>
[QUOTE="Symphy, post: 1060390, member: 55478"] Hi @[USER=52725]Wiedmann[/USER] , What version of bass.net exactly are you using? The constructor overloads in 2.4.10.0 (which comes with MP) do not match the documentation that comes with 2.4.10.3. See intellisense. When using your code with 2.4.10.0, it doesn't use event mode as far as i can see. The following code will enable event mode: [CODE]_wasapi = new BassWasapiHandler(Bass.BASS_GetDevice() - 1, true, true, true, 44100, 2, 0f, 0f);[/CODE] Apart from that, your errorhandling won't work. Only the BassWasapiHandler constructor throws exceptions, which disappear into nowhere in your catch. For all other methods and bass functions you need to look at the boolean return value and check BASS_ErrorGetCode when false. bass.net is giving me these 3 constructor overloads: [CODE]public BassWasapiHandler(int device, bool exclusive, int freq, int chans, float buffer, float period); public BassWasapiHandler(int device, bool exclusive, bool sessionVol, int freq, int chans, float buffer, float period); public BassWasapiHandler(int device, bool exclusive, bool sessionVol, bool eventSystem, int freq, int chans, float buffer, float period);[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
ASIO music player
Version 2.8.0 beta
Contact us
RSS
Top
Bottom