Results 1 to 2 of 2

Thread: How to draw a waveform with TBASS

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    46
    Posts
    248
    Rep Power
    34

    How to draw a waveform with TBASS

    Hi all,

    I want to draw a waveform of an audio file with TBASS_ChannelGetData but I have no idea how to do this. I just don't understand how to read the PCM sampledata of a decoded channel and how to convert this data to a waveform. Would anyone help me with this?

    Kind regards,

    Martin
    Last edited by martin; 08-06-2018 at 10:43.

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,826
    Blog Entries
    3
    Rep Power
    696
    Hi Martin,

    please take my advice with a grain of salt, as I did not do waveforms with TBASS.

    However... I would probably try TBASS_ChannelSetPosition, TBASS_ChannelGetData functions.

    Look them up in the help file, they seem to offer fine detail of information.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Similar Threads

  1. Concerning TBASS Module . . .. .
    By TBProgramer52 in forum TBASS
    Replies: 0
    Last Post: 07-03-2014, 01:59
  2. ellipse with angle canvas draw
    By zak in forum UI (User Interface)
    Replies: 1
    Last Post: 16-01-2011, 23:49
  3. draw paint Demo (canvas) :)
    By Lionheart008 in forum UI (User Interface)
    Replies: 6
    Last Post: 27-11-2009, 00:08
  4. Is it possible to draw this simple map faster?
    By Michael Hartlef in forum TBGL General
    Replies: 22
    Last Post: 02-12-2007, 09:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •