Results 1 to 2 of 2

Thread: How to draw a waveform with TBASS

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    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
    7,128
    Rep Power
    732
    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 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

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

Members who have read this thread: 1

Posting Permissions

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