Search:

Type: Posts; User: kembreg

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Capturing letters typed on a Russian keyboard

    On a US keyboard, one could have code like :

    If Lettertyped = "A" then ....

    How does one go about capturing letters on a Russian keyboard?

    i.e.

    If lettertyped = "Л" then...
    If...
  2. MMControl -> Wait = false / Wait = true affects the sound

    The weirdest thing.

    I have a .wav file with a length of 0.2s. (typewriter key-stroke sound)

    Here is my code:

    With MainForm.MMControl
    .Wait = true
    .Shareable = False
    ...
  3. Replies
    2
    Views
    536

    Fade cursor in and out

    Hey all.

    I know there is an API call "ShowCursor" which can be used to temporarily turn off the cursor.

    The disadvantage is that suddenly turning off the cursor, moving it and then turning on...
  4. Re: [RESOLVED] Load an MP3 file, save it as a WAV file

    I think there is an error in The Trick's code and I would like to offer a correction.




    .cbSize = Len(dstFormat) 'Incorrect
    .cbSize = 16 'Correct

    If mmioWrite(hWave, dstFormat,...
  5. Re: Load an MP3 file, save it as a WAV file

    I figured out how to skip X samples at the beginning to account for the MP3 encoding process.

    I used TheTrick's code and added this routine to remove the front end bytes from the array:


    Sub...
  6. Re: Load an MP3 file, save it as a WAV file

    I tried this:



    Dim SampleCounter As Long

    SampleCounter = SampleCounter + 1
    If SampleCounter >= SampleStartPoint Then
    If mmioWrite(hWave, buffer(0), acmHdr.cbDstLengthUsed) = -1 Then
    ...
  7. Re: Load an MP3 file, save it as a WAV file

    Much appreciated The Trick.

    Огромное спасибо :)

    I tried it out and it works.
    Great.

    Now a request...

    The Lame encoder adds 1052 samples to the front of any MP3 file.
  8. Re: Load an MP3 file, save it as a WAV file

    Olaf,

    I am indeed familiar with the WAV format and headers etc.

    My problem is that I cannot figure out where the data is stored in TheTrick's code.

    For example, I have code already to save a...
  9. Re: Load an MP3 file, save it as a WAV file

    Olaf,

    My preference would be 'not' to add extra size to the app and instead to use the "DX8-Typelib".

    Can you point me to a working example that uses the DX8-Typelib to convert an MP3 to a WAV?...
  10. Re: Load an MP3 file, save it as a WAV file

    Vielen Dank Olaf.

    The only concern I have is the RC5 reference.
    I googled and found out you are referring to the vbrichclient (I believe).

    Is there a specific process for including this...
  11. Replies
    6
    Views
    17,849

    Re: VB6 - ACM (e.g. WAV/MP3 conversion)

    When I run your code, I get an error :

    "Wrong number of arguments or invalid property assignment"

    at this line:

    If 1 <> acm.ConvertData(0, realout, , , usedlen) Then
    ...
  12. Re: Load an MP3 file, save it as a WAV file

    Dear The Trick.

    I downloaded the code and ran it.
    Very impressive.

    I don't have enough ability to build a "Save as wav" routine from your code though.
    Could you throw something together?...
  13. Re: Load an MP3 file, save it as a WAV file

    I downloaded the code and ran it.
    Very impressive.

    I don't have enough ability to build a "Save as wav" routine from your code though.
    Could you throw something together?
    Would be very much...
  14. Replies
    16
    Views
    1,693

    Re: Mp3 To Wav/Wav To Mp3 Converter

    The code provide by Danielo apparently only encodes MP3's.

    I'm looking for VB6 code to decode an MP3 and save it as a WAV file.

    Can you provide any code to do this?

    Thanks,

    David
  15. Re: Load an MP3 file, save it as a WAV file

    I found code at this link:

    http://www.vbforums.com/showthread.php?358703-VB6-ACM-%28e-g-WAV-MP3-conversion%29

    Is that the right link?

    What I tried it out, it did not work.

    MP3 Dec
  16. Re: Load an MP3 file, save it as a WAV file

    Thanks.

    Do you have a link to the appropriate post in the codebank?
  17. Re: Load an MP3 file, save it as a WAV file

    Thanks for writing.

    Apparently DirectSound8 will not run on anything laster than Vista (including Vista)

    Any comments?

    David
  18. Re: Load an MP3 file, save it as a WAV file

    Thanks for writing back.

    A couple of lines of code is all that is needed.

    MCISendstring(String to open an MP3 file)
    MCISendstring(String to copy the MP3 to another voice)
    MCISendstring(String...
  19. Re: Load an MP3 file, save it as a WAV file

    Navion,

    Good to hear.

    Have googled trying to find some code.

    Could you post some code for this?
    Would be much appreciated.

    David
  20. [RESOLVED] Load an MP3 file, save it as a WAV file

    Hi all.

    I want to load an MP3 file and save it as a WAV file.

    Should be elementary.
    As it turns out, it seems not to be.

    The mmcontrol will only save with a sampling rate of 11kHz,...
  21. Replies
    6
    Views
    1,071

    Sorting a List Box control automatically

    Hey all.

    I have a list box control with the sort property set to true.

    The list box does not however sort this list:

    Russian
    ÉÓÐÁÎÓËÉÊ
    ËÁÔÁÌÏÎÓËÉÊ
    ÁÎÇÌÉÊÓËÉÊ
  22. Unwanted 'Click' sound using the MMcontrol with Windows 7 (Dell machine)

    Hi all.

    Have used the MMcontrol for years with no problem.

    Just ran some VB6 code on a Dell with Windows 7. (executable)

    Every time a wav file plays, there is an audible click at the...
  23. Replies
    6
    Views
    290,325

    Re: Classic VB - How can I check if a file exists?

    Just a tip... don't use the dir function to check if files exist.
    It will muck up any other functions you have which use dir in a loop.

    David
  24. Re: Using ShellExecute to launch default Web Browser

    I am trying to follow the logic of Elroy's code.
    I simplified the code in the process:


    Public Sub HyperLinkJump(ByVal sUrl As String, hWnd As Long)

    Dim s As String
    Dim iFle As Long
    Dim...
  25. Re: Using ShellExecute to launch default Web Browser

    It seems to me that Elroy's code checks if Chrome is installed on the machine.
    Would it not be better to check it Chrome is the default browser or if html files are associated with Chrome?

    That...
  26. Replies
    1
    Views
    1,985

    Access to the samples of a decoded MP3 file

    I can load in a WAV file as a binary and look at each sample.
    This is because WAV files are stored as PCM.

    How would I do the same with an MP3 file?

    I am using the MicroSoft Multimedia Control...
  27. Replies
    13
    Views
    1,161

    Re: [RESOLVED] Help Loading VB6

    The last response was in 2005. Thanks so much for your post. It helped me in Sept 2014!
  28. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    I've always none the modal / modeless choice as one to make when the .show method is evoked.

    I have no idea how to make the main form modal or modeless.

    I don't think it's a form property.
  29. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    Any help would be appreciated.
  30. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    yes, very good laugh. Could you help? If I switch back to my application and close a modeless form I would expect to see the form that called the .show method. Why would I see an application from...
  31. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    Now some very odd behaviour.

    Main Form - modal (Full screen)
    Sub Form - modeless (Full screen)

    My app opens with Main Form
    I click on a button to open the Sub Form.
    The form opens, full...
  32. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    Hi all.
    Followed the advice and made the sub-section forms "modeless".
    Solves the problem but introduces another.


    Using this API:

    GetForegroundWindow

    Now the the forms are modeless, when...
  33. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    Form 1 (Main Form, Full screen, modal)
    Form 2 (1 part of the software, Full screen, modal)
    Form 3 (Little Window showing name of current sub. As each sub is entered, the name of the sub is shown...
  34. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    I have a software package with a main window
    I have 6 different sections, all of which are full screen, and are each "forms".
    I would like to open a modeless form on top of one of these forms.
  35. Replies
    29
    Views
    11,474

    Re: Modeless form while a modal form is open

    ==============================================
    Can't show non-modal form when modal form is displayed (Error 401)

    See Also

    When a modal form is displayed, you cant display another non-modal...
  36. Replies
    29
    Views
    11,474

    Modeless form while a modal form is open

    Hello all.

    I am aware of the rule that a modeless form cannot be shown while a modal form is open.

    Can someone let me know a work around?

    If have written a diagnostics routine whereby at the...
  37. Re: MM Control for MP3 files : 'To' and 'From' parameters not working

    DataMiser,

    Thanks for answering.

    Also, thanks for the idea.

    For a WAV file it worked and for an MP3 file it did not.
    I added the line ".TimeFormat = 0" and now it works fine for both WAV...
  38. [RESOLVED] MM Control for MP3 files : 'To' and 'From' parameters not working

    Hi all.

    Using the MMControl I can play portions of a WAV file;



    MMControl.Notify = True
    MMControl.Wait = False
    MMControl.From = 3900
    MMControl.To = 5000
  39. Autoredraw=true and graphics still not persistent

    Hi all.

    I am using setdibits to paint onto a form.
    It works but when I switch to another application and then back, the drawing is gone.

    Any idea what's up?

    ---------------
    Dim...
  40. Re: Setdibits & Bitblt -> 2 Neat routines (one of them working)

    Thanks to Tanner's suggestions, it worked.
    Tanner's comment also got me thinking... The BitMapInfo is redundant. It doesn't need to be passed. it can be created based on the width and height.
    ...
Results 1 to 40 of 61
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width