Is it at all possible to alter the samples found in a buffer/sound file?
For example.
Let's say I make an audio editor.
In this editor I can display a sound via its samples on a grid/graph.
In this graph, I can drag my mouse over samples, cut them out, and paste them at
a different location.
So if I were to record myself saying:
"Hello World!"
And I cut the samples where I started saying: "World!", and pasted it before "Hello", I would get back:
"World! Hello"
But how would I do this via the buffer?
This is simple enough how to do it with just an array and display it back to the graph, but
what if I wanted to save the newly organized samples to a file, I would need to somehow
modify the buffer.
How would I do this?