1e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk/* 2e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * Copyright 2016 The Android Open Source Project 3e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * 4e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * Licensed under the Apache License, Version 2.0 (the "License"); 5e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * you may not use this file except in compliance with the License. 6e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * You may obtain a copy of the License at 7e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * 8e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * http://www.apache.org/licenses/LICENSE-2.0 9e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * 10e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * Unless required by applicable law or agreed to in writing, software 11e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * distributed under the License is distributed on an "AS IS" BASIS, 12e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * See the License for the specific language governing permissions and 14e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * limitations under the License. 15e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk */ 16e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk 175ed503c7a66c90f93759c90237a9b432dbd93f9fPhil Burk#ifndef AAUDIO_LEGACY_H 185ed503c7a66c90f93759c90237a9b432dbd93f9fPhil Burk#define AAUDIO_LEGACY_H 19e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk 20e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk#include <stdint.h> 215ed503c7a66c90f93759c90237a9b432dbd93f9fPhil Burk#include <aaudio/AAudio.h> 22e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk 23e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk/** 24e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk * Common code for legacy classes. 25e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk */ 26e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk 27e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk/* AudioTrack uses a 32-bit frame counter that can wrap around in about a day. */ 285ed503c7a66c90f93759c90237a9b432dbd93f9fPhil Burktypedef uint32_t aaudio_wrapping_frames_t; 29e1ce491a25faf06fdeab00dd938515f71f28b095Phil Burk 305ed503c7a66c90f93759c90237a9b432dbd93f9fPhil Burk#endif /* AAUDIO_LEGACY_H */ 31