mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
support for 16 bit native files, part II
git-svn-id: svn://localhost/ardour2/trunk@2134 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
323438965e
commit
37c74810d2
6 changed files with 14 additions and 4 deletions
|
|
@ -325,7 +325,8 @@ namespace ARDOUR {
|
||||||
|
|
||||||
enum SampleFormat {
|
enum SampleFormat {
|
||||||
FormatFloat = 0,
|
FormatFloat = 0,
|
||||||
FormatInt24
|
FormatInt24,
|
||||||
|
FormatInt16
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ setup_enum_writer ()
|
||||||
|
|
||||||
REGISTER_ENUM (FormatFloat);
|
REGISTER_ENUM (FormatFloat);
|
||||||
REGISTER_ENUM (FormatInt24);
|
REGISTER_ENUM (FormatInt24);
|
||||||
|
REGISTER_ENUM (FormatInt16);
|
||||||
REGISTER (_SampleFormat);
|
REGISTER (_SampleFormat);
|
||||||
|
|
||||||
REGISTER_ENUM (BWF);
|
REGISTER_ENUM (BWF);
|
||||||
|
|
|
||||||
|
|
@ -3599,6 +3599,10 @@ Session::available_capture_duration ()
|
||||||
sample_bytes_on_disk = 3.0;
|
sample_bytes_on_disk = 3.0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FormatInt16:
|
||||||
|
sample_bytes_on_disk = 2.0;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* impossible, but keep some gcc versions happy */
|
/* impossible, but keep some gcc versions happy */
|
||||||
fatal << string_compose (_("programming error: %1"),
|
fatal << string_compose (_("programming error: %1"),
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,10 @@ SndFileSource::SndFileSource (Session& s, ustring path, SampleFormat sfmt, Heade
|
||||||
case FormatInt24:
|
case FormatInt24:
|
||||||
fmt |= SF_FORMAT_PCM_24;
|
fmt |= SF_FORMAT_PCM_24;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FormatInt16:
|
||||||
|
fmt |= SF_FORMAT_PCM_16;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_info.channels = 1;
|
_info.channels = 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue