Playback Details

Ok so a small problem i had was to retrieve the length of a sample, to overcome this i need to find a way to view the samples current data. this would give me the number of sample per second and the total number of samples. Using this i could work out the length of a sample to the nearest second.

Samples

To do this is used the display(player) attribute of the matlab audioRecorder function. This gave me a string with the details i needed. I then wrote a method which used substrings to ectract the relavant data, next step is to convert that data to ints and divide the total number by the samples per second to retrieve what i was looking for. Im going to just use this to display the time and total number of samples to the user just for an added frill.

~ by conormullen on February 28, 2008.

Leave a Reply