Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > Bug Reports And Codecs

Bug Reports And Codecs Report BS.Player bugs here - help us to improve BS.Player even further.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 26th March 2005
Senior Member
BS.Player Power User
 
Join Date: Feb 2004
Posts: 126
Rep Power: 0
RafkeP is an unknown quantity at this point
Default Problem with SDK and BSP_LoadAudio

Hi,

I'm trying to write another plugin.
One that requires the BSP_LoadAudio message.
Whatever I try : the audio file won't load. I can load it manually but not from a plugin.

So I tried the following : Instead of using an mp3 I took a normal srt file.
(I know that's a subtitle file, but it was only a test)
My code then looked like this :
Code:
cds.lpData=(void *) "audiofile.srt";
Now when I start BSplayer and I go to Audio/Audio Streams, I see there is an audio stream called "audiofile.srt"
When I change my code to :
Code:
cds.lpData=(void *) "audiofile.mp3";
It doesn't load the audio file and it doesn't show in Audio/Audio Streams
I did my tests with bsplayer122.817 and bsplayer122.812 on Windows XP and Win2000

Am I doing something wrong or can someone confirm this behaviour ?

Thanks in advance,
Rafke P.
Reply With Quote
  #2 (permalink)  
Old 21st June 2005
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 27
Tizio will become famous soon enough
Default

Have you still problems in this field?
This is one of the few things in which I had no problem, my audio stream appears in the Audio Streams list and is reproduced correctly...
__________________
BSP SkinMaker (v1.07) the one and only Skin Editor for BSplayer
BSP Definitions Manager (v1.02)
BS.Player's FAQ (by BSPeter) | Italian language file (v2.57 build 1051)
Reply With Quote
  #3 (permalink)  
Old 21st June 2005
Senior Member
BS.Player Power User
 
Join Date: Feb 2004
Posts: 126
Rep Power: 0
RafkeP is an unknown quantity at this point
Default

I didn't work on this anymore so I still have the problem :?
When I find some time I'm going to try it with the new build.

Thanks for reporting.
Reply With Quote
  #4 (permalink)  
Old 22nd June 2005
bst's Avatar
bst bst is offline
BS.Developer
BS.Player Power User
 
Join Date: Jun 2002
Posts: 181
Rep Power: 10
bst will become famous soon enoughbst will become famous soon enough
Default

Can't find any error in this BSP_Loadaudio, but if you are writing plugin (DLL) there is no need for WM_COPYDATA, you can call this function like this:

SendMessage(plgInfo->hwndParent,WM_BSP_CMD,BSP_LoadAudio,(LPARAM)"mp3f ile.mp3");
Reply With Quote
  #5 (permalink)  
Old 22nd June 2005
Senior Member
BS.Player Power User
 
Join Date: Feb 2004
Posts: 126
Rep Power: 0
RafkeP is an unknown quantity at this point
Default

Thanks for tip bst!

Since you both confirmed that it should be working: I gave it another try and I actually found my problem: it was a wrong passing of a parameter as filename :oops: .

I didn't find it before because when I opened a video file with no audio and then the audio via the sendmessage, I didn't see anything in audio streams and the sound was muted. I realise now that this is normal behaviour.

Anyway: the problem is fixed now, but I have a new one :?
When I open the video and audio seperately (manual or via the plugin doesn't make a difference) the audio is out of sync when I skip ahead in the movie.
If I keep watching from the beginning there is no problem.

I'm afraid to ask, but can anyone confirm this ?
Reply With Quote
Reply

Tags
bsploadaudio, sdk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules


All times are GMT +1. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20