@@ -134,24 +134,24 @@ class FILE_FORMATS():
134134# support this and even the file types which support one, may not support
135135# all string types.
136136class FILE_STRINGS ():
137- SF_STR_TITLE = 0x01
138- SF_STR_COPYRIGHT = 0x02
139- SF_STR_SOFTWARE = 0x03
137+ SF_STR_TITLE = 0x01
138+ SF_STR_COPYRIGHT = 0x02
139+ SF_STR_SOFTWARE = 0x03
140140 SF_STR_ARTIST = 0x04
141- SF_STR_COMMENT = 0x05
142- SF_STR_DATE = 0x06
143- SF_STR_ALBUM = 0x07
144- SF_STR_LICENSE = 0x08
141+ SF_STR_COMMENT = 0x05
142+ SF_STR_DATE = 0x06
143+ SF_STR_ALBUM = 0x07
144+ SF_STR_LICENSE = 0x08
145145
146146# Public error values. These are guaranteed to remain unchanged for the duration
147147# of the library major version number.
148148# There are also a large number of private error numbers which are internal to
149149# the library which can change at any time.
150- SF_ERR_NO_ERROR = 0
151- SF_ERR_UNRECOGNISED_FORMAT = 1
152- SF_ERR_SYSTEM = 2
153- SF_ERR_MALFORMED_FILE = 3
154- SF_ERR_UNSUPPORTED_ENCODING = 4
150+ SF_ERR_NO_ERROR = 0
151+ SF_ERR_UNRECOGNISED_FORMAT = 1
152+ SF_ERR_SYSTEM = 2
153+ SF_ERR_MALFORMED_FILE = 3
154+ SF_ERR_UNSUPPORTED_ENCODING = 4
155155
156156
157157#other definitions :
@@ -160,12 +160,14 @@ class FILE_STRINGS():
160160
161161#structs:
162162class SF_INFO (ct .Structure ):
163- _fields_ = [("frames" , sf_count_t ), #Used to be called samples. Changed to avoid confusion.
164- ("samplerate" , ct .c_int ),
165- ("channels" , ct .c_int ),
166- ("format" , ct .c_int ),
167- ("sections" , ct .c_int ),
168- ("seekable" , ct .c_int )]
163+ _fields_ = [
164+ ("frames" , sf_count_t ), #Used to be called samples. Changed to avoid confusion.
165+ ("samplerate" , ct .c_int ),
166+ ("channels" , ct .c_int ),
167+ ("format" , ct .c_int ),
168+ ("sections" , ct .c_int ),
169+ ("seekable" , ct .c_int )
170+ ]
169171
170172def __init_lib_methods ():
171173 SNDFILE = ct .c_void_p
0 commit comments