Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
sndfile_extension_table.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_sndio/target_sndfile/roc_sndio/sndfile_extension_table.h
10 //! @brief Sndfile driver map.
11 
12 #ifndef ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
13 #define ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
14 
15 //! Sndfile driver map.
16 struct FileMap {
17  //! SF_FORMAT ID corresponding to the enum value in sndfile.h
18  int format_id;
19  //! Name of driver mapped to SF_FORMAT
20  const char* driver_name;
21  //! File extension associated with driver and SF_FORMAT if it exists.
22  const char* file_extension;
23 };
24 
25 //! Declare the file_type_map as extern
26 extern FileMap file_type_map[5];
27 
28 #endif // ROC_SNDIO_SNDFILE_EXTENSION_TABLE_H_
FileMap file_type_map[5]
Declare the file_type_map as extern.
Sndfile driver map.
const char * file_extension
File extension associated with driver and SF_FORMAT if it exists.
const char * driver_name
Name of driver mapped to SF_FORMAT.
int format_id
SF_FORMAT ID corresponding to the enum value in sndfile.h.