Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sound file playback (and record) - manipulating speed + pitch in realtime?
#9
(02-10-2025, 02:41 PM)SpriggsySpriggs Wrote: What code are you using for recording?
I'm not - haven't figured out how to record yet - but I think it would need to be low level processing one sample at a time in a loop, similar to the approach in Petr's playback example above.

PS: Over the weekend I collected my notes on this, didn't get around to reading through it all or running any code yet, but here's what I have:

From the wiki:
_SNDNEW (function) creates a raw empty sound in memory and returns a LONG handle value for later access.
_SNDOPENRAW (function) opens a new channel to shove _SNDRAW content into without mixing.
SNDRATE (function) returns the sound card sample rate to set _SNDRAW durations.
_SNDRAWLEN (function) returns a value until the _SNDRAW buffer is empty.
_MEMSOUND (function) returns a _MEM block referring to a designated sound handle's memory
SMFL Library - SFML is a sound library that allows users to record and play sounds.

Threads:
QB64PE - Help Me! - What options are there to get audio input? (10/25/2024)
QB64PE - General Discussion - WAV file splitter program? (4/20/2023)
QB64PE issues - Sound playback from embedded data #232 (KingMocker opened on Oct 31, 2022)
QB64PE - Help Me! - Building sounds with _SNDPLAYCOPY? (10/12/2022)
Reply


Messages In This Thread
RE: sound file playback (and record) - manipulating speed + pitch in realtime? - by madscijr - 02-10-2025, 03:03 PM



Users browsing this thread: 4 Guest(s)