Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always add total_samples found in streaminfo #10

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/Audio/Scan.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ The following metadata about a file is returned:
maximum_framesize
audio_md5
total_samples
total_samples_streaminfo

=head2 TAGS

Expand Down
1 change: 1 addition & 0 deletions src/flac.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ _flac_parse_streaminfo(flacinfo *flac)
my_hv_store( flac->info, "channels", newSVuv(flac->channels) );
my_hv_store( flac->info, "bits_per_sample", newSVuv(flac->bits_per_sample) );
my_hv_store( flac->info, "total_samples", newSVnv(flac->total_samples) );
my_hv_store( flac->info, "total_samples_streaminfo", newSVnv(flac->total_samples) );

bptr = buffer_ptr(flac->buf);
md5 = newSVpvf("%02x", bptr[0]);
Expand Down