home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Submit: Code Patches
Fix audio player skipping Audio CD track when clicking on "Next Button"
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Smeulf" data-source="post: 767127" data-attributes="member: 107874"><p>Hi,</p><p></p><p>As seen with Albert, there is a problem with BASS Player : when "Next" button is pressed while reading an Audio CD, a track is skipped (IE : Playing Track1, Push Next, BASSPlayer play Track 3 instead of Track2).</p><p></p><p>basically, the OutputDevice ends because there is no more samples comming into due to the track change on the CD-Rom reader. When the OutputDevice ends, it calls a method to get the next item, as the same time the "NextItem" method is processed by the BASSPlayer main object.</p><p></p><p>So 2 methods to get the next items were trying to act at the same moment, making a track to be skipped.</p><p></p><p>Resolution : when NextItem button is pressed, inform the controller that the player is moving to a next item, and make the OutputDevice check is a moving operation is in progress before trying to call a next item.</p><p></p><p>Patch attached.</p><p></p><p>Requires "RemovableMediaManager" plugin to be properly tested.</p><p></p><p>Cheers.</p><p></p><p>Smeulf.</p><p></p><p>[Edit] Patch modified. Check if the controller is already moving to the next item has moved into the PlaybackProcessor.cs, in method HandleOutputStreamEnded(). It makes more sense like it than checking it into the OutputDevice, and give avantage to process HandleOutputStreamEnded method in case there is something else to do into.</p><p>[/Edit]</p></blockquote><p></p>
[QUOTE="Smeulf, post: 767127, member: 107874"] Hi, As seen with Albert, there is a problem with BASS Player : when "Next" button is pressed while reading an Audio CD, a track is skipped (IE : Playing Track1, Push Next, BASSPlayer play Track 3 instead of Track2). basically, the OutputDevice ends because there is no more samples comming into due to the track change on the CD-Rom reader. When the OutputDevice ends, it calls a method to get the next item, as the same time the "NextItem" method is processed by the BASSPlayer main object. So 2 methods to get the next items were trying to act at the same moment, making a track to be skipped. Resolution : when NextItem button is pressed, inform the controller that the player is moving to a next item, and make the OutputDevice check is a moving operation is in progress before trying to call a next item. Patch attached. Requires "RemovableMediaManager" plugin to be properly tested. Cheers. Smeulf. [Edit] Patch modified. Check if the controller is already moving to the next item has moved into the PlaybackProcessor.cs, in method HandleOutputStreamEnded(). It makes more sense like it than checking it into the OutputDevice, and give avantage to process HandleOutputStreamEnded method in case there is something else to do into. [/Edit] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Submit: Code Patches
Fix audio player skipping Audio CD track when clicking on "Next Button"
Contact us
RSS
Top
Bottom