MP2 - V2.1 [MP2-563] WASAPI not working for sample rates > 48 kHz (1 Viewer)

Status
Not open for further replies.

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    Then Wasapi is working as expected on your system.
    Maybe the shared mode is working as expected, but I also expect it to work in exclusive mode and this is not the case. Exclusive mode only is working for LowRes files or files with 2 channels maximum.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    My bad.

    So what happens is that when in exclusive mode and playing files with sample rates >48 kHz, Wasapi is falling back to shared mode.

    @Helios61 , this is still better than what you are experiencing. So first target is to fix the immediate issue of player throwing errors at you.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    .,..that when in exclusive mode and playing multichannel files with sample rates >48 kHz, Wasapi is falling back to shared mode...

    Sample rates >48 kHz with Stereo (2 channels) are working also. Only when you try to play 4.1 or 5.1 (or similar) files with sample rates of exact 44.1 Khz or above 48 kHz in exclusive mode it falls back to shared mode.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #24
    I have a guess, we are using BASS: Format: BASS_WASAPI_FORMAT_FLOAT internally, but the WASAPI modes are listed as BASS_WASAPI_FORMAT_24BIT or BASS_WASAPI_FORMAT_16BIT. This could make a difference.

    I don't know exactly about the background why we use FLOAT, but it could have to do with getting FFT data for spectrum analyzer. But I might be wrong.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    I don't know exactly about the background why we use FLOAT, but it could have to do with getting FFT data for spectrum analyzer. But I might be wrong.
    How big is the effort to change FLOAT against individually set FORMAT_xxBIT (and provide a test build :barefoot:)?

    Personally I am not particularly keen on having a spectrum analyzer visualizing my music. But tastes are different. Note that ajs has kicked off a discussion

    https://forum.team-mediaportal.com/...now-playing-window.135659/page-2#post-1207036

    to move away from BASS for being able to have a spectrum analyzer:D. Could it be that MP1 is not using FLOAT?
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    63
    NRW
    Home Country
    Germany Germany
    Hi,
    i am able to reproduce this issue every time i listen to multichannel files with samplingrate > 48,0 kHz. Playback with WASAPI exclusive mode for samplingrate of 88200 and 6 channels failed (although sound device is capable to handle these files propper). Files with higher Samplingrates are resampled to samplinrate configured in output settings of the sound device, because MP2 falls back to WASAPI shared mode ->

    snip_20170104143343.png

    The related log entry ->

    Code:
    [2017-01-04 13:49:35,194] [28560  ] [Thread119] [INFO ] - BassLibrary: Loading player add-ins from 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\BassLibraries\Plugins'
    [2017-01-04 13:49:35,214] [28580  ] [Thread119] [INFO ] - BassLibrary: Loaded 16 audio decoders.
    [2017-01-04 13:49:35,233] [28598  ] [Thread119] [INFO ] - BassLibrary: Stream info: FLAC, 88200Hz, 5.1, 24bit
    [2017-01-04 13:49:35,237] [28603  ] [Thread119] [INFO ] - BassLibrary: Stream content: PCM
    [2017-01-04 13:49:35,237] [28603  ] [Thread119] [INFO ] - BassLibrary: Preparing for playback: 'BassAudioFileInputSource: D:\ToDo\_Audio_Testfiles\HiRes Flac\09 - Africa (24bit-88,2KHz - 5.1 Channel).flac'
    [2017-01-04 13:49:35,335] [28700  ] [BassPlay ] [INFO ] - BassLibrary: Initializing WASAPI device 'LG TV (Intel(R) Display-Audio)' (device no 4)
    [2017-01-04 13:49:35,349] [28715  ] [BassPlay ] [WARN ] - BassLibrary: BASS: Failed to initialize WASAPI exclusive mode for samplerate of 88200 and 6 channels. Trying fallback to shared mode.
    [2017-01-04 13:49:35,487] [28852  ] [BassPlay ] [INFO ] - BassLibrary: BASS: WASAPI Device successfully initialised

    Logs are attached. Upload of testfiles is in progress.
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    63
    NRW
    Home Country
    Germany Germany
    So at least you don't have those previously reported crashes and get the same results as Lehmden.(y)
    Have made a fresh install of MP2 and INTEL Display/HD Audio driver and only configured the musicpart.
    So, i think we can change Prefix to Bug, because it is confirmed?
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    @Helios61: Can you please play such a 6ch file with a high sample rate in MP1 and post the log?
    i need to compare the results.
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom