MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins » Hot Plugins » ASIO music player


View Poll Results: What functionality would you like to be added?
VST plugin support 15 31.25%
WinAmp DSP plugin support 13 27.08%
BASS DSP support 11 22.92%
Last.fm support 26 54.17%
Visualizations 25 52.08%
Multiple Choice Poll. Voters: 48. You may not vote on this poll

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 2007-09-22, 14:37   #11 (permalink)
Portal Developer
 
Join Date: Aug 2007
Age: 40
Posts: 167
Thanks: 0
Thanked 15 Times in 13 Posts

Country:


Default

Aberdino, thanx for doing the test. I already suspected problems there, but now we are sure. We have learned something more about bitperfect playback

About that log, don't worry about it. You get that because the built-in BASS player has already loaded those decoders. PureAudio (also uses BASS library) tries to load them again causing those errors. They will work fine though. In the next version the log will give "already loaded" messages.

Regards
Sieds
Symphy is offline  
Old 2007-09-23, 17:07   #12 (permalink)
Portal Developer
 
Join Date: Aug 2007
Age: 40
Posts: 167
Thanks: 0
Thanked 15 Times in 13 Posts

Country:


Default

Ok guys there's a new version available for download. http://www.team-mediaportal.com/file...cPlayerPlugin/

Here's what's new:
  • Added support for Windows WaveOut devices.
  • Multiple channel files (for example 6 channel WMA) can now be played over devices supporting enough channels.
  • New configuration setting that can make PureAudio always use the maximum available buffer on the ASIO device, regardless of what is set at the device's configuration.
  • Fixed problem with “No audio decoders were loaded” messages in log. The log will now show “Already loaded” messages if the built-in BASS player is enabled.

Remark: This new version is default set to use Window WaveOut. So after updating you have to go into the configuration and set it to ASIO.

Have fun,
Sieds
Symphy is offline  
Old 2007-09-23, 18:40   #13 (permalink)
Portal Member
 
AberDino's Avatar
 
Join Date: Feb 2005
Location: Kincardineshire
Posts: 108
Thanks: 2
Thanked 1 Time in 1 Post

Country:

My System

Default

Sieds, just to let you know that although I now get the 'already loaded' messages in the log, it still logs an error:
Quote:
2007-09-23 18:33:04.344532 [ERROR][MPMain]: PureAudio: No audio decoders were loaded. Confirm decoders are present in \musicplayer\plugins\audio decoders folder.
For the rest it seems to working fine!
__________________
AberDino is offline  
Old 2007-09-30, 16:56   #14 (permalink)
sdf
Portal Member
 
Join Date: Sep 2006
Posts: 104
Thanks: 1
Thanked 0 Times in 0 Posts

Country:


Default

Hi!
The problem seems related to the sampling frequency (44100, but my Audigy wants 48000).
I remember that both in Foobar2000 and in Winamp I have first to resample (to 48000 or 96000), then use ASIO.
sdf is offline  
Old 2007-09-30, 18:02   #15 (permalink)
Portal Developer
 
Join Date: Aug 2007
Age: 40
Posts: 167
Thanks: 0
Thanked 15 Times in 13 Posts

Country:


Default

Quote:
Originally Posted by sdf View Post
Hi!
The problem seems related to the sampling frequency (44100, but my Audigy wants 48000).
I remember that both in Foobar2000 and in Winamp I have first to resample (to 48000 or 96000), then use ASIO.
Hi sdf,
If you refer to the "No audio decoders were loaded" msg in the log reported by AberDino, that's not related to sampling rate, but it's just a wrong message, you can ignore it.

It's true that the plugin tries to initialize the ASIO device to 44100, if the source is so. if your ASIO device does not support that, you get another error.

If you want to use your Audigy for analog out, you're better off using standard WaveOut device. I believe there's absolutely no point in using ASIO if any such oversampling is done either by software or hardware. In fact the main reason for using ASIO is to prevent oversampling from happening.
Bitperfect playback over sp/dif of 44100 is inpossible anyway with an audigy, because it can only output 48000 as far as i know. Correct me if i'm wrong.

If anyone is interested, i could investigate the possiblility to have my plugin perform oversampling if 44100 is not supported. That should be possible with the BASS library. But in that case i'm really curious what goals you're trying to achieve.

Regards,
Sieds
Symphy is offline  
Old 2007-09-30, 19:05   #16 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post


Default

Hi Symphy!

Firstly: great job with this plugin!

Secondly: I tried your plugin with my two soundcards:

RME Digi 96/16
Trends UD-10

Both are made for bit perfect, but with both the Bass plugin (with and without ASIO) and your plugin I get al little hickup before switching to the next song. Your plugin is the closest one, but it is still a hickup.

With foobar and ASIO I can play bitperfectly and gapless without problems.

What can I do to resolve this problem?

Greetings,
Aurora
Aurora13 is online now  
Old 2007-09-30, 19:39   #17 (permalink)
Portal Developer
 
Join Date: Aug 2007
Age: 40
Posts: 167
Thanks: 0
Thanked 15 Times in 13 Posts

Country:


Default

Quote:
Originally Posted by Aurora13 View Post
Hi Symphy!
What can I do to resolve this problem?
Hi Aurora
There really should not be any hickup when switching songs using my plugin. That is, if your songs are ripped good as well. But if the switch between the same songs is ok in other sfw, that cannot be the problem.

Are you sure you had gapless mode enabled? You can toggle between normal and gapless by pressing the "g" key. The icon in My Music screen shows what mode is active.

Just to be sure: Are you sure the plugin was enabled and actually active when doing the tests?

Make sure the Playback-buffer setting in the plugin configuration is not set too low. This setting determines the amount of time MP gets to find and open the next track and glue it to the end of the previous one. Try setting it higher.

Another possibility might be your system being too slow to handle ASIO and MP. If MP has to switch from one song to another it makes your PC work hard for a moment and that might break ASIO playback. MP is a wonderfull piece of sfw, byt it is not low on resources.

If you cannot get it right, pls post some logfiles, that might make things clear.

Regards
Sieds
Symphy is offline  
Old 2007-09-30, 21:16   #18 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post


Default

Quote:
Originally Posted by Symphy View Post
Are you sure you had gapless mode enabled? You can toggle between normal and gapless by pressing the "g" key. The icon in My Music screen shows what mode is active.
Yes it was in gapless mode, checked it with the icon and the "g" key.

Quote:
Originally Posted by Symphy View Post
Just to be sure: Are you sure the plugin was enabled and actually active when doing the tests?
Yes it is active for sure (your plugin sips with 20 sec interval, the bass plugin skips differently.

Quote:
Originally Posted by Symphy View Post
Make sure the Playback-buffer setting in the plugin configuration is not set too low. This setting determines the amount of time MP gets to find and open the next track and glue it to the end of the previous one. Try setting it higher.
It is set on 3000 miliseconds and I checked the box: "Always set max buffersize with ASIO"

Quote:
Originally Posted by Symphy View Post
Another possibility might be your system being too slow to handle ASIO and MP. If MP has to switch from one song to another it makes your PC work hard for a moment and that might break ASIO playback. MP is a wonderfull piece of sfw, byt it is not low on resources.
CPU resources are low even during the switching to the next song.

Quote:
Originally Posted by Symphy View Post
If you cannot get it right, pls post some logfiles, that might make things clear.
Extra info:
It gives a little hickup 1 or 2 seconds before the song ends. The switch from one song through another is prefectly fine.

Here are some logs:

Quote:
2007-09-30 22:03:21.828125 [Info.][MPMain]: PlaylistPlayer: Play - \\server2\Music\ID&T - Trance Energy\09 - Avancada - Go! (DJ looney tune's remix).flac
2007-09-30 22:03:21.828125 [Info.][MPMain]: add cmd:MediaPortal.TV.Recording.StopRadioCommand #1
2007-09-30 22:03:21.828125 [Info.][MPMain]: g_Player.Play(\\server2\Music\ID&T - Trance Energy\09 - Avancada - Go! (DJ looney tune's remix).flac)
2007-09-30 22:03:21.828125 [Info.][MPMain]: PlayerFactory: Disabling DX9 exclusive mode
2007-09-30 22:03:21.828125 [Info.][MPMain]: Main: DX exclusive mode: False
2007-09-30 22:03:21.828125 [Info.][MPMain]: Main: Goto windowed mode: True
2007-09-30 22:03:21.828125 [Info.][MPMain]: fonts.SetDevice()
2007-09-30 22:03:21.828125 [Info.][6]: Commandtop radio
2007-09-30 22:03:21.828125 [Info.][6]: Command:MediaPortal.TV.Recording.StopRadioCommand time:0 msec
2007-09-30 22:03:21.828125 [Info.][6]: Recorder: Card:Hauppauge PVR 250 idle
2007-09-30 22:03:21.906250 [Info.][11]: PureAudio: Using ASIO device ASIO4ALL v2
2007-09-30 22:03:22.062500 [Info.][MPMain]: g_Player.OnStarted() \\server2\Music\ID&T - Trance Energy\09 - Avancada - Go! (DJ looney tune's remix).flac media:Music
2007-09-30 22:06:19.421875 [Info.][MPMain]: g_Player.Process() player stopped...
2007-09-30 22:06:19.421875 [Info.][MPMain]: g_Player.OnEnded()
2007-09-30 22:06:19.421875 [Info.][MPMain]: PlaylistPlayer: Play - \\server2\Music\ID&T - Trance Energy\10 - Bad habbit boys - Weekend.flac
2007-09-30 22:06:19.421875 [Info.][MPMain]: add cmd:MediaPortal.TV.Recording.StopRadioCommand #1
2007-09-30 22:06:19.421875 [Info.][6]: Commandtop radio
2007-09-30 22:06:19.421875 [Info.][6]: Command:MediaPortal.TV.Recording.StopRadioCommand time:0 msec
2007-09-30 22:06:19.421875 [Info.][6]: Recorder: Card:Hauppauge PVR 250 idle
2007-09-30 22:06:19.421875 [Info.][MPMain]: g_Player.Play(\\server2\Music\ID&T - Trance Energy\10 - Bad habbit boys - Weekend.flac)
2007-09-30 22:06:19.796875 [Info.][MPMain]: PlayerFactory: Disabling DX9 exclusive mode
2007-09-30 22:06:19.796875 [Info.][MPMain]: Main: DX exclusive mode: False
2007-09-30 22:06:19.796875 [Info.][MPMain]: Main: Goto windowed mode: True
2007-09-30 22:06:19.796875 [Info.][MPMain]: fonts.SetDevice()
2007-09-30 22:06:19.796875 [Info.][MPMain]: g_Player.OnStarted() \\server2\Music\ID&T - Trance Energy\10 - Bad habbit boys - Weekend.flac media:Music
2007-09-30 22:09:20.406250 [Info.][MPMain]: g_Player.Process() player stopped...
2007-09-30 22:09:20.406250 [Info.][MPMain]: g_Player.OnEnded()
2007-09-30 22:09:20.406250 [Info.][MPMain]: PlaylistPlayer: Play - \\server2\Music\ID&T - Trance Energy\11 - Southside spinners - Luvstruck 2000.flac
2007-09-30 22:09:20.406250 [Info.][MPMain]: add cmd:MediaPortal.TV.Recording.StopRadioCommand #1
2007-09-30 22:09:20.406250 [Info.][6]: Commandtop radio
2007-09-30 22:09:20.406250 [Info.][6]: Command:MediaPortal.TV.Recording.StopRadioCommand time:0 msec
2007-09-30 22:09:20.406250 [Info.][6]: Recorder: Card:Hauppauge PVR 250 idle
2007-09-30 22:09:20.421875 [Info.][MPMain]: g_Player.Play(\\server2\Music\ID&T - Trance Energy\11 - Southside spinners - Luvstruck 2000.flac)
2007-09-30 22:09:20.781250 [Info.][MPMain]: PlayerFactory: Disabling DX9 exclusive mode
2007-09-30 22:09:20.796875 [Info.][MPMain]: Main: DX exclusive mode: False
2007-09-30 22:09:20.796875 [Info.][MPMain]: Main: Goto windowed mode: True
2007-09-30 22:09:20.796875 [Info.][MPMain]: fonts.SetDevice()
2007-09-30 22:09:20.796875 [Info.][MPMain]: g_Player.OnStarted() \\server2\Music\ID&T - Trance Energy\11 - Southside spinners - Luvstruck 2000.flac media:Music
Greets,
Aurora
Aurora13 is online now  
Old 2007-09-30, 22:08   #19 (permalink)
Portal Developer
 
Join Date: Aug 2007
Age: 40
Posts: 167
Thanks: 0
Thanked 15 Times in 13 Posts

Country:


Default

Aurora,

Could you set logginglevel to debug and try again? You'll get big logs but you can post them here as attachments.

From your description i get the impression that opening the new song in the background (which happens in the last few seconds of the current song) is actually stalling playback for a short while.

You can do the following tests:
1. Switch to standard waveout device and increase the "BASS buffer size" setting to its max.
2. I see you play over a network. Opening files that way take more resources. Copy (part of) the album to a local disk and play from there and see what happens.

If you can solve the hickup this way, i'd say your machine is just not fast enough for ASIO and MP. What kind of configuration is it btw?

Let me know what you find out.

Sieds
Symphy is offline  
Old 2007-10-01, 18:48   #20 (permalink)
Portal Member
 
Join Date: Jun 2007
Posts: 545
Thanks: 18
Thanked 23 Times in 17 Posts

Country:

My System

Default

@Symphy

Just tried your plugin and it simply does what it says.
True Gapless playback and bitperfect audio output.

This really rocks.
Hopefully the goods will find their way into the official release branch.


Regards,
grubi.

grubi is offline  
Closed Thread

Bookmarks

Tags
asio, music, player, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for .cue-files in Music Player emphatic Improvement Suggestions 10 2008-07-02 07:30
Bass player with ASIO support? rockmeisster Listen Music 74 2007-12-07 08:09
Bug in My music player patricon fixed 0.2.3.0 RC1 bugs 8 2007-08-24 20:14
Music Player smallishzulu 0.2.2.0 Final and SVN Builds 4 2007-05-28 08:07
My Music external player laeb66 Codecs, External Players 2 2006-01-16 11:22


All times are GMT +1. The time now is 13:26.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress