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 1
Support
General Support
MP BASS Engine won't play "incomplete" songs properly
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="seco" data-source="post: 655162" data-attributes="member: 54595"><p>Hello,</p><p></p><p>I am writing a plugin where I download an audio file (MP3 or OGG) to disk.</p><p></p><p>I'd like to start the playback of the song after, let's say 10% of the song has been saved to disk. I have tried following by using Bass Engine of MediaPortal, when 10% of the file has been saved (and the download continues writing to file):</p><p></p><p>[PHP]BassMusicPlayer.Player.InitBass();</p><p>BassMusicPlayer.Player.Play(filename);[/PHP]</p><p></p><p>However, this is working incorrectly. The MP Bass Engine only plays 10% of the song and then stops. If I do following:</p><p></p><p>[PHP]Bass.BASS_Init(-1, 96000, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); </p><p>Bass.BASS_ChannelPlay(Bass.BASS_StreamCreateFile(filename, 0, 0, BASSFlag.BASS_DEFAULT), false);[/PHP]</p><p></p><p>I get the wanted result, song is played completely while downloading keeps writing to the file.</p><p></p><p>Does any of the developers have any idea why MP Bass Engine behaves like this and what part of BASS settings might be the cause?</p><p></p><p></p><p><strong>MediaPortal Version</strong>: 1.1.0</p><p><strong>MediaPortal Skin</strong>: StreamedMP</p><p><strong>Windows Version</strong>: Windows 7 32-bit</p><p><strong>CPU Type</strong>: Intel E8200 2.66GHz</p><p><strong>HDD</strong>: OCZ Core SSD 32GB</p><p><strong>Memory</strong>: Kingston 4GB 800MHz</p><p><strong>Motherboard</strong>: Asus P5E-VM HDMI</p><p><strong>Video Card</strong>: ATI Radeon HD4850</p><p><strong>Video Card Driver</strong>: Catalyst 10.7</p><p><strong>Sound Card</strong>: Onboard</p><p><strong>Sound Card AC3</strong>: Coaxial Out</p><p><strong>Sound Card Driver</strong>: </p><p><strong>1. TV Card</strong>: FireDTV</p><p><strong>1. TV Card Type</strong>: DVB-C</p><p><strong>1. TV Card Driver</strong>: 5.6</p><p><strong>2. TV Card</strong>: </p><p><strong>2. TV Card Type</strong>: </p><p><strong>2. TV Card Driver</strong>: </p><p><strong>3. TV Card</strong>: </p><p><strong>3. TV Card Type</strong>: </p><p><strong>3. TV Card Driver</strong>: </p><p><strong>4. TV Card</strong>: </p><p><strong>4. TV Card Type</strong>: </p><p><strong>4. TV Card Driver</strong>: </p><p><strong>MPEG2 Video Codec</strong>: Cyberlink PDVD 10</p><p><strong>MPEG2 Audio Codec</strong>: ffdshow</p><p><strong>h.264 Video Codec</strong>: Cyberlink PDVD 10</p><p><strong>Satelite/CableTV Provider</strong>: TTV Tampere, Finland</p><p><strong>HTPC Case</strong>: Antec Fusion 2</p><p><strong>Cooling</strong>: Stock</p><p><strong>Power Supply</strong>: Antec 430W</p><p><strong>Remote</strong>: Logitech diNovo Mini / FireDTV Remote</p><p><strong>TV</strong>: Toshiba 46ZF355</p><p><strong>TV - HTPC Connection</strong>: HDMI</p></blockquote><p></p>
[QUOTE="seco, post: 655162, member: 54595"] Hello, I am writing a plugin where I download an audio file (MP3 or OGG) to disk. I'd like to start the playback of the song after, let's say 10% of the song has been saved to disk. I have tried following by using Bass Engine of MediaPortal, when 10% of the file has been saved (and the download continues writing to file): [PHP]BassMusicPlayer.Player.InitBass(); BassMusicPlayer.Player.Play(filename);[/PHP] However, this is working incorrectly. The MP Bass Engine only plays 10% of the song and then stops. If I do following: [PHP]Bass.BASS_Init(-1, 96000, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero); Bass.BASS_ChannelPlay(Bass.BASS_StreamCreateFile(filename, 0, 0, BASSFlag.BASS_DEFAULT), false);[/PHP] I get the wanted result, song is played completely while downloading keeps writing to the file. Does any of the developers have any idea why MP Bass Engine behaves like this and what part of BASS settings might be the cause? [b]MediaPortal Version[/b]: 1.1.0 [b]MediaPortal Skin[/b]: StreamedMP [b]Windows Version[/b]: Windows 7 32-bit [b]CPU Type[/b]: Intel E8200 2.66GHz [b]HDD[/b]: OCZ Core SSD 32GB [b]Memory[/b]: Kingston 4GB 800MHz [b]Motherboard[/b]: Asus P5E-VM HDMI [b]Video Card[/b]: ATI Radeon HD4850 [b]Video Card Driver[/b]: Catalyst 10.7 [b]Sound Card[/b]: Onboard [b]Sound Card AC3[/b]: Coaxial Out [b]Sound Card Driver[/b]: [b]1. TV Card[/b]: FireDTV [b]1. TV Card Type[/b]: DVB-C [b]1. TV Card Driver[/b]: 5.6 [b]2. TV Card[/b]: [b]2. TV Card Type[/b]: [b]2. TV Card Driver[/b]: [b]3. TV Card[/b]: [b]3. TV Card Type[/b]: [b]3. TV Card Driver[/b]: [b]4. TV Card[/b]: [b]4. TV Card Type[/b]: [b]4. TV Card Driver[/b]: [b]MPEG2 Video Codec[/b]: Cyberlink PDVD 10 [b]MPEG2 Audio Codec[/b]: ffdshow [b]h.264 Video Codec[/b]: Cyberlink PDVD 10 [b]Satelite/CableTV Provider[/b]: TTV Tampere, Finland [b]HTPC Case[/b]: Antec Fusion 2 [b]Cooling[/b]: Stock [b]Power Supply[/b]: Antec 430W [b]Remote[/b]: Logitech diNovo Mini / FireDTV Remote [b]TV[/b]: Toshiba 46ZF355 [b]TV - HTPC Connection[/b]: HDMI [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
MP BASS Engine won't play "incomplete" songs properly
Contact us
RSS
Top
Bottom