why current sample always is 513 in audioplayer properties?

1 次查看(过去 30 天)
I have used audioplayer several times and do not understand the meaning of several properties of audioplayer that is displayed on the command window. I noticed always the current sample is shown as 513.
ans =
audioplayer with properties:
SampleRate: 16000
BitsPerSample: 16
NumberOfChannels: 1
DeviceID: -1
CurrentSample: 513
TotalSamples: 1766400
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
Specifically, I do not understand the terms below and why their values are as they are
DeviceID: -1
CurrentSample: 513
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
  2 个评论
Jan
Jan 2017-11-25
Perhaps you want to post the command, which produces this answer, such that we can reproduce the output without guessing.
The properties "StartFcn", "StopFcn", "TimerFcn", "Tag", "UserData" and "Type" seems to be trivial and are explained in the documentation. What does
doc audioplayer
not explain?
Seetha Rama Raju Sanapala
@Jan Simon;
aro=audiorecorder(16000,16,1); record(aro);
>> stop(aro) >> play(aro)
ans =
audioplayer with properties:
SampleRate: 16000
BitsPerSample: 16
NumberOfChannels: 1
DeviceID: -1
CurrentSample: 513
TotalSamples: 282624
Running: 'on'
StartFcn: []
StopFcn: []
TimerFcn: []
TimerPeriod: 0.0500
Tag: ''
UserData: []
Type: 'audioplayer'
Whatever you record, the current sample is always 513. Why?

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by