Music Gapless Playback (2 Viewers)

C

CypherMK

Guest

hwahrmann

Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    • Thread starter
    • Moderator
    • #63
    Unfortunately i have noticed another strange issue with this version: Channelpapping seems to be wrong. Steps to reproduce: 1. Start MP/MyMusic 2. Start playback of a multichannel HiRes .flac file (in this case FL, C, FR, RL, RR (RL & RR are empty). -> 3. Channels FL, C, FR, RL and LFE are mapped by MP.

    i had a look at the logs that you've sent me and there are some things, which i don't understand.
    Let me explain what happens.

    1. I do a check, which modes are directly supported by the device:
    Code:
    [2013-09-16 16:07:32,796] [Log    ] [MPMain  ] [DEBUG] - BASS: This device supports following formats in WASAPI Exclusive mode:
    [2013-09-16 16:07:32,797] [Log    ] [MPMain  ] [DEBUG] - BASS: Rate  Ch Maximum Supported
    [2013-09-16 16:07:32,818] [Log    ] [MPMain  ] [DEBUG] - BASS:  32000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,823] [Log    ] [MPMain  ] [DEBUG] - BASS:  32000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,827] [Log    ] [MPMain  ] [DEBUG] - BASS:  32000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,831] [Log    ] [MPMain  ] [DEBUG] - BASS:  32000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,837] [Log    ] [MPMain  ] [DEBUG] - BASS:  44100  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,841] [Log    ] [MPMain  ] [DEBUG] - BASS:  44100  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,846] [Log    ] [MPMain  ] [DEBUG] - BASS:  44100  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,850] [Log    ] [MPMain  ] [DEBUG] - BASS:  44100  8 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,856] [Log    ] [MPMain  ] [DEBUG] - BASS:  48000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,861] [Log    ] [MPMain  ] [DEBUG] - BASS:  48000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,865] [Log    ] [MPMain  ] [DEBUG] - BASS:  48000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,869] [Log    ] [MPMain  ] [DEBUG] - BASS:  48000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,876] [Log    ] [MPMain  ] [DEBUG] - BASS:  88200  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,880] [Log    ] [MPMain  ] [DEBUG] - BASS:  88200  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,885] [Log    ] [MPMain  ] [DEBUG] - BASS:  88200  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,889] [Log    ] [MPMain  ] [DEBUG] - BASS:  88200  8 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,895] [Log    ] [MPMain  ] [DEBUG] - BASS:  96000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,900] [Log    ] [MPMain  ] [DEBUG] - BASS:  96000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,904] [Log    ] [MPMain  ] [DEBUG] - BASS:  96000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,909] [Log    ] [MPMain  ] [DEBUG] - BASS:  96000  8 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,916] [Log    ] [MPMain  ] [DEBUG] - BASS: 192000  2 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,920] [Log    ] [MPMain  ] [DEBUG] - BASS: 192000  4 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,925] [Log    ] [MPMain  ] [DEBUG] - BASS: 192000  6 BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:32,930] [Log    ] [MPMain  ] [DEBUG] - BASS: 192000  8 BASS_WASAPI_FORMAT_24BIT

    You see there are only even channels listed.

    the file that you are playing has 5 channels.
    Code:
    [2013-09-16 16:07:32,943] [Log    ] [MPMain  ] [INFO ] - BASS: ---------------------------------------------
    [2013-09-16 16:07:32,944] [Log    ] [MPMain  ] [INFO ] - BASS: Creating BASS audio stream
    [2013-09-16 16:07:32,991] [Log    ] [MPMain  ] [INFO ] - BASS: Stream Information
    [2013-09-16 16:07:32,993] [Log    ] [MPMain  ] [INFO ] - BASS: ---------------------------------------------
    [2013-09-16 16:07:32,995] [Log    ] [MPMain  ] [INFO ] - BASS: File: F:\Test\The Romeros (2004) - Rodrigo · Concierto de Aranjuez - Concierto Andaluz  Vivaldi · Guitar Concertos (88,2 KHz-24bit - 5.0 Channel)\02 - Rodrigo · Concierto de Aranjuez for Guitar  and Orchestra - 2. Adagio.flac
    [2013-09-16 16:07:32,996] [Log    ] [MPMain  ] [DEBUG] - BASS: Type of Stream: BASS_CTYPE_STREAM_FLAC
    [2013-09-16 16:07:32,998] [Log    ] [MPMain  ] [INFO ] - BASS: Number of Channels: 5
    [2013-09-16 16:07:32,999] [Log    ] [MPMain  ] [INFO ] - BASS: Stream Samplerate: 88200
    [2013-09-16 16:07:33,001] [Log    ] [MPMain  ] [DEBUG] - BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    [2013-09-16 16:07:33,003] [Log    ] [MPMain  ] [INFO ] - BASS: ---------------------------------------------
    [2013-09-16 16:07:33,004] [Log    ] [MPMain  ] [DEBUG] - BASS: Registering stream playback events
    [2013-09-16 16:07:33,009] [Log    ] [MPMain  ] [INFO ] - BASS: Successfully created BASS audio stream
    [2013-09-16 16:07:33,011] [Log    ] [MPMain  ] [INFO ] - BASS: ---------------------------------------------
    [2013-09-16 16:07:33,016] [Log    ] [MPMain  ] [DEBUG] - BASS: ---------------------------------------------
    [2013-09-16 16:07:33,018] [Log    ] [MPMain  ] [DEBUG] - BASS: Creating BASS mixer stream
    [2013-09-16 16:07:33,019] [Log    ] [MPMain  ] [DEBUG] - BASS: Found more output channels (6) than input channels (5). Check for upmixing.
    [2013-09-16 16:07:33,021] [Log    ] [MPMain  ] [DEBUG] - BASS: Creating 5 channel mixer with sample rate of 88200
    [2013-09-16 16:07:33,023] [Log    ] [MPMain  ] [INFO ] - BASS: Initialising WASAPI device
    [2013-09-16 16:07:33,027] [Log    ] [MPMain  ] [WARN ] - BASS: WASAPI exclusive mode not directly supported. Let BASS WASAPI choose better mode.
    [2013-09-16 16:07:33,039] [Log    ] [MPMain  ] [DEBUG] - BASS: ---------------------------------------------
    [2013-09-16 16:07:33,041] [Log    ] [MPMain  ] [DEBUG] - BASS: Buffer Length: 73728
    [2013-09-16 16:07:33,043] [Log    ] [MPMain  ] [DEBUG] - BASS: Channels: 4
    [2013-09-16 16:07:33,044] [Log    ] [MPMain  ] [DEBUG] - BASS: Frequency: 88200
    [2013-09-16 16:07:33,045] [Log    ] [MPMain  ] [DEBUG] - BASS: Format: BASS_WASAPI_FORMAT_24BIT
    [2013-09-16 16:07:33,047] [Log    ] [MPMain  ] [DEBUG] - BASS: InitFlags: BASS_WASAPI_EXCLUSIVE, BASS_WASAPI_AUTOFORMAT
    [2013-09-16 16:07:33,048] [Log    ] [MPMain  ] [DEBUG] - BASS: Exclusive: True
    [2013-09-16 16:07:33,050] [Log    ] [MPMain  ] [DEBUG] - BASS: ---------------------------------------------
    [2013-09-16 16:07:33,051] [Log    ] [MPMain  ] [INFO ] - BASS: WASAPI Device successfully initialised
    [2013-09-16 16:07:33,053] [Log    ] [MPMain  ] [DEBUG] - BASS: Creating new 4 channel mixer for frequency 88200
    [2013-09-16 16:07:33,056] [Log    ] [MPMain  ] [DEBUG] - BASS: Successfully created BASS Mixer stream

    i do a check against the BASS WASAPI engine if a 88khz file with 5 channels is upported in WASAPI exclusive mode. And this check returns that it doesn't work.

    And for some reason it falls back to 4 channels. i don't understand this at the moment.
    Unfortunatley i have only Stereo on my Dev notebook, where i could do some debugging.

    I'll see if i can do the checks in a different way.
    I was introducing them, because during the tests for 1.4, when i implemented WASAPI, i've got some reports, that files couldn't be played.

    I'll check with the BASS developers
     

    sikkek

    Portal Member
    November 10, 2009
    27
    3
    The Hague
    Home Country
    Netherlands Netherlands
    Finally got the chance to test again: gapless is working perfectly! Thanks hwahrmann!

    On the issue of music not skipping: I found out that using F5 and F6 will skip as it should, however using a remote control (ff and rev) or arrow keys will not skip music. Any ideas on this issue?
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    63
    NRW
    Home Country
    Germany Germany
    Hi!
    Playback unfortunately doesn't work. Logs are attached! It seems, that multichannel files with samplingrate >48,0 KHz doesn't work. 2ch/96,0KHz is working fine, 5.1ch/48,0 KHz too!
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    • Thread starter
    • Moderator
    • #70
    But what worries me is that on the list of supported combinations it shows me 88khz and 6 channels.
    And this is what i exactly try to do.
    The call to WASAPI INit gives me an Unknown error. So no idea, what can be wrong.
    I will write a test program.

    Could you upload your test file and PM me the link?
     

    Users who are viewing this thread

    Top Bottom