Search:

Type: Posts; User: ajsha

Search: Search took 0.02 seconds.

  1. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    The parameters for my code and the tricks code are different (kHz vs Hz) so use 192 for my function and 192000 for the trick's.

    All of the names GetMem2, GetMem4, GetMem4 are just aliases for the...
  2. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    btw "need to add the function declaration" isn't really true, its just that the GetMem2 name serves as a reminder to only copy 2 byte values to those memory locations as per the wave header...
  3. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    Yes "PlayTone 30, 100, 192" should give you a sample rate of 192kHz, however that code samples at 8bit. As qvb6 mentioned the original code uses currency values and these combine a number of...
  4. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    Ah, sorry for the confusion. I meant they numerically have the same value in this instance, not that they are the same thing.
  5. Re: Signal Generator - How to change the Sample Rate from 44.1KHz to 192KHz

    try



    Private Function PlayTone(ByVal fFrequency As Single, ByVal fDurationMS As Single, SampleKHz As Single) As Boolean
    Dim lRate As Long
    Dim bData() As Byte
    Dim lSize ...
  6. Replies
    25
    Views
    1,184

    Re: Problem with lines (position) in textbox

    oops, should be

    line_idx = SendMessage(Text1.hWnd, EM_GETFIRSTVISIBLELINE, 0&, 0&)
  7. Replies
    25
    Views
    1,184

    Re: Problem with lines (position) in textbox

    was this what you were after?




    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    ...
  8. Re: VB6 - Listview Rows Backcolor (Without subclassing)

    Thanks for posting.

    To keep the row colouring aligned with the rows, see below. The following sub will highlight checked items up until the maximum allowable height of the picturebox.


    ...
  9. Replies
    584
    Views
    46,981

    Re: Vb6 , the Future, and what I have discovered

    Been lurking here (and learning alot) for a few years, guess I had to post eventually.


    Here's some suggestions for Olaf's new VB (some already mentioned previously) of things I have found (at...
Results 1 to 9 of 9



Click Here to Expand Forum to Full Width