Changeset 0da5208 for src/io/sink_sndfile.h
- Timestamp:
- Dec 18, 2018, 1:01:35 PM (5 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- dbad82c
- Parents:
- 20ce2ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_sndfile.h
r20ce2ad r0da5208 96 96 /** 97 97 98 preset sink format 99 100 \param s sink, created with ::new_aubio_sink_sndfile 101 \param fmt format of the file to create 102 103 \return 0 on success, 1 on error 104 105 Preset the format of the sink. Supported format strings: 106 - "wav": 16 bit (default) 107 - "aiff": aiff, 16 bit 108 - "flac": flac, 16 bit 109 - "ogg": ogg vorbis stream 110 111 Alternatively, any sndfile format can be set by passing the corresponding 112 integer as a string: 113 114 \code{.c} 115 char_t fmt[10]; 116 snprintf(fmt, sizeof(fmt), "%d", SF_FORMAT_FLAC | SF_FORMAT_PCM_24); 117 aubio_sink_sndfile_preset_format(s, fmt); 118 \endcode 119 120 The file should have been created using a samplerate of 0. 121 122 This function should be called before aubio_sink_sndfile_preset_samplerate() 123 and aubio_sink_sndfile_preset_channels(). 124 125 */ 126 uint_t aubio_sink_sndfile_preset_format(aubio_sink_sndfile_t *s, 127 const char_t* fmt); 128 129 /** 130 98 131 get samplerate of sink object 99 132
Note: See TracChangeset
for help on using the changeset viewer.