Background
I am currently working on a voice notes app. This app is basically an attempt to learn programming and also become comfortable with CRUD (create, read, update, delete) activities in Corona.
I’ve gotten to a point where I can create new audio files (recordings) and save them to the Documents directory. I’ve achieved this by using a variable that increments each time a new recording is saved. The next time a recording is started, the incremented variable is used to create a unique file name. I can then save that variable to persist across sessions.
The problem I’m foreseeing is that this system isn’t very robust or flexible. I’m quite new to programming, but I get the feeling that I should be storing all this data in a table so that I can perform all my CRUD operations through that table.
The Problem
I’m having difficulty understanding how to use a table with audio files. I can understand the use of a table that is just storing data like numbers and strings, but audio files are actual objects that exist in my Documents Directory, apart from any kind of data file. I guess my overall question is how can I perform operations on these files and keep everything in sync? Am I thinking of this all wrong?
Any help would be greatly appreciated, thanks.
- Mike
[import]uid: 14700 topic_id: 28823 reply_id: 328823[/import]