WMA 48khz streams, BASS and ASIO (1 Viewer)

Symphy

Retired Team Member
  • Premium Supporter
  • August 25, 2007
    501
    151
    Groningen
    Home Country
    Netherlands Netherlands
    Hi there,

    I get a problem with playing WMA 48 khz streams with BASS player over ASIO. WMA 44 khz and mpeg streams play well. When using waveout there is no problem.

    Example: http://switch.streamgate.nl/cgi-bin/streamswitch?streamid=46&a=.asx
    The stream is played but it sounds just like the playback sample freq. is set too high. (continues stuttering and higher pitch)
    My soundcard gets properly set at 48khz though according its controlpanel. The logs show no abnormalities.

    What o what can this be..

    Greetings Symphy


    TV-Server Version:
    MediaPortal Version: 0.2.3.0 RC1 SVN:15641
    MediaPortal Skin: BlueTwo Wide
    Windows Version: XP SP2
    CPU Type: Intel Celeron 2.4
    HDD:
    Memory: 1GB
    Motherboard:
    Motherboard Chipset:
    Motherboard Bios:
    Video Card:
    Video Card Driver:
    Sound Card: M-Audio Audiophile 2496
    Sound Card AC3:
    Sound Card Driver: 5.10.00.0052
    1. TV Card:
    1. TV Card Type:
    1. TV Card Driver:
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec:
    MPEG2 Audio Codec:
    Satelite/CableTV Provider:
    HTPC Case:
    Cooling:
    Power Supply:
    Remote: Marmitek PC Remote
    TV:
    TV - HTPC Connection:
     

    Symphy

    Retired Team Member
  • Premium Supporter
  • August 25, 2007
    501
    151
    Groningen
    Home Country
    Netherlands Netherlands
    I've done some more research. The same thing occurs when using a Soundblaster card over ASIO4ALL, so it's not a m-audio driver issue.
     

    Symphy

    Retired Team Member
  • Premium Supporter
  • August 25, 2007
    501
    151
    Groningen
    Home Country
    Netherlands Netherlands
    Ok, i've been in the code now and know what it is. The decoding mixerstream is initialized to 44100 hardcoded while the asio device is set to the source rate, which can be 48000.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    oh, sh*t missed that.
    of course when doing ASIO the mixer needs to be at 48khz as well.
    will change it immediately.

    with 48000 on the mixer and playing a standard 44khz mp3 it listens like being in slow motion.
    doing that via asio4all on my dev notebook.
    please test, how it will work on your side.

    please run a test with the next public build and let me know
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Needed to revert back, as it caused problems when having a mix of 44kHz and 48khz
    when crossfading i would have both files in the mixer causing troubles.

    btw, just noticed that you've written your own ASIO plugin.
    Why not sharing the experience with us and we put your code into the BASS player?
     

    Symphy

    Retired Team Member
  • Premium Supporter
  • August 25, 2007
    501
    151
    Groningen
    Home Country
    Netherlands Netherlands
    I'm afraid you will have to re-initialize the mixer stream each time the source samplerate changes...

    About my plugin, you can use the code of course. Can i put it in svn somehow or do you want a zip?

    Allthough i started out with the existing code, which is mostly yours if i'm not mistaken (credits for that:) ), i ended up totally rewriting it beond recognition leaving out anything that i personally don't use. So it may not be easy to use parts of it in yours. Also, it uses some very unusual things like a ringbuffer implemented in managed code... That may require a lot of testing before using it in MP's core.

    Anyway, let me know where you want the code.

    Regards
    Sieds
     

    Users who are viewing this thread

    Top Bottom