Music Player Rework (2 Viewers)

Status
Not open for further replies.

hwahrmann

Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    i'm using a USB sound card on my notebook used for developing.
    My htpc is optical spdif to my amplifier.

    I'm currently not at home, but will try my latest build on the htpc setup.
    Probably the problem is only with optical SPDIF. I'm anxious to your HTPC test.

    ok, i finally had time to test this on my HTPC.
    I have set 48khz and was playing a 44.100 mp3 file without any troubles. also tried up to 92khz and it played well.

    But please notice that those settings only apply, if you send it via the mixer.
    In my opinion it makes no sense to use WASAPI in shared mode, you could use the standard BASS (via DShow) for that.
     

    sleepycol

    Portal Pro
    June 2, 2006
    540
    39
    Home Country
    United Kingdom United Kingdom
    don't forget to include the sorting option of album artist and secondary sort on album name.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    found a little feature. With settings as attached (exclusive mode)

    If I press skip to next track and then immediately press stop MP crashes to desktop.
     

    Attachments

    • wasapi.png
      wasapi.png
      57.6 KB

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Also not sure if this is an issue or not but it looks like some streams are not being cleaned up until MP is closed?

    Code:
    2013-02-13 22:12:47.403478 [Info.][MPMain(1)]: TexturePacker: disposing texture:1989
    2013-02-13 22:12:47.438480 [Debug][MPMain(1)]: BASS: Disposing Music Stream C:\Users\Mike\Music\test\44.1kHz mp3.mp3
    2013-02-13 22:12:47.442480 [Debug][MPMain(1)]: BASS: Disposing Music Stream C:\Users\Mike\Music\test\48kHz mp3.mp3
    2013-02-13 22:12:47.445481 [Debug][MPMain(1)]: BASS: Disposing Music Stream C:\Users\Mike\Music\test\10. Psycho Killer.flac
    2013-02-13 22:12:47.555487 [Debug][MPMain(1)]: Main: SaveLastActiveModule - enabled False
    2013-02-13 22:12:47.561487 [Info.][MPMain(1)]: Main: Exiting

    Not sure if there is anything odd in this but the logs do not seem consistent.

    On the first track I get
    2013-02-13 22:11:52.337329 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:11:52.340329 [Info.][MPMain(1)]: BASS: File: C:\Users\Mike\Music\test\22kHz mp3.mp3
    2013-02-13 22:11:52.343329 [Info.][MPMain(1)]: BASS: Type of Channels: BASS_CTYPE_STREAM_MP3
    2013-02-13 22:11:52.345329 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-02-13 22:11:52.348329 [Info.][MPMain(1)]: BASS: Channel Frequency: 22050
    2013-02-13 22:11:52.351329 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:11:52.353329 [Debug][MPMain(1)]: BASS: Registering Playback Events
    2013-02-13 22:11:52.365330 [Info.][MPMain(1)]: BASS: Replay Gain Data: Track Gain=dB, Track Peak=, Album Gain=dB, Album Peak=
    2013-02-13 22:11:52.373331 [Info.][MPMain(1)]: BASS: Found more output channels than input channels. Check for upmixing.
    2013-02-13 22:11:52.377331 [Info.][MPMain(1)]: BASS: No upmixing of Stereo selected
    2013-02-13 22:11:52.379331 [Debug][MPMain(1)]: BASS: Creating 2 channel mixer with sample rate of 22050
    2013-02-13 22:11:52.389331 [Warn.][MPMain(1)]: BASS: Stream can't be played in WASAPI exclusive mode. Switch to WASAPI shared mode.
    2013-02-13 22:11:52.393332 [Debug][MPMain(1)]: BASS: Creating new 2 channel mixer for frequency 44100
    2013-02-13 22:11:52.422333 [Info.][MPMain(1)]: BASS: WASAPI Device successfully initialised
    2013-02-13 22:11:52.424333 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:11:52.426334 [Info.][MPMain(1)]: BASS: Buffer Length: 7168
    2013-02-13 22:11:52.428334 [Info.][MPMain(1)]: BASS: Channels: 2
    2013-02-13 22:11:52.430334 [Info.][MPMain(1)]: BASS: Frequency: 44100
    2013-02-13 22:11:52.432334 [Info.][MPMain(1)]: BASS: Format: BASS_WASAPI_FORMAT_FLOAT
    2013-02-13 22:11:52.434334 [Info.][MPMain(1)]: BASS: InitFlags: 18
    2013-02-13 22:11:52.436334 [Info.][MPMain(1)]: BASS: Exclusive: False
    2013-02-13 22:11:52.438334 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:11:52.446335 [Info.][MPMain(1)]: BASS: playback started

    then on the second I get: (notice no mention of more output channels than input but both are stereo)
    2013-02-13 22:12:07.455193 [Info.][MPMain(1)]: BASS: Channel Information
    2013-02-13 22:12:07.457193 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:07.460193 [Info.][MPMain(1)]: BASS: File: C:\Users\Mike\Music\test\44.1kHz mp3.mp3
    2013-02-13 22:12:07.462194 [Info.][MPMain(1)]: BASS: Type of Channels: BASS_CTYPE_STREAM_MP3
    2013-02-13 22:12:07.465194 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-02-13 22:12:07.467194 [Info.][MPMain(1)]: BASS: Channel Frequency: 44100
    2013-02-13 22:12:07.470194 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:07.473194 [Debug][MPMain(1)]: BASS: Registering Playback Events
    2013-02-13 22:12:07.475194 [Info.][MPMain(1)]: BASS: Replay Gain Data: Track Gain=dB, Track Peak=, Album Gain=dB, Album Peak=
    2013-02-13 22:12:07.478195 [Info.][MPMain(1)]: BASS: playback started

    Then I get the same as the first
    2013-02-13 22:12:22.438050 [Info.][MPMain(1)]: BASS: Channel Information
    2013-02-13 22:12:22.441050 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:22.445051 [Info.][MPMain(1)]: BASS: File: C:\Users\Mike\Music\test\48kHz mp3.mp3
    2013-02-13 22:12:22.449051 [Info.][MPMain(1)]: BASS: Type of Channels: BASS_CTYPE_STREAM_MP3
    2013-02-13 22:12:22.453051 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-02-13 22:12:22.456051 [Info.][MPMain(1)]: BASS: Channel Frequency: 48000
    2013-02-13 22:12:22.460051 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:22.463052 [Debug][MPMain(1)]: BASS: Registering Playback Events
    2013-02-13 22:12:22.467052 [Info.][MPMain(1)]: BASS: Replay Gain Data: Track Gain=dB, Track Peak=, Album Gain=dB, Album Peak=
    2013-02-13 22:12:22.472052 [Debug][MPMain(1)]: BASS: Disposing Mixer Stream
    2013-02-13 22:12:22.479053 [Info.][MPMain(1)]: BASS: Found more output channels than input channels. Check for upmixing.
    2013-02-13 22:12:22.483053 [Info.][MPMain(1)]: BASS: No upmixing of Stereo selected
    2013-02-13 22:12:22.486053 [Debug][MPMain(1)]: BASS: Creating 2 channel mixer with sample rate of 48000
    2013-02-13 22:12:22.513054 [Info.][MPMain(1)]: BASS: WASAPI Device successfully initialised
    2013-02-13 22:12:22.516055 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:22.518055 [Info.][MPMain(1)]: BASS: Buffer Length: 20480
    2013-02-13 22:12:22.520055 [Info.][MPMain(1)]: BASS: Channels: 2
    2013-02-13 22:12:22.522055 [Info.][MPMain(1)]: BASS: Frequency: 48000
    2013-02-13 22:12:22.524055 [Info.][MPMain(1)]: BASS: Format: BASS_WASAPI_FORMAT_24BIT
    2013-02-13 22:12:22.527055 [Info.][MPMain(1)]: BASS: InitFlags: BASS_WASAPI_EXCLUSIVE, BASS_WASAPI_AUTOFORMAT
    2013-02-13 22:12:22.529055 [Info.][MPMain(1)]: BASS: Exclusive: True
    2013-02-13 22:12:22.531055 [Info.][MPMain(1)]: BASS: ---------------------------------------------

    and finally
    2013-02-13 22:12:37.408906 [Info.][MPMain(1)]: BASS: Channel Information
    2013-02-13 22:12:37.413907 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:37.418907 [Info.][MPMain(1)]: BASS: File: C:\Users\Mike\Music\test\10. Psycho Killer.flac
    2013-02-13 22:12:37.421907 [Info.][MPMain(1)]: BASS: Type of Channels: BASS_CTYPE_STREAM_FLAC
    2013-02-13 22:12:37.424907 [Info.][MPMain(1)]: BASS: Number of Channels: 6
    2013-02-13 22:12:37.428908 [Info.][MPMain(1)]: BASS: Channel Frequency: 96000
    2013-02-13 22:12:37.431908 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:37.434908 [Debug][MPMain(1)]: BASS: Registering Playback Events
    2013-02-13 22:12:37.437908 [Info.][MPMain(1)]: BASS: Replay Gain Data: Track Gain=3.09dB, Track Peak=0.532738, Album Gain=-0.25dB, Album Peak=1
    2013-02-13 22:12:37.441908 [Info.][MPMain(1)]: BASS: Setting Replay Gain to -0.25dB
    2013-02-13 22:12:37.446909 [Debug][MPMain(1)]: BASS: Disposing Mixer Stream
    2013-02-13 22:12:37.452909 [Info.][MPMain(1)]: BASS: Found more output channels than input channels. Check for upmixing.
    2013-02-13 22:12:37.456909 [Info.][MPMain(1)]: BASS: No upmixing of 5.1 selected
    2013-02-13 22:12:37.459909 [Debug][MPMain(1)]: BASS: Creating 6 channel mixer with sample rate of 96000
    2013-02-13 22:12:37.467910 [Warn.][MPMain(1)]: BASS: Stream can't be played in WASAPI exclusive mode. Switch to WASAPI shared mode.
    2013-02-13 22:12:37.473910 [Debug][MPMain(1)]: BASS: Creating new 2 channel mixer for frequency 44100
    2013-02-13 22:12:37.525913 [Info.][MPMain(1)]: BASS: WASAPI Device successfully initialised
    2013-02-13 22:12:37.528913 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:37.530913 [Info.][MPMain(1)]: BASS: Buffer Length: 7168
    2013-02-13 22:12:37.532914 [Info.][MPMain(1)]: BASS: Channels: 2
    2013-02-13 22:12:37.534914 [Info.][MPMain(1)]: BASS: Frequency: 44100
    2013-02-13 22:12:37.536914 [Info.][MPMain(1)]: BASS: Format: BASS_WASAPI_FORMAT_FLOAT
    2013-02-13 22:12:37.539914 [Info.][MPMain(1)]: BASS: InitFlags: 18
    2013-02-13 22:12:37.541914 [Info.][MPMain(1)]: BASS: Exclusive: False
    2013-02-13 22:12:37.543914 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-02-13 22:12:37.547914 [Info.][MPMain(1)]: BASS: playback started

    So I have
    Stereo 22kHz mp3 - Played in shared mode, note about more output channels than input channels
    Stereo 44.1kHz mp3 - No mention of whether this was shared or exclusive mode and no mention of output / input channels (upmixing)
    Stereo 48 kHz mp3 - Played in exclusive mode - note about more output channels than input channels
    5.1 24 bit / 96 kHz FLAC - Played in shared mode, note about more output channels than input channels but then says it is creating a 2 channel mixer at 44.1 Khz ??

    Not sure if this is just logging that is not quite right or something else but this is my dev laptop with output set to stereo 16bit 44.1 kHz and to allow exclusive mode. The only file that seemed to play in exclusive mode was the 48 kHz track but I am not sure why. Also as this is stereo it seems that the stereo and the 5.1 tracks have a more output than input channel message.
     

    bribbon

    MP Donator
  • Premium Supporter
  • September 11, 2008
    470
    100
    Home Country
    Switzerland Switzerland
    I'm happy to see that there is a lot work here for the music section. We're using MP now since over 6 years, mostly to hear music. One Point we never understand is why MePo can't show our id tag Genre as all other Mediaplayer will do it. Have a view to the attached Pic. As example: "Electronic | Goa" is cutted and shows like: "Electronic" and separatly: "Goa". I can't understand that.

    ..and second
    Why have the Music Section not a startsite as it MovingPictures has? With following submenus:
    Favoriten, Playlists, Now Playing, Artist, Album, Genre, Best starred
    This Submenus would are a perfect and easier Mix to start using Filters in the Music section everytime. I'm personally not a friend of the left/right hidden menu. Not daily MePo users / gasts (no neards or freaks) have really problems to understand and navigate the Database Music View...


    what think you about this two points?
     

    Attachments

    • Screenshot_2013-02-18-21-18-59.png
      Screenshot_2013-02-18-21-18-59.png
      42.9 KB
    Last edited:

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    873
    62
    NRW
    Home Country
    Germany Germany
    As example: "Electronic | Goa" is cutted and shows like: "Electronic" and separatly: "Goa". I can't understand that.

    Hi bribbon!

    It is correct, that MP cuts theses Multi-Value tags. If you like to have only one genre for that, you have to label it e.g. Electronic-Goa. If you search in Genre a title tagged "Electronic | Goa", you will find this title in both genres, Electronic and Goa. If you serch for a title, tagged "Electronic-Goa", you will find this title only in genre Electronic-Goa.

    Best regards
    Helios
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom