Forum > General

Accessing File Properties

<< < (3/3)

stephanos:
Dear Davo et al

I made mention of the Bass forum in case someone mentioned taking my question there.  Also I think it showed that I have read, researched and learnt - a little.  Combined with the code, I submitted here, I think that was the next reasonable thing I could do.

Well Chris has probably given me some pretty detailed and complete answers. But I do not understand it so what else can I do except ask questions.  Then what else should I do when direct questions are are not answered.  It is not my fault I do not know something and it is no ones faulty that I do not understand.  But really what else should I do?  To go back and read it again without the benefit of an explanation is not going to work.  So I moved on.  I came up with my best guess and submitted it here. 

Moreover, as you understand what each line is doing please can you:
a) answer question 2 and 3 in the earlier posts on that forum.  These represent a genuine request to confirm potential knowledge and I do not feel they have been answered in a clear cogent way.  If

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---L_Seconds := BASS_ChannelBytes2Seconds(H, L_Bytes);is taking a file size and embedded bitrate and calculating a play time in seconds then I do not need

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---BASS_ChannelGetAttribute(H,BASS_ATTRIB_BITRATE, FBitrate);It would be nice to know.  Any idea? 
b) Where do you stand on my analysis/guess that there is a fault in the code:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---H := BASS_StreamCreateFile(FALSE, pchar(Utf8Encode('BAILE MINHA MADEIRA.mp3')), 0, 0, BASS_STREAM_DECODE);Do I need to declare a pointer or is it not the problem?
What is the problem?

I have submitted code very similar to Chris and as best as I understand.  Please can this forum deal with my code issue.  I am not looking for someone to do it for me.  I am trying to learn, hence the questions which remain unanswered.

I have heard mention of UOS before and I will pursue it.  I will look at  extended properties of a media file as well - thanks

patiently yours

BobDog:

Bass.dll is 32 bits (I could find)
I have experimented a little, i don't have the bass unit, so I use the 32 bit bass.dll directly.
https://www.mediafire.com/file/ujbymhyc54rhfyc/basstest.zip/file

dbannon:
Ah, stephanos, sorry, I was definitely not suggesting you should not ask questions here, far from it.  My reasoning was that Chris's suggestion 'appeared' to be a good place to start.  What I saw of his code and explanation sounded reasonable. I did not understand it ! Its only likely to be understood by someone who is familiar with Bass. My guess would be that there are a much greater concentration of people with Bass experience there than here.

You need to understand that this forum is very good at helping with general FPC/Lazarus questions, when you start asking about relatively obscure third party products (and don't mean that in any derogatorily way), its a very different situation.



--- Quote from: stephanos on December 01, 2021, 02:43:45 pm ---...
Moreover, as you understand what each line is doing please can you:

--- End quote ---

No stephanos, I don't, its likely someone here might but its a question of if they see your question during its lifetime on the forum. 


--- Quote from: stephanos on December 01, 2021, 02:43:45 pm ---
a) answer question 2 and 3 in the earlier posts on that forum.  These represent a genuine request to confirm potential knowledge and I do not feel they have been answered in a clear cogent way. 

--- End quote ---

Sorry, not sure what you mean about question 2 and 3 ?  Perhaps you need to ask them again ?

Your questions about the BASS code do fit into that category I mentioned, I don't use BASS, I would need quite a lot of reading to be able to answer that question for you. It makes sense for you to do that reading, you are the one developing an app using  BASS.

stephanos - do not be discouraged, its always difficult to get started. If you choose to start in an obscure corner of your chosen workspace, its harder still. Maybe you should put more effort in developing the non BASS specific parts so you build up your knowledge of FPC/Lazarus first, then, armed with that knowledge, you would be better equipped to tackle the Bass (or UOS) interface.

Davo

Navigation

[0] Message Index

[*] Previous page

Go to full version