- Moderator
- #1
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):
However, this is working incorrectly. The MP Bass Engine only plays 10% of the song and then stops. If I do following:
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?
MediaPortal Version: 1.1.0
MediaPortal Skin: StreamedMP
Windows Version: Windows 7 32-bit
CPU Type: Intel E8200 2.66GHz
HDD: OCZ Core SSD 32GB
Memory: Kingston 4GB 800MHz
Motherboard: Asus P5E-VM HDMI
Video Card: ATI Radeon HD4850
Video Card Driver: Catalyst 10.7
Sound Card: Onboard
Sound Card AC3: Coaxial Out
Sound Card Driver:
1. TV Card: FireDTV
1. TV Card Type: DVB-C
1. TV Card Driver: 5.6
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: Cyberlink PDVD 10
MPEG2 Audio Codec: ffdshow
h.264 Video Codec: Cyberlink PDVD 10
Satelite/CableTV Provider: TTV Tampere, Finland
HTPC Case: Antec Fusion 2
Cooling: Stock
Power Supply: Antec 430W
Remote: Logitech diNovo Mini / FireDTV Remote
TV: Toshiba 46ZF355
TV - HTPC Connection: HDMI
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);
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);
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?
MediaPortal Version: 1.1.0
MediaPortal Skin: StreamedMP
Windows Version: Windows 7 32-bit
CPU Type: Intel E8200 2.66GHz
HDD: OCZ Core SSD 32GB
Memory: Kingston 4GB 800MHz
Motherboard: Asus P5E-VM HDMI
Video Card: ATI Radeon HD4850
Video Card Driver: Catalyst 10.7
Sound Card: Onboard
Sound Card AC3: Coaxial Out
Sound Card Driver:
1. TV Card: FireDTV
1. TV Card Type: DVB-C
1. TV Card Driver: 5.6
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: Cyberlink PDVD 10
MPEG2 Audio Codec: ffdshow
h.264 Video Codec: Cyberlink PDVD 10
Satelite/CableTV Provider: TTV Tampere, Finland
HTPC Case: Antec Fusion 2
Cooling: Stock
Power Supply: Antec 430W
Remote: Logitech diNovo Mini / FireDTV Remote
TV: Toshiba 46ZF355
TV - HTPC Connection: HDMI